aws-sdk-iot 1.113.0

AWS SDK for AWS IoT
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 DescribeJobExecutionOutput {
    /// <p>Information about the job execution.</p>
    pub execution: ::std::option::Option<crate::types::JobExecution>,
    _request_id: Option<String>,
}
impl DescribeJobExecutionOutput {
    /// <p>Information about the job execution.</p>
    pub fn execution(&self) -> ::std::option::Option<&crate::types::JobExecution> {
        self.execution.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeJobExecutionOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeJobExecutionOutput {
    /// Creates a new builder-style object to manufacture [`DescribeJobExecutionOutput`](crate::operation::describe_job_execution::DescribeJobExecutionOutput).
    pub fn builder() -> crate::operation::describe_job_execution::builders::DescribeJobExecutionOutputBuilder {
        crate::operation::describe_job_execution::builders::DescribeJobExecutionOutputBuilder::default()
    }
}

/// A builder for [`DescribeJobExecutionOutput`](crate::operation::describe_job_execution::DescribeJobExecutionOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeJobExecutionOutputBuilder {
    pub(crate) execution: ::std::option::Option<crate::types::JobExecution>,
    _request_id: Option<String>,
}
impl DescribeJobExecutionOutputBuilder {
    /// <p>Information about the job execution.</p>
    pub fn execution(mut self, input: crate::types::JobExecution) -> Self {
        self.execution = ::std::option::Option::Some(input);
        self
    }
    /// <p>Information about the job execution.</p>
    pub fn set_execution(mut self, input: ::std::option::Option<crate::types::JobExecution>) -> Self {
        self.execution = input;
        self
    }
    /// <p>Information about the job execution.</p>
    pub fn get_execution(&self) -> &::std::option::Option<crate::types::JobExecution> {
        &self.execution
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DescribeJobExecutionOutput`](crate::operation::describe_job_execution::DescribeJobExecutionOutput).
    pub fn build(self) -> crate::operation::describe_job_execution::DescribeJobExecutionOutput {
        crate::operation::describe_job_execution::DescribeJobExecutionOutput {
            execution: self.execution,
            _request_id: self._request_id,
        }
    }
}