#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StopBulkDeploymentInput {
#[doc(hidden)]
pub bulk_deployment_id: std::option::Option<std::string::String>,
}
impl StopBulkDeploymentInput {
pub fn bulk_deployment_id(&self) -> std::option::Option<&str> {
self.bulk_deployment_id.as_deref()
}
}
impl StopBulkDeploymentInput {
pub fn builder(
) -> crate::operation::stop_bulk_deployment::builders::StopBulkDeploymentInputBuilder {
crate::operation::stop_bulk_deployment::builders::StopBulkDeploymentInputBuilder::default()
}
}
#[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 {
pub fn bulk_deployment_id(mut self, input: impl Into<std::string::String>) -> Self {
self.bulk_deployment_id = Some(input.into());
self
}
pub fn set_bulk_deployment_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.bulk_deployment_id = input;
self
}
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,
},
)
}
}