aws_sdk_connectcampaignsv2/operation/resume_campaign/
_resume_campaign_input.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ResumeCampaignInput {
pub id: ::std::option::Option<::std::string::String>,
}
impl ResumeCampaignInput {
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
}
impl ResumeCampaignInput {
pub fn builder() -> crate::operation::resume_campaign::builders::ResumeCampaignInputBuilder {
crate::operation::resume_campaign::builders::ResumeCampaignInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ResumeCampaignInputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
}
impl ResumeCampaignInputBuilder {
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::resume_campaign::ResumeCampaignInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::resume_campaign::ResumeCampaignInput { id: self.id })
}
}