#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateCampaignOutboundCallConfigInput {
pub id: ::std::option::Option<::std::string::String>,
pub connect_contact_flow_id: ::std::option::Option<::std::string::String>,
pub connect_source_phone_number: ::std::option::Option<::std::string::String>,
pub answer_machine_detection_config: ::std::option::Option<crate::types::AnswerMachineDetectionConfig>,
}
impl UpdateCampaignOutboundCallConfigInput {
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn connect_contact_flow_id(&self) -> ::std::option::Option<&str> {
self.connect_contact_flow_id.as_deref()
}
pub fn connect_source_phone_number(&self) -> ::std::option::Option<&str> {
self.connect_source_phone_number.as_deref()
}
pub fn answer_machine_detection_config(&self) -> ::std::option::Option<&crate::types::AnswerMachineDetectionConfig> {
self.answer_machine_detection_config.as_ref()
}
}
impl UpdateCampaignOutboundCallConfigInput {
pub fn builder() -> crate::operation::update_campaign_outbound_call_config::builders::UpdateCampaignOutboundCallConfigInputBuilder {
crate::operation::update_campaign_outbound_call_config::builders::UpdateCampaignOutboundCallConfigInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateCampaignOutboundCallConfigInputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) connect_contact_flow_id: ::std::option::Option<::std::string::String>,
pub(crate) connect_source_phone_number: ::std::option::Option<::std::string::String>,
pub(crate) answer_machine_detection_config: ::std::option::Option<crate::types::AnswerMachineDetectionConfig>,
}
impl UpdateCampaignOutboundCallConfigInputBuilder {
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 connect_contact_flow_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.connect_contact_flow_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_connect_contact_flow_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.connect_contact_flow_id = input;
self
}
pub fn get_connect_contact_flow_id(&self) -> &::std::option::Option<::std::string::String> {
&self.connect_contact_flow_id
}
pub fn connect_source_phone_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.connect_source_phone_number = ::std::option::Option::Some(input.into());
self
}
pub fn set_connect_source_phone_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.connect_source_phone_number = input;
self
}
pub fn get_connect_source_phone_number(&self) -> &::std::option::Option<::std::string::String> {
&self.connect_source_phone_number
}
pub fn answer_machine_detection_config(mut self, input: crate::types::AnswerMachineDetectionConfig) -> Self {
self.answer_machine_detection_config = ::std::option::Option::Some(input);
self
}
pub fn set_answer_machine_detection_config(mut self, input: ::std::option::Option<crate::types::AnswerMachineDetectionConfig>) -> Self {
self.answer_machine_detection_config = input;
self
}
pub fn get_answer_machine_detection_config(&self) -> &::std::option::Option<crate::types::AnswerMachineDetectionConfig> {
&self.answer_machine_detection_config
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::update_campaign_outbound_call_config::UpdateCampaignOutboundCallConfigInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(
crate::operation::update_campaign_outbound_call_config::UpdateCampaignOutboundCallConfigInput {
id: self.id,
connect_contact_flow_id: self.connect_contact_flow_id,
connect_source_phone_number: self.connect_source_phone_number,
answer_machine_detection_config: self.answer_machine_detection_config,
},
)
}
}