1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Represents the input of an AcknowledgeJob action.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AcknowledgeJobInput {
/// <p>The unique system-generated ID of the job for which you want to confirm receipt.</p>
pub job_id: ::std::option::Option<::std::string::String>,
/// <p>A system-generated random number that CodePipeline uses to ensure that the job is being worked on by only one job worker. Get this number from the response of the <code>PollForJobs</code> request that returned this job.</p>
pub nonce: ::std::option::Option<::std::string::String>,
}
impl AcknowledgeJobInput {
/// <p>The unique system-generated ID of the job for which you want to confirm receipt.</p>
pub fn job_id(&self) -> ::std::option::Option<&str> {
self.job_id.as_deref()
}
/// <p>A system-generated random number that CodePipeline uses to ensure that the job is being worked on by only one job worker. Get this number from the response of the <code>PollForJobs</code> request that returned this job.</p>
pub fn nonce(&self) -> ::std::option::Option<&str> {
self.nonce.as_deref()
}
}
impl AcknowledgeJobInput {
/// Creates a new builder-style object to manufacture [`AcknowledgeJobInput`](crate::operation::acknowledge_job::AcknowledgeJobInput).
pub fn builder() -> crate::operation::acknowledge_job::builders::AcknowledgeJobInputBuilder {
crate::operation::acknowledge_job::builders::AcknowledgeJobInputBuilder::default()
}
}
/// A builder for [`AcknowledgeJobInput`](crate::operation::acknowledge_job::AcknowledgeJobInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct AcknowledgeJobInputBuilder {
pub(crate) job_id: ::std::option::Option<::std::string::String>,
pub(crate) nonce: ::std::option::Option<::std::string::String>,
}
impl AcknowledgeJobInputBuilder {
/// <p>The unique system-generated ID of the job for which you want to confirm receipt.</p>
/// This field is required.
pub fn job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.job_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique system-generated ID of the job for which you want to confirm receipt.</p>
pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.job_id = input;
self
}
/// <p>The unique system-generated ID of the job for which you want to confirm receipt.</p>
pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
&self.job_id
}
/// <p>A system-generated random number that CodePipeline uses to ensure that the job is being worked on by only one job worker. Get this number from the response of the <code>PollForJobs</code> request that returned this job.</p>
/// This field is required.
pub fn nonce(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.nonce = ::std::option::Option::Some(input.into());
self
}
/// <p>A system-generated random number that CodePipeline uses to ensure that the job is being worked on by only one job worker. Get this number from the response of the <code>PollForJobs</code> request that returned this job.</p>
pub fn set_nonce(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.nonce = input;
self
}
/// <p>A system-generated random number that CodePipeline uses to ensure that the job is being worked on by only one job worker. Get this number from the response of the <code>PollForJobs</code> request that returned this job.</p>
pub fn get_nonce(&self) -> &::std::option::Option<::std::string::String> {
&self.nonce
}
/// Consumes the builder and constructs a [`AcknowledgeJobInput`](crate::operation::acknowledge_job::AcknowledgeJobInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::acknowledge_job::AcknowledgeJobInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::acknowledge_job::AcknowledgeJobInput {
job_id: self.job_id,
nonce: self.nonce,
})
}
}