aws-sdk-appconfig 1.99.0

AWS SDK for Amazon AppConfig
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 DeleteDeploymentStrategyInput {
    /// <p>The ID of the deployment strategy you want to delete.</p>
    pub deployment_strategy_id: ::std::option::Option<::std::string::String>,
}
impl DeleteDeploymentStrategyInput {
    /// <p>The ID of the deployment strategy you want to delete.</p>
    pub fn deployment_strategy_id(&self) -> ::std::option::Option<&str> {
        self.deployment_strategy_id.as_deref()
    }
}
impl DeleteDeploymentStrategyInput {
    /// Creates a new builder-style object to manufacture [`DeleteDeploymentStrategyInput`](crate::operation::delete_deployment_strategy::DeleteDeploymentStrategyInput).
    pub fn builder() -> crate::operation::delete_deployment_strategy::builders::DeleteDeploymentStrategyInputBuilder {
        crate::operation::delete_deployment_strategy::builders::DeleteDeploymentStrategyInputBuilder::default()
    }
}

/// A builder for [`DeleteDeploymentStrategyInput`](crate::operation::delete_deployment_strategy::DeleteDeploymentStrategyInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDeploymentStrategyInputBuilder {
    pub(crate) deployment_strategy_id: ::std::option::Option<::std::string::String>,
}
impl DeleteDeploymentStrategyInputBuilder {
    /// <p>The ID of the deployment strategy you want to delete.</p>
    /// This field is required.
    pub fn deployment_strategy_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.deployment_strategy_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the deployment strategy you want to delete.</p>
    pub fn set_deployment_strategy_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.deployment_strategy_id = input;
        self
    }
    /// <p>The ID of the deployment strategy you want to delete.</p>
    pub fn get_deployment_strategy_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.deployment_strategy_id
    }
    /// Consumes the builder and constructs a [`DeleteDeploymentStrategyInput`](crate::operation::delete_deployment_strategy::DeleteDeploymentStrategyInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_deployment_strategy::DeleteDeploymentStrategyInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_deployment_strategy::DeleteDeploymentStrategyInput {
            deployment_strategy_id: self.deployment_strategy_id,
        })
    }
}