aws-sdk-greengrass 0.26.0

AWS SDK for AWS Greengrass
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 StopBulkDeploymentInput {
    /// The ID of the bulk deployment.
    #[doc(hidden)]
    pub bulk_deployment_id: std::option::Option<std::string::String>,
}
impl StopBulkDeploymentInput {
    /// The ID of the bulk deployment.
    pub fn bulk_deployment_id(&self) -> std::option::Option<&str> {
        self.bulk_deployment_id.as_deref()
    }
}
impl StopBulkDeploymentInput {
    /// Creates a new builder-style object to manufacture [`StopBulkDeploymentInput`](crate::operation::stop_bulk_deployment::StopBulkDeploymentInput).
    pub fn builder(
    ) -> crate::operation::stop_bulk_deployment::builders::StopBulkDeploymentInputBuilder {
        crate::operation::stop_bulk_deployment::builders::StopBulkDeploymentInputBuilder::default()
    }
}

/// A builder for [`StopBulkDeploymentInput`](crate::operation::stop_bulk_deployment::StopBulkDeploymentInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct StopBulkDeploymentInputBuilder {
    pub(crate) bulk_deployment_id: std::option::Option<std::string::String>,
}
impl StopBulkDeploymentInputBuilder {
    /// The ID of the bulk deployment.
    pub fn bulk_deployment_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.bulk_deployment_id = Some(input.into());
        self
    }
    /// The ID of the bulk deployment.
    pub fn set_bulk_deployment_id(
        mut self,
        input: std::option::Option<std::string::String>,
    ) -> Self {
        self.bulk_deployment_id = input;
        self
    }
    /// Consumes the builder and constructs a [`StopBulkDeploymentInput`](crate::operation::stop_bulk_deployment::StopBulkDeploymentInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::stop_bulk_deployment::StopBulkDeploymentInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(
            crate::operation::stop_bulk_deployment::StopBulkDeploymentInput {
                bulk_deployment_id: self.bulk_deployment_id,
            },
        )
    }
}