aws-sdk-pinpointsmsvoice 0.25.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
    #[doc(hidden)]
    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).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteConfigurationSetInputBuilder {
    pub(crate) configuration_set_name: std::option::Option<std::string::String>,
}
impl DeleteConfigurationSetInputBuilder {
    /// ConfigurationSetName
    pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
        self.configuration_set_name = 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
    }
    /// Consumes the builder and constructs a [`DeleteConfigurationSetInput`](crate::operation::delete_configuration_set::DeleteConfigurationSetInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::delete_configuration_set::DeleteConfigurationSetInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(
            crate::operation::delete_configuration_set::DeleteConfigurationSetInput {
                configuration_set_name: self.configuration_set_name,
            },
        )
    }
}