aws-sdk-pinpointsmsvoice 1.75.0

AWS SDK for Amazon Pinpoint SMS and Voice Service
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 DeleteConfigurationSetInput {
    /// ConfigurationSetName
    pub configuration_set_name: ::std::option::Option<::std::string::String>,
}
impl DeleteConfigurationSetInput {
    /// ConfigurationSetName
    pub fn configuration_set_name(&self) -> ::std::option::Option<&str> {
        self.configuration_set_name.as_deref()
    }
}
impl DeleteConfigurationSetInput {
    /// Creates a new builder-style object to manufacture [`DeleteConfigurationSetInput`](crate::operation::delete_configuration_set::DeleteConfigurationSetInput).
    pub fn builder() -> crate::operation::delete_configuration_set::builders::DeleteConfigurationSetInputBuilder {
        crate::operation::delete_configuration_set::builders::DeleteConfigurationSetInputBuilder::default()
    }
}

/// A builder for [`DeleteConfigurationSetInput`](crate::operation::delete_configuration_set::DeleteConfigurationSetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteConfigurationSetInputBuilder {
    pub(crate) configuration_set_name: ::std::option::Option<::std::string::String>,
}
impl DeleteConfigurationSetInputBuilder {
    /// ConfigurationSetName
    /// 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
    }
    /// ConfigurationSetName
    pub fn set_configuration_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.configuration_set_name = input;
        self
    }
    /// ConfigurationSetName
    pub fn get_configuration_set_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.configuration_set_name
    }
    /// Consumes the builder and constructs a [`DeleteConfigurationSetInput`](crate::operation::delete_configuration_set::DeleteConfigurationSetInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_configuration_set::DeleteConfigurationSetInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_configuration_set::DeleteConfigurationSetInput {
            configuration_set_name: self.configuration_set_name,
        })
    }
}