aws_sdk_iot/operation/describe_job/
_describe_job_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeJobInput {
6 pub job_id: ::std::option::Option<::std::string::String>,
8 pub before_substitution: ::std::option::Option<bool>,
10}
11impl DescribeJobInput {
12 pub fn job_id(&self) -> ::std::option::Option<&str> {
14 self.job_id.as_deref()
15 }
16 pub fn before_substitution(&self) -> ::std::option::Option<bool> {
18 self.before_substitution
19 }
20}
21impl DescribeJobInput {
22 pub fn builder() -> crate::operation::describe_job::builders::DescribeJobInputBuilder {
24 crate::operation::describe_job::builders::DescribeJobInputBuilder::default()
25 }
26}
27
28#[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 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 pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.job_id = input;
45 self
46 }
47 pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
49 &self.job_id
50 }
51 pub fn before_substitution(mut self, input: bool) -> Self {
53 self.before_substitution = ::std::option::Option::Some(input);
54 self
55 }
56 pub fn set_before_substitution(mut self, input: ::std::option::Option<bool>) -> Self {
58 self.before_substitution = input;
59 self
60 }
61 pub fn get_before_substitution(&self) -> &::std::option::Option<bool> {
63 &self.before_substitution
64 }
65 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}