aws-sdk-robomaker 1.81.0

AWS SDK for AWS RoboMaker
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[deprecated(
    note = "Support for the AWS RoboMaker application deployment feature has ended. For additional information, see https://docs.aws.amazon.com/robomaker/latest/dg/fleets.html."
)]
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CancelDeploymentJobInput {
    /// <p>The deployment job ARN to cancel.</p>
    pub job: ::std::option::Option<::std::string::String>,
}
impl CancelDeploymentJobInput {
    /// <p>The deployment job ARN to cancel.</p>
    pub fn job(&self) -> ::std::option::Option<&str> {
        self.job.as_deref()
    }
}
impl CancelDeploymentJobInput {
    /// Creates a new builder-style object to manufacture [`CancelDeploymentJobInput`](crate::operation::cancel_deployment_job::CancelDeploymentJobInput).
    pub fn builder() -> crate::operation::cancel_deployment_job::builders::CancelDeploymentJobInputBuilder {
        crate::operation::cancel_deployment_job::builders::CancelDeploymentJobInputBuilder::default()
    }
}

/// A builder for [`CancelDeploymentJobInput`](crate::operation::cancel_deployment_job::CancelDeploymentJobInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CancelDeploymentJobInputBuilder {
    pub(crate) job: ::std::option::Option<::std::string::String>,
}
impl CancelDeploymentJobInputBuilder {
    /// <p>The deployment job ARN to cancel.</p>
    /// This field is required.
    pub fn job(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.job = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The deployment job ARN to cancel.</p>
    pub fn set_job(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.job = input;
        self
    }
    /// <p>The deployment job ARN to cancel.</p>
    pub fn get_job(&self) -> &::std::option::Option<::std::string::String> {
        &self.job
    }
    /// Consumes the builder and constructs a [`CancelDeploymentJobInput`](crate::operation::cancel_deployment_job::CancelDeploymentJobInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::cancel_deployment_job::CancelDeploymentJobInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::cancel_deployment_job::CancelDeploymentJobInput { job: self.job })
    }
}