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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// 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 StopPipelineExecutionInput {
/// <p>The name of the pipeline to stop.</p>
pub pipeline_name: ::std::option::Option<::std::string::String>,
/// <p>The ID of the pipeline execution to be stopped in the current stage. Use the <code>GetPipelineState</code> action to retrieve the current pipelineExecutionId.</p>
pub pipeline_execution_id: ::std::option::Option<::std::string::String>,
/// <p>Use this option to stop the pipeline execution by abandoning, rather than finishing, in-progress actions.</p><note>
/// <p>This option can lead to failed or out-of-sequence tasks.</p>
/// </note>
pub abandon: ::std::option::Option<bool>,
/// <p>Use this option to enter comments, such as the reason the pipeline was stopped.</p>
pub reason: ::std::option::Option<::std::string::String>,
}
impl StopPipelineExecutionInput {
/// <p>The name of the pipeline to stop.</p>
pub fn pipeline_name(&self) -> ::std::option::Option<&str> {
self.pipeline_name.as_deref()
}
/// <p>The ID of the pipeline execution to be stopped in the current stage. Use the <code>GetPipelineState</code> action to retrieve the current pipelineExecutionId.</p>
pub fn pipeline_execution_id(&self) -> ::std::option::Option<&str> {
self.pipeline_execution_id.as_deref()
}
/// <p>Use this option to stop the pipeline execution by abandoning, rather than finishing, in-progress actions.</p><note>
/// <p>This option can lead to failed or out-of-sequence tasks.</p>
/// </note>
pub fn abandon(&self) -> ::std::option::Option<bool> {
self.abandon
}
/// <p>Use this option to enter comments, such as the reason the pipeline was stopped.</p>
pub fn reason(&self) -> ::std::option::Option<&str> {
self.reason.as_deref()
}
}
impl StopPipelineExecutionInput {
/// Creates a new builder-style object to manufacture [`StopPipelineExecutionInput`](crate::operation::stop_pipeline_execution::StopPipelineExecutionInput).
pub fn builder() -> crate::operation::stop_pipeline_execution::builders::StopPipelineExecutionInputBuilder {
crate::operation::stop_pipeline_execution::builders::StopPipelineExecutionInputBuilder::default()
}
}
/// A builder for [`StopPipelineExecutionInput`](crate::operation::stop_pipeline_execution::StopPipelineExecutionInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopPipelineExecutionInputBuilder {
pub(crate) pipeline_name: ::std::option::Option<::std::string::String>,
pub(crate) pipeline_execution_id: ::std::option::Option<::std::string::String>,
pub(crate) abandon: ::std::option::Option<bool>,
pub(crate) reason: ::std::option::Option<::std::string::String>,
}
impl StopPipelineExecutionInputBuilder {
/// <p>The name of the pipeline to stop.</p>
/// This field is required.
pub fn pipeline_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.pipeline_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the pipeline to stop.</p>
pub fn set_pipeline_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.pipeline_name = input;
self
}
/// <p>The name of the pipeline to stop.</p>
pub fn get_pipeline_name(&self) -> &::std::option::Option<::std::string::String> {
&self.pipeline_name
}
/// <p>The ID of the pipeline execution to be stopped in the current stage. Use the <code>GetPipelineState</code> action to retrieve the current pipelineExecutionId.</p>
/// This field is required.
pub fn pipeline_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.pipeline_execution_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the pipeline execution to be stopped in the current stage. Use the <code>GetPipelineState</code> action to retrieve the current pipelineExecutionId.</p>
pub fn set_pipeline_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.pipeline_execution_id = input;
self
}
/// <p>The ID of the pipeline execution to be stopped in the current stage. Use the <code>GetPipelineState</code> action to retrieve the current pipelineExecutionId.</p>
pub fn get_pipeline_execution_id(&self) -> &::std::option::Option<::std::string::String> {
&self.pipeline_execution_id
}
/// <p>Use this option to stop the pipeline execution by abandoning, rather than finishing, in-progress actions.</p><note>
/// <p>This option can lead to failed or out-of-sequence tasks.</p>
/// </note>
pub fn abandon(mut self, input: bool) -> Self {
self.abandon = ::std::option::Option::Some(input);
self
}
/// <p>Use this option to stop the pipeline execution by abandoning, rather than finishing, in-progress actions.</p><note>
/// <p>This option can lead to failed or out-of-sequence tasks.</p>
/// </note>
pub fn set_abandon(mut self, input: ::std::option::Option<bool>) -> Self {
self.abandon = input;
self
}
/// <p>Use this option to stop the pipeline execution by abandoning, rather than finishing, in-progress actions.</p><note>
/// <p>This option can lead to failed or out-of-sequence tasks.</p>
/// </note>
pub fn get_abandon(&self) -> &::std::option::Option<bool> {
&self.abandon
}
/// <p>Use this option to enter comments, such as the reason the pipeline was stopped.</p>
pub fn reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.reason = ::std::option::Option::Some(input.into());
self
}
/// <p>Use this option to enter comments, such as the reason the pipeline was stopped.</p>
pub fn set_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.reason = input;
self
}
/// <p>Use this option to enter comments, such as the reason the pipeline was stopped.</p>
pub fn get_reason(&self) -> &::std::option::Option<::std::string::String> {
&self.reason
}
/// Consumes the builder and constructs a [`StopPipelineExecutionInput`](crate::operation::stop_pipeline_execution::StopPipelineExecutionInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::stop_pipeline_execution::StopPipelineExecutionInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::stop_pipeline_execution::StopPipelineExecutionInput {
pipeline_name: self.pipeline_name,
pipeline_execution_id: self.pipeline_execution_id,
abandon: self.abandon,
reason: self.reason,
})
}
}