aws_sdk_cloudformation/types/
_change_set_summary.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ChangeSetSummary {
7 pub stack_id: ::std::option::Option<::std::string::String>,
9 pub stack_name: ::std::option::Option<::std::string::String>,
11 pub change_set_id: ::std::option::Option<::std::string::String>,
13 pub change_set_name: ::std::option::Option<::std::string::String>,
15 pub execution_status: ::std::option::Option<crate::types::ExecutionStatus>,
17 pub status: ::std::option::Option<crate::types::ChangeSetStatus>,
19 pub status_reason: ::std::option::Option<::std::string::String>,
21 pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
23 pub description: ::std::option::Option<::std::string::String>,
25 pub include_nested_stacks: ::std::option::Option<bool>,
27 pub parent_change_set_id: ::std::option::Option<::std::string::String>,
29 pub root_change_set_id: ::std::option::Option<::std::string::String>,
31 pub import_existing_resources: ::std::option::Option<bool>,
33}
34impl ChangeSetSummary {
35 pub fn stack_id(&self) -> ::std::option::Option<&str> {
37 self.stack_id.as_deref()
38 }
39 pub fn stack_name(&self) -> ::std::option::Option<&str> {
41 self.stack_name.as_deref()
42 }
43 pub fn change_set_id(&self) -> ::std::option::Option<&str> {
45 self.change_set_id.as_deref()
46 }
47 pub fn change_set_name(&self) -> ::std::option::Option<&str> {
49 self.change_set_name.as_deref()
50 }
51 pub fn execution_status(&self) -> ::std::option::Option<&crate::types::ExecutionStatus> {
53 self.execution_status.as_ref()
54 }
55 pub fn status(&self) -> ::std::option::Option<&crate::types::ChangeSetStatus> {
57 self.status.as_ref()
58 }
59 pub fn status_reason(&self) -> ::std::option::Option<&str> {
61 self.status_reason.as_deref()
62 }
63 pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
65 self.creation_time.as_ref()
66 }
67 pub fn description(&self) -> ::std::option::Option<&str> {
69 self.description.as_deref()
70 }
71 pub fn include_nested_stacks(&self) -> ::std::option::Option<bool> {
73 self.include_nested_stacks
74 }
75 pub fn parent_change_set_id(&self) -> ::std::option::Option<&str> {
77 self.parent_change_set_id.as_deref()
78 }
79 pub fn root_change_set_id(&self) -> ::std::option::Option<&str> {
81 self.root_change_set_id.as_deref()
82 }
83 pub fn import_existing_resources(&self) -> ::std::option::Option<bool> {
85 self.import_existing_resources
86 }
87}
88impl ChangeSetSummary {
89 pub fn builder() -> crate::types::builders::ChangeSetSummaryBuilder {
91 crate::types::builders::ChangeSetSummaryBuilder::default()
92 }
93}
94
95#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
97#[non_exhaustive]
98pub struct ChangeSetSummaryBuilder {
99 pub(crate) stack_id: ::std::option::Option<::std::string::String>,
100 pub(crate) stack_name: ::std::option::Option<::std::string::String>,
101 pub(crate) change_set_id: ::std::option::Option<::std::string::String>,
102 pub(crate) change_set_name: ::std::option::Option<::std::string::String>,
103 pub(crate) execution_status: ::std::option::Option<crate::types::ExecutionStatus>,
104 pub(crate) status: ::std::option::Option<crate::types::ChangeSetStatus>,
105 pub(crate) status_reason: ::std::option::Option<::std::string::String>,
106 pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
107 pub(crate) description: ::std::option::Option<::std::string::String>,
108 pub(crate) include_nested_stacks: ::std::option::Option<bool>,
109 pub(crate) parent_change_set_id: ::std::option::Option<::std::string::String>,
110 pub(crate) root_change_set_id: ::std::option::Option<::std::string::String>,
111 pub(crate) import_existing_resources: ::std::option::Option<bool>,
112}
113impl ChangeSetSummaryBuilder {
114 pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
116 self.stack_id = ::std::option::Option::Some(input.into());
117 self
118 }
119 pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
121 self.stack_id = input;
122 self
123 }
124 pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
126 &self.stack_id
127 }
128 pub fn stack_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.stack_name = ::std::option::Option::Some(input.into());
131 self
132 }
133 pub fn set_stack_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135 self.stack_name = input;
136 self
137 }
138 pub fn get_stack_name(&self) -> &::std::option::Option<::std::string::String> {
140 &self.stack_name
141 }
142 pub fn change_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144 self.change_set_id = ::std::option::Option::Some(input.into());
145 self
146 }
147 pub fn set_change_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149 self.change_set_id = input;
150 self
151 }
152 pub fn get_change_set_id(&self) -> &::std::option::Option<::std::string::String> {
154 &self.change_set_id
155 }
156 pub fn change_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
158 self.change_set_name = ::std::option::Option::Some(input.into());
159 self
160 }
161 pub fn set_change_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
163 self.change_set_name = input;
164 self
165 }
166 pub fn get_change_set_name(&self) -> &::std::option::Option<::std::string::String> {
168 &self.change_set_name
169 }
170 pub fn execution_status(mut self, input: crate::types::ExecutionStatus) -> Self {
172 self.execution_status = ::std::option::Option::Some(input);
173 self
174 }
175 pub fn set_execution_status(mut self, input: ::std::option::Option<crate::types::ExecutionStatus>) -> Self {
177 self.execution_status = input;
178 self
179 }
180 pub fn get_execution_status(&self) -> &::std::option::Option<crate::types::ExecutionStatus> {
182 &self.execution_status
183 }
184 pub fn status(mut self, input: crate::types::ChangeSetStatus) -> Self {
186 self.status = ::std::option::Option::Some(input);
187 self
188 }
189 pub fn set_status(mut self, input: ::std::option::Option<crate::types::ChangeSetStatus>) -> Self {
191 self.status = input;
192 self
193 }
194 pub fn get_status(&self) -> &::std::option::Option<crate::types::ChangeSetStatus> {
196 &self.status
197 }
198 pub fn status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
200 self.status_reason = ::std::option::Option::Some(input.into());
201 self
202 }
203 pub fn set_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
205 self.status_reason = input;
206 self
207 }
208 pub fn get_status_reason(&self) -> &::std::option::Option<::std::string::String> {
210 &self.status_reason
211 }
212 pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
214 self.creation_time = ::std::option::Option::Some(input);
215 self
216 }
217 pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
219 self.creation_time = input;
220 self
221 }
222 pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
224 &self.creation_time
225 }
226 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
228 self.description = ::std::option::Option::Some(input.into());
229 self
230 }
231 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
233 self.description = input;
234 self
235 }
236 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
238 &self.description
239 }
240 pub fn include_nested_stacks(mut self, input: bool) -> Self {
242 self.include_nested_stacks = ::std::option::Option::Some(input);
243 self
244 }
245 pub fn set_include_nested_stacks(mut self, input: ::std::option::Option<bool>) -> Self {
247 self.include_nested_stacks = input;
248 self
249 }
250 pub fn get_include_nested_stacks(&self) -> &::std::option::Option<bool> {
252 &self.include_nested_stacks
253 }
254 pub fn parent_change_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
256 self.parent_change_set_id = ::std::option::Option::Some(input.into());
257 self
258 }
259 pub fn set_parent_change_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
261 self.parent_change_set_id = input;
262 self
263 }
264 pub fn get_parent_change_set_id(&self) -> &::std::option::Option<::std::string::String> {
266 &self.parent_change_set_id
267 }
268 pub fn root_change_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
270 self.root_change_set_id = ::std::option::Option::Some(input.into());
271 self
272 }
273 pub fn set_root_change_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
275 self.root_change_set_id = input;
276 self
277 }
278 pub fn get_root_change_set_id(&self) -> &::std::option::Option<::std::string::String> {
280 &self.root_change_set_id
281 }
282 pub fn import_existing_resources(mut self, input: bool) -> Self {
284 self.import_existing_resources = ::std::option::Option::Some(input);
285 self
286 }
287 pub fn set_import_existing_resources(mut self, input: ::std::option::Option<bool>) -> Self {
289 self.import_existing_resources = input;
290 self
291 }
292 pub fn get_import_existing_resources(&self) -> &::std::option::Option<bool> {
294 &self.import_existing_resources
295 }
296 pub fn build(self) -> crate::types::ChangeSetSummary {
298 crate::types::ChangeSetSummary {
299 stack_id: self.stack_id,
300 stack_name: self.stack_name,
301 change_set_id: self.change_set_id,
302 change_set_name: self.change_set_name,
303 execution_status: self.execution_status,
304 status: self.status,
305 status_reason: self.status_reason,
306 creation_time: self.creation_time,
307 description: self.description,
308 include_nested_stacks: self.include_nested_stacks,
309 parent_change_set_id: self.parent_change_set_id,
310 root_change_set_id: self.root_change_set_id,
311 import_existing_resources: self.import_existing_resources,
312 }
313 }
314}