1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + |
|
3 + | /// <p>Information about the results of the execution preview.</p>
|
4 + | #[non_exhaustive]
|
5 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6 + | pub struct AutomationExecutionPreview {
|
7 + | /// <p>Information about the type of impact a runbook step would have on a resource.</p>
|
8 + | /// <ul>
|
9 + | /// <li>
|
10 + | /// <p><code>Mutating</code>: The runbook step would make changes to the targets through actions that create, modify, or delete resources.</p></li>
|
11 + | /// <li>
|
12 + | /// <p><code>Non_Mutating</code>: The runbook step would retrieve data about resources but not make changes to them. This category generally includes <code>Describe*</code>, <code>List*</code>, <code>Get*</code>, and similar read-only API actions.</p></li>
|
13 + | /// <li>
|
14 + | /// <p><code>Undetermined</code>: An undetermined step invokes executions performed by another orchestration service like Lambda, Step Functions, or Amazon Web Services Systems Manager Run Command. An undetermined step might also call a third-party API. Systems Manager Automation doesn't know the outcome of the orchestration processes or third-party API executions, so the results of the steps are undetermined.</p></li>
|
15 + | /// </ul>
|
16 + | pub step_previews: ::std::option::Option<::std::collections::HashMap<crate::types::ImpactType, i32>>,
|
17 + | /// <p>Information about the Amazon Web Services Regions targeted by the execution preview.</p>
|
18 + | pub regions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
19 + | /// <p>Information that provides a preview of what the impact of running the specified Automation runbook would be.</p>
|
20 + | pub target_previews: ::std::option::Option<::std::vec::Vec<crate::types::TargetPreview>>,
|
21 + | /// <p>Information about the Amazon Web Services accounts that were included in the execution preview.</p>
|
22 + | pub total_accounts: i32,
|
23 + | }
|
24 + | impl AutomationExecutionPreview {
|
25 + | /// <p>Information about the type of impact a runbook step would have on a resource.</p>
|
26 + | /// <ul>
|
27 + | /// <li>
|
28 + | /// <p><code>Mutating</code>: The runbook step would make changes to the targets through actions that create, modify, or delete resources.</p></li>
|
29 + | /// <li>
|
30 + | /// <p><code>Non_Mutating</code>: The runbook step would retrieve data about resources but not make changes to them. This category generally includes <code>Describe*</code>, <code>List*</code>, <code>Get*</code>, and similar read-only API actions.</p></li>
|
31 + | /// <li>
|
32 + | /// <p><code>Undetermined</code>: An undetermined step invokes executions performed by another orchestration service like Lambda, Step Functions, or Amazon Web Services Systems Manager Run Command. An undetermined step might also call a third-party API. Systems Manager Automation doesn't know the outcome of the orchestration processes or third-party API executions, so the results of the steps are undetermined.</p></li>
|
33 + | /// </ul>
|
34 + | pub fn step_previews(&self) -> ::std::option::Option<&::std::collections::HashMap<crate::types::ImpactType, i32>> {
|
35 + | self.step_previews.as_ref()
|
36 + | }
|
37 + | /// <p>Information about the Amazon Web Services Regions targeted by the execution preview.</p>
|
38 + | ///
|
39 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.regions.is_none()`.
|
40 + | pub fn regions(&self) -> &[::std::string::String] {
|
41 + | self.regions.as_deref().unwrap_or_default()
|
42 + | }
|
43 + | /// <p>Information that provides a preview of what the impact of running the specified Automation runbook would be.</p>
|
44 + | ///
|
45 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.target_previews.is_none()`.
|
46 + | pub fn target_previews(&self) -> &[crate::types::TargetPreview] {
|
47 + | self.target_previews.as_deref().unwrap_or_default()
|
48 + | }
|
49 + | /// <p>Information about the Amazon Web Services accounts that were included in the execution preview.</p>
|
50 + | pub fn total_accounts(&self) -> i32 {
|
51 + | self.total_accounts
|
52 + | }
|
53 + | }
|
54 + | static AUTOMATIONEXECUTIONPREVIEW_MEMBER_STEP_PREVIEWS_KEY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
55 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#StepPreviewMap$key", "com.amazonaws.ssm", "StepPreviewMap"),
|
56 + | ::aws_smithy_schema::ShapeType::String,
|
57 + | "key",
|
58 + | 0,
|
59 + | );
|
60 + | static AUTOMATIONEXECUTIONPREVIEW_MEMBER_STEP_PREVIEWS_VALUE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
61 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#StepPreviewMap$value", "com.amazonaws.ssm", "StepPreviewMap"),
|
62 + | ::aws_smithy_schema::ShapeType::Integer,
|
63 + | "value",
|
64 + | 1,
|
65 + | );
|
66 + | static AUTOMATIONEXECUTIONPREVIEW_MEMBER_STEP_PREVIEWS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
67 + | ::aws_smithy_schema::ShapeId::from_parts(
|
68 + | "com.amazonaws.ssm#AutomationExecutionPreview$StepPreviews",
|
69 + | "com.amazonaws.ssm",
|
70 + | "AutomationExecutionPreview",
|
71 + | ),
|
72 + | ::aws_smithy_schema::ShapeType::Map,
|
73 + | "StepPreviews",
|
74 + | 0,
|
75 + | )
|
76 + | .with_map_members(
|
77 + | &AUTOMATIONEXECUTIONPREVIEW_MEMBER_STEP_PREVIEWS_KEY,
|
78 + | &AUTOMATIONEXECUTIONPREVIEW_MEMBER_STEP_PREVIEWS_VALUE,
|
79 + | );
|
80 + | static AUTOMATIONEXECUTIONPREVIEW_MEMBER_REGIONS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
81 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#RegionList$member", "com.amazonaws.ssm", "RegionList"),
|
82 + | ::aws_smithy_schema::ShapeType::String,
|
83 + | "member",
|
84 + | 0,
|
85 + | );
|
86 + | static AUTOMATIONEXECUTIONPREVIEW_MEMBER_REGIONS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
87 + | ::aws_smithy_schema::ShapeId::from_parts(
|
88 + | "com.amazonaws.ssm#AutomationExecutionPreview$Regions",
|
89 + | "com.amazonaws.ssm",
|
90 + | "AutomationExecutionPreview",
|
91 + | ),
|
92 + | ::aws_smithy_schema::ShapeType::List,
|
93 + | "Regions",
|
94 + | 1,
|
95 + | )
|
96 + | .with_list_member(&AUTOMATIONEXECUTIONPREVIEW_MEMBER_REGIONS_MEMBER);
|
97 + | static AUTOMATIONEXECUTIONPREVIEW_MEMBER_TARGET_PREVIEWS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
98 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#TargetPreviewList$member", "com.amazonaws.ssm", "TargetPreviewList"),
|
99 + | ::aws_smithy_schema::ShapeType::Structure,
|
100 + | "member",
|
101 + | 0,
|
102 + | );
|
103 + | static AUTOMATIONEXECUTIONPREVIEW_MEMBER_TARGET_PREVIEWS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
104 + | ::aws_smithy_schema::ShapeId::from_parts(
|
105 + | "com.amazonaws.ssm#AutomationExecutionPreview$TargetPreviews",
|
106 + | "com.amazonaws.ssm",
|
107 + | "AutomationExecutionPreview",
|
108 + | ),
|
109 + | ::aws_smithy_schema::ShapeType::List,
|
110 + | "TargetPreviews",
|
111 + | 2,
|
112 + | )
|
113 + | .with_list_member(&AUTOMATIONEXECUTIONPREVIEW_MEMBER_TARGET_PREVIEWS_MEMBER);
|
114 + | static AUTOMATIONEXECUTIONPREVIEW_MEMBER_TOTAL_ACCOUNTS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
115 + | ::aws_smithy_schema::ShapeId::from_parts(
|
116 + | "com.amazonaws.ssm#AutomationExecutionPreview$TotalAccounts",
|
117 + | "com.amazonaws.ssm",
|
118 + | "AutomationExecutionPreview",
|
119 + | ),
|
120 + | ::aws_smithy_schema::ShapeType::Integer,
|
121 + | "TotalAccounts",
|
122 + | 3,
|
123 + | );
|
124 + | static AUTOMATIONEXECUTIONPREVIEW_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
125 + | ::aws_smithy_schema::ShapeId::from_parts(
|
126 + | "com.amazonaws.ssm#AutomationExecutionPreview",
|
127 + | "com.amazonaws.ssm",
|
128 + | "AutomationExecutionPreview",
|
129 + | ),
|
130 + | ::aws_smithy_schema::ShapeType::Structure,
|
131 + | &[
|
132 + | &AUTOMATIONEXECUTIONPREVIEW_MEMBER_STEP_PREVIEWS,
|
133 + | &AUTOMATIONEXECUTIONPREVIEW_MEMBER_REGIONS,
|
134 + | &AUTOMATIONEXECUTIONPREVIEW_MEMBER_TARGET_PREVIEWS,
|
135 + | &AUTOMATIONEXECUTIONPREVIEW_MEMBER_TOTAL_ACCOUNTS,
|
136 + | ],
|
137 + | );
|
138 + | impl AutomationExecutionPreview {
|
139 + | /// The schema for this shape.
|
140 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &AUTOMATIONEXECUTIONPREVIEW_SCHEMA;
|
141 + | }
|
142 + | impl ::aws_smithy_schema::serde::SerializableStruct for AutomationExecutionPreview {
|
143 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
144 + | fn serialize_members(
|
145 + | &self,
|
146 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
147 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
148 + | if let Some(ref val) = self.step_previews {
|
149 + | ser.write_map(
|
150 + | &AUTOMATIONEXECUTIONPREVIEW_MEMBER_STEP_PREVIEWS,
|
151 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
152 + | for (key, value) in val {
|
153 + | ser.write_string(&::aws_smithy_schema::prelude::STRING, key.as_str())?;
|
154 + | ser.write_integer(&::aws_smithy_schema::prelude::INTEGER, *value)?;
|
155 + | }
|
156 + | Ok(())
|
157 + | },
|
158 + | )?;
|
159 + | }
|
160 + | if let Some(ref val) = self.regions {
|
161 + | ser.write_list(
|
162 + | &AUTOMATIONEXECUTIONPREVIEW_MEMBER_REGIONS,
|
163 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
164 + | for item in val {
|
165 + | ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
|
166 + | }
|
167 + | Ok(())
|
168 + | },
|
169 + | )?;
|
170 + | }
|
171 + | if let Some(ref val) = self.target_previews {
|
172 + | ser.write_list(
|
173 + | &AUTOMATIONEXECUTIONPREVIEW_MEMBER_TARGET_PREVIEWS,
|
174 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
175 + | for item in val {
|
176 + | ser.write_struct(crate::types::TargetPreview::SCHEMA, item)?;
|
177 + | }
|
178 + | Ok(())
|
179 + | },
|
180 + | )?;
|
181 + | }
|
182 + | {
|
183 + | let val = &self.total_accounts;
|
184 + | ser.write_integer(&AUTOMATIONEXECUTIONPREVIEW_MEMBER_TOTAL_ACCOUNTS, *val)?;
|
185 + | }
|
186 + | Ok(())
|
187 + | }
|
188 + | }
|
189 + | impl AutomationExecutionPreview {
|
190 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
191 + | pub fn deserialize(
|
192 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
193 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
194 + | #[allow(unused_variables, unused_mut)]
|
195 + | let mut builder = Self::builder();
|
196 + | #[allow(
|
197 + | unused_variables,
|
198 + | unreachable_code,
|
199 + | clippy::single_match,
|
200 + | clippy::match_single_binding,
|
201 + | clippy::diverging_sub_expression
|
202 + | )]
|
203 + | deserializer.read_struct(&AUTOMATIONEXECUTIONPREVIEW_SCHEMA, &mut |member, deser| {
|
204 + | match member.member_index() {
|
205 + | Some(0) => {
|
206 + | if deser.is_null() {
|
207 + | deser.read_null()?;
|
208 + | } else {
|
209 + | builder.step_previews = Some({
|
210 + | let mut container = std::collections::HashMap::new();
|
211 + | deser.read_map(member, &mut |key, deser| {
|
212 + | container.insert(
|
213 + | crate::types::ImpactType::from(key.as_str()),
|
214 + | deser.read_integer(&::aws_smithy_schema::prelude::INTEGER)?,
|
215 + | );
|
216 + | Ok(())
|
217 + | })?;
|
218 + | container
|
219 + | });
|
220 + | }
|
221 + | }
|
222 + | Some(1) => {
|
223 + | if deser.is_null() {
|
224 + | deser.read_null()?;
|
225 + | } else {
|
226 + | builder.regions = Some(deser.read_string_list(member)?);
|
227 + | }
|
228 + | }
|
229 + | Some(2) => {
|
230 + | if deser.is_null() {
|
231 + | deser.read_null()?;
|
232 + | } else {
|
233 + | builder.target_previews = Some({
|
234 + | let mut container = Vec::new();
|
235 + | deser.read_list(member, &mut |deser| {
|
236 + | container.push(crate::types::TargetPreview::deserialize(deser)?);
|
237 + | Ok(())
|
238 + | })?;
|
239 + | container
|
240 + | });
|
241 + | }
|
242 + | }
|
243 + | Some(3) => {
|
244 + | builder.total_accounts = Some(deser.read_integer(member)?);
|
245 + | }
|
246 + | _ => {}
|
247 + | }
|
248 + | Ok(())
|
249 + | })?;
|
250 + | Ok(builder.build())
|
251 + | }
|
252 + | }
|
253 + | impl AutomationExecutionPreview {
|
254 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
255 + | pub fn deserialize_with_response(
|
256 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
257 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
258 + | _status: u16,
|
259 + | _body: &[u8],
|
260 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
261 + | Self::deserialize(deserializer)
|
262 + | }
|
263 + | }
|
264 + | impl AutomationExecutionPreview {
|
265 + | /// Creates a new builder-style object to manufacture [`AutomationExecutionPreview`](crate::types::AutomationExecutionPreview).
|
266 + | pub fn builder() -> crate::types::builders::AutomationExecutionPreviewBuilder {
|
267 + | crate::types::builders::AutomationExecutionPreviewBuilder::default()
|
268 + | }
|
269 + | }
|
270 + |
|
271 + | /// A builder for [`AutomationExecutionPreview`](crate::types::AutomationExecutionPreview).
|
272 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
273 + | #[non_exhaustive]
|
274 + | pub struct AutomationExecutionPreviewBuilder {
|
275 + | pub(crate) step_previews: ::std::option::Option<::std::collections::HashMap<crate::types::ImpactType, i32>>,
|
276 + | pub(crate) regions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
277 + | pub(crate) target_previews: ::std::option::Option<::std::vec::Vec<crate::types::TargetPreview>>,
|
278 + | pub(crate) total_accounts: ::std::option::Option<i32>,
|
279 + | }
|
280 + | impl AutomationExecutionPreviewBuilder {
|
281 + | /// Adds a key-value pair to `step_previews`.
|
282 + | ///
|
283 + | /// To override the contents of this collection use [`set_step_previews`](Self::set_step_previews).
|
284 + | ///
|
285 + | /// <p>Information about the type of impact a runbook step would have on a resource.</p>
|
286 + | /// <ul>
|
287 + | /// <li>
|
288 + | /// <p><code>Mutating</code>: The runbook step would make changes to the targets through actions that create, modify, or delete resources.</p></li>
|
289 + | /// <li>
|
290 + | /// <p><code>Non_Mutating</code>: The runbook step would retrieve data about resources but not make changes to them. This category generally includes <code>Describe*</code>, <code>List*</code>, <code>Get*</code>, and similar read-only API actions.</p></li>
|
291 + | /// <li>
|
292 + | /// <p><code>Undetermined</code>: An undetermined step invokes executions performed by another orchestration service like Lambda, Step Functions, or Amazon Web Services Systems Manager Run Command. An undetermined step might also call a third-party API. Systems Manager Automation doesn't know the outcome of the orchestration processes or third-party API executions, so the results of the steps are undetermined.</p></li>
|
293 + | /// </ul>
|
294 + | pub fn step_previews(mut self, k: crate::types::ImpactType, v: i32) -> Self {
|
295 + | let mut hash_map = self.step_previews.unwrap_or_default();
|
296 + | hash_map.insert(k, v);
|
297 + | self.step_previews = ::std::option::Option::Some(hash_map);
|
298 + | self
|
299 + | }
|
300 + | /// <p>Information about the type of impact a runbook step would have on a resource.</p>
|
301 + | /// <ul>
|
302 + | /// <li>
|
303 + | /// <p><code>Mutating</code>: The runbook step would make changes to the targets through actions that create, modify, or delete resources.</p></li>
|
304 + | /// <li>
|
305 + | /// <p><code>Non_Mutating</code>: The runbook step would retrieve data about resources but not make changes to them. This category generally includes <code>Describe*</code>, <code>List*</code>, <code>Get*</code>, and similar read-only API actions.</p></li>
|
306 + | /// <li>
|
307 + | /// <p><code>Undetermined</code>: An undetermined step invokes executions performed by another orchestration service like Lambda, Step Functions, or Amazon Web Services Systems Manager Run Command. An undetermined step might also call a third-party API. Systems Manager Automation doesn't know the outcome of the orchestration processes or third-party API executions, so the results of the steps are undetermined.</p></li>
|
308 + | /// </ul>
|
309 + | pub fn set_step_previews(mut self, input: ::std::option::Option<::std::collections::HashMap<crate::types::ImpactType, i32>>) -> Self {
|
310 + | self.step_previews = input;
|
311 + | self
|
312 + | }
|
313 + | /// <p>Information about the type of impact a runbook step would have on a resource.</p>
|
314 + | /// <ul>
|
315 + | /// <li>
|
316 + | /// <p><code>Mutating</code>: The runbook step would make changes to the targets through actions that create, modify, or delete resources.</p></li>
|
317 + | /// <li>
|
318 + | /// <p><code>Non_Mutating</code>: The runbook step would retrieve data about resources but not make changes to them. This category generally includes <code>Describe*</code>, <code>List*</code>, <code>Get*</code>, and similar read-only API actions.</p></li>
|
319 + | /// <li>
|
320 + | /// <p><code>Undetermined</code>: An undetermined step invokes executions performed by another orchestration service like Lambda, Step Functions, or Amazon Web Services Systems Manager Run Command. An undetermined step might also call a third-party API. Systems Manager Automation doesn't know the outcome of the orchestration processes or third-party API executions, so the results of the steps are undetermined.</p></li>
|
321 + | /// </ul>
|
322 + | pub fn get_step_previews(&self) -> &::std::option::Option<::std::collections::HashMap<crate::types::ImpactType, i32>> {
|
323 + | &self.step_previews
|
324 + | }
|
325 + | /// Appends an item to `regions`.
|
326 + | ///
|
327 + | /// To override the contents of this collection use [`set_regions`](Self::set_regions).
|
328 + | ///
|
329 + | /// <p>Information about the Amazon Web Services Regions targeted by the execution preview.</p>
|
330 + | pub fn regions(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
331 + | let mut v = self.regions.unwrap_or_default();
|
332 + | v.push(input.into());
|
333 + | self.regions = ::std::option::Option::Some(v);
|
334 + | self
|
335 + | }
|
336 + | /// <p>Information about the Amazon Web Services Regions targeted by the execution preview.</p>
|
337 + | pub fn set_regions(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
|
338 + | self.regions = input;
|
339 + | self
|
340 + | }
|
341 + | /// <p>Information about the Amazon Web Services Regions targeted by the execution preview.</p>
|
342 + | pub fn get_regions(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
|
343 + | &self.regions
|
344 + | }
|
345 + | /// Appends an item to `target_previews`.
|
346 + | ///
|
347 + | /// To override the contents of this collection use [`set_target_previews`](Self::set_target_previews).
|
348 + | ///
|
349 + | /// <p>Information that provides a preview of what the impact of running the specified Automation runbook would be.</p>
|
350 + | pub fn target_previews(mut self, input: crate::types::TargetPreview) -> Self {
|
351 + | let mut v = self.target_previews.unwrap_or_default();
|
352 + | v.push(input);
|
353 + | self.target_previews = ::std::option::Option::Some(v);
|
354 + | self
|
355 + | }
|
356 + | /// <p>Information that provides a preview of what the impact of running the specified Automation runbook would be.</p>
|
357 + | pub fn set_target_previews(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TargetPreview>>) -> Self {
|
358 + | self.target_previews = input;
|
359 + | self
|
360 + | }
|
361 + | /// <p>Information that provides a preview of what the impact of running the specified Automation runbook would be.</p>
|
362 + | pub fn get_target_previews(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TargetPreview>> {
|
363 + | &self.target_previews
|
364 + | }
|
365 + | /// <p>Information about the Amazon Web Services accounts that were included in the execution preview.</p>
|
366 + | pub fn total_accounts(mut self, input: i32) -> Self {
|
367 + | self.total_accounts = ::std::option::Option::Some(input);
|
368 + | self
|
369 + | }
|
370 + | /// <p>Information about the Amazon Web Services accounts that were included in the execution preview.</p>
|
371 + | pub fn set_total_accounts(mut self, input: ::std::option::Option<i32>) -> Self {
|
372 + | self.total_accounts = input;
|
373 + | self
|
374 + | }
|
375 + | /// <p>Information about the Amazon Web Services accounts that were included in the execution preview.</p>
|
376 + | pub fn get_total_accounts(&self) -> &::std::option::Option<i32> {
|
377 + | &self.total_accounts
|
378 + | }
|
379 + | /// Consumes the builder and constructs a [`AutomationExecutionPreview`](crate::types::AutomationExecutionPreview).
|
380 + | pub fn build(self) -> crate::types::AutomationExecutionPreview {
|
381 + | crate::types::AutomationExecutionPreview {
|
382 + | step_previews: self.step_previews,
|
383 + | regions: self.regions,
|
384 + | target_previews: self.target_previews,
|
385 + | total_accounts: self.total_accounts.unwrap_or_default(),
|
386 + | }
|
387 + | }
|
388 + | }
|