aws-sdk-codedeploy 1.100.0

AWS SDK for AWS CodeDeploy
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Represents the input of a <code>DeleteDeploymentConfig</code> operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteDeploymentConfigInput {
    /// <p>The name of a deployment configuration associated with the user or Amazon Web Services account.</p>
    pub deployment_config_name: ::std::option::Option<::std::string::String>,
}
impl DeleteDeploymentConfigInput {
    /// <p>The name of a deployment configuration associated with the user or Amazon Web Services account.</p>
    pub fn deployment_config_name(&self) -> ::std::option::Option<&str> {
        self.deployment_config_name.as_deref()
    }
}
impl DeleteDeploymentConfigInput {
    /// Creates a new builder-style object to manufacture [`DeleteDeploymentConfigInput`](crate::operation::delete_deployment_config::DeleteDeploymentConfigInput).
    pub fn builder() -> crate::operation::delete_deployment_config::builders::DeleteDeploymentConfigInputBuilder {
        crate::operation::delete_deployment_config::builders::DeleteDeploymentConfigInputBuilder::default()
    }
}

/// A builder for [`DeleteDeploymentConfigInput`](crate::operation::delete_deployment_config::DeleteDeploymentConfigInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDeploymentConfigInputBuilder {
    pub(crate) deployment_config_name: ::std::option::Option<::std::string::String>,
}
impl DeleteDeploymentConfigInputBuilder {
    /// <p>The name of a deployment configuration associated with the user or Amazon Web Services account.</p>
    /// This field is required.
    pub fn deployment_config_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.deployment_config_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of a deployment configuration associated with the user or Amazon Web Services account.</p>
    pub fn set_deployment_config_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.deployment_config_name = input;
        self
    }
    /// <p>The name of a deployment configuration associated with the user or Amazon Web Services account.</p>
    pub fn get_deployment_config_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.deployment_config_name
    }
    /// Consumes the builder and constructs a [`DeleteDeploymentConfigInput`](crate::operation::delete_deployment_config::DeleteDeploymentConfigInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_deployment_config::DeleteDeploymentConfigInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_deployment_config::DeleteDeploymentConfigInput {
            deployment_config_name: self.deployment_config_name,
        })
    }
}