aws_sdk_iot/operation/describe_job/
_describe_job_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeJobInput {
6    /// <p>The unique identifier you assigned to this job when it was created.</p>
7    pub job_id: ::std::option::Option<::std::string::String>,
8    /// <p>Provides a view of the job document before and after the substitution parameters have been resolved with their exact values.</p>
9    pub before_substitution: ::std::option::Option<bool>,
10}
11impl DescribeJobInput {
12    /// <p>The unique identifier you assigned to this job when it was created.</p>
13    pub fn job_id(&self) -> ::std::option::Option<&str> {
14        self.job_id.as_deref()
15    }
16    /// <p>Provides a view of the job document before and after the substitution parameters have been resolved with their exact values.</p>
17    pub fn before_substitution(&self) -> ::std::option::Option<bool> {
18        self.before_substitution
19    }
20}
21impl DescribeJobInput {
22    /// Creates a new builder-style object to manufacture [`DescribeJobInput`](crate::operation::describe_job::DescribeJobInput).
23    pub fn builder() -> crate::operation::describe_job::builders::DescribeJobInputBuilder {
24        crate::operation::describe_job::builders::DescribeJobInputBuilder::default()
25    }
26}
27
28/// A builder for [`DescribeJobInput`](crate::operation::describe_job::DescribeJobInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct DescribeJobInputBuilder {
32    pub(crate) job_id: ::std::option::Option<::std::string::String>,
33    pub(crate) before_substitution: ::std::option::Option<bool>,
34}
35impl DescribeJobInputBuilder {
36    /// <p>The unique identifier you assigned to this job when it was created.</p>
37    /// This field is required.
38    pub fn job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39        self.job_id = ::std::option::Option::Some(input.into());
40        self
41    }
42    /// <p>The unique identifier you assigned to this job when it was created.</p>
43    pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44        self.job_id = input;
45        self
46    }
47    /// <p>The unique identifier you assigned to this job when it was created.</p>
48    pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
49        &self.job_id
50    }
51    /// <p>Provides a view of the job document before and after the substitution parameters have been resolved with their exact values.</p>
52    pub fn before_substitution(mut self, input: bool) -> Self {
53        self.before_substitution = ::std::option::Option::Some(input);
54        self
55    }
56    /// <p>Provides a view of the job document before and after the substitution parameters have been resolved with their exact values.</p>
57    pub fn set_before_substitution(mut self, input: ::std::option::Option<bool>) -> Self {
58        self.before_substitution = input;
59        self
60    }
61    /// <p>Provides a view of the job document before and after the substitution parameters have been resolved with their exact values.</p>
62    pub fn get_before_substitution(&self) -> &::std::option::Option<bool> {
63        &self.before_substitution
64    }
65    /// Consumes the builder and constructs a [`DescribeJobInput`](crate::operation::describe_job::DescribeJobInput).
66    pub fn build(self) -> ::std::result::Result<crate::operation::describe_job::DescribeJobInput, ::aws_smithy_types::error::operation::BuildError> {
67        ::std::result::Result::Ok(crate::operation::describe_job::DescribeJobInput {
68            job_id: self.job_id,
69            before_substitution: self.before_substitution,
70        })
71    }
72}