aws-sdk-pinpointsmsvoicev2 1.124.0

AWS SDK for Amazon Pinpoint SMS Voice V2
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisassociateProtectConfigurationInput {
    /// <p>The unique identifier for the protect configuration.</p>
    pub protect_configuration_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the ConfigurationSet.</p>
    pub configuration_set_name: ::std::option::Option<::std::string::String>,
}
impl DisassociateProtectConfigurationInput {
    /// <p>The unique identifier for the protect configuration.</p>
    pub fn protect_configuration_id(&self) -> ::std::option::Option<&str> {
        self.protect_configuration_id.as_deref()
    }
    /// <p>The name of the ConfigurationSet.</p>
    pub fn configuration_set_name(&self) -> ::std::option::Option<&str> {
        self.configuration_set_name.as_deref()
    }
}
impl DisassociateProtectConfigurationInput {
    /// Creates a new builder-style object to manufacture [`DisassociateProtectConfigurationInput`](crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationInput).
    pub fn builder() -> crate::operation::disassociate_protect_configuration::builders::DisassociateProtectConfigurationInputBuilder {
        crate::operation::disassociate_protect_configuration::builders::DisassociateProtectConfigurationInputBuilder::default()
    }
}

/// A builder for [`DisassociateProtectConfigurationInput`](crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateProtectConfigurationInputBuilder {
    pub(crate) protect_configuration_id: ::std::option::Option<::std::string::String>,
    pub(crate) configuration_set_name: ::std::option::Option<::std::string::String>,
}
impl DisassociateProtectConfigurationInputBuilder {
    /// <p>The unique identifier for the protect configuration.</p>
    /// This field is required.
    pub fn protect_configuration_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.protect_configuration_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier for the protect configuration.</p>
    pub fn set_protect_configuration_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.protect_configuration_id = input;
        self
    }
    /// <p>The unique identifier for the protect configuration.</p>
    pub fn get_protect_configuration_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.protect_configuration_id
    }
    /// <p>The name of the ConfigurationSet.</p>
    /// This field is required.
    pub fn configuration_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.configuration_set_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the ConfigurationSet.</p>
    pub fn set_configuration_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.configuration_set_name = input;
        self
    }
    /// <p>The name of the ConfigurationSet.</p>
    pub fn get_configuration_set_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.configuration_set_name
    }
    /// Consumes the builder and constructs a [`DisassociateProtectConfigurationInput`](crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(
            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationInput {
                protect_configuration_id: self.protect_configuration_id,
                configuration_set_name: self.configuration_set_name,
            },
        )
    }
}