AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AutomationExecution.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/AlarmConfiguration.h>
13#include <aws/ssm/model/AlarmStateInformation.h>
14#include <aws/ssm/model/AutomationExecutionStatus.h>
15#include <aws/ssm/model/AutomationSubtype.h>
16#include <aws/ssm/model/ExecutionMode.h>
17#include <aws/ssm/model/ProgressCounters.h>
18#include <aws/ssm/model/ResolvedTargets.h>
19#include <aws/ssm/model/Runbook.h>
20#include <aws/ssm/model/StepExecution.h>
21#include <aws/ssm/model/Target.h>
22#include <aws/ssm/model/TargetLocation.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Utils {
28namespace Json {
29class JsonValue;
30class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace SSM {
34namespace Model {
35
43 public:
44 AWS_SSM_API AutomationExecution() = default;
48
50
53 inline const Aws::String& GetAutomationExecutionId() const { return m_automationExecutionId; }
54 inline bool AutomationExecutionIdHasBeenSet() const { return m_automationExecutionIdHasBeenSet; }
55 template <typename AutomationExecutionIdT = Aws::String>
56 void SetAutomationExecutionId(AutomationExecutionIdT&& value) {
57 m_automationExecutionIdHasBeenSet = true;
58 m_automationExecutionId = std::forward<AutomationExecutionIdT>(value);
59 }
60 template <typename AutomationExecutionIdT = Aws::String>
61 AutomationExecution& WithAutomationExecutionId(AutomationExecutionIdT&& value) {
62 SetAutomationExecutionId(std::forward<AutomationExecutionIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetDocumentName() const { return m_documentName; }
72 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
73 template <typename DocumentNameT = Aws::String>
74 void SetDocumentName(DocumentNameT&& value) {
75 m_documentNameHasBeenSet = true;
76 m_documentName = std::forward<DocumentNameT>(value);
77 }
78 template <typename DocumentNameT = Aws::String>
79 AutomationExecution& WithDocumentName(DocumentNameT&& value) {
80 SetDocumentName(std::forward<DocumentNameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
90 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
91 template <typename DocumentVersionT = Aws::String>
92 void SetDocumentVersion(DocumentVersionT&& value) {
93 m_documentVersionHasBeenSet = true;
94 m_documentVersion = std::forward<DocumentVersionT>(value);
95 }
96 template <typename DocumentVersionT = Aws::String>
97 AutomationExecution& WithDocumentVersion(DocumentVersionT&& value) {
98 SetDocumentVersion(std::forward<DocumentVersionT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetExecutionStartTime() const { return m_executionStartTime; }
108 inline bool ExecutionStartTimeHasBeenSet() const { return m_executionStartTimeHasBeenSet; }
109 template <typename ExecutionStartTimeT = Aws::Utils::DateTime>
110 void SetExecutionStartTime(ExecutionStartTimeT&& value) {
111 m_executionStartTimeHasBeenSet = true;
112 m_executionStartTime = std::forward<ExecutionStartTimeT>(value);
113 }
114 template <typename ExecutionStartTimeT = Aws::Utils::DateTime>
115 AutomationExecution& WithExecutionStartTime(ExecutionStartTimeT&& value) {
116 SetExecutionStartTime(std::forward<ExecutionStartTimeT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetExecutionEndTime() const { return m_executionEndTime; }
126 inline bool ExecutionEndTimeHasBeenSet() const { return m_executionEndTimeHasBeenSet; }
127 template <typename ExecutionEndTimeT = Aws::Utils::DateTime>
128 void SetExecutionEndTime(ExecutionEndTimeT&& value) {
129 m_executionEndTimeHasBeenSet = true;
130 m_executionEndTime = std::forward<ExecutionEndTimeT>(value);
131 }
132 template <typename ExecutionEndTimeT = Aws::Utils::DateTime>
133 AutomationExecution& WithExecutionEndTime(ExecutionEndTimeT&& value) {
134 SetExecutionEndTime(std::forward<ExecutionEndTimeT>(value));
135 return *this;
136 }
138
140
143 inline AutomationExecutionStatus GetAutomationExecutionStatus() const { return m_automationExecutionStatus; }
144 inline bool AutomationExecutionStatusHasBeenSet() const { return m_automationExecutionStatusHasBeenSet; }
146 m_automationExecutionStatusHasBeenSet = true;
147 m_automationExecutionStatus = value;
148 }
151 return *this;
152 }
154
156
161 inline const Aws::Vector<StepExecution>& GetStepExecutions() const { return m_stepExecutions; }
162 inline bool StepExecutionsHasBeenSet() const { return m_stepExecutionsHasBeenSet; }
163 template <typename StepExecutionsT = Aws::Vector<StepExecution>>
164 void SetStepExecutions(StepExecutionsT&& value) {
165 m_stepExecutionsHasBeenSet = true;
166 m_stepExecutions = std::forward<StepExecutionsT>(value);
167 }
168 template <typename StepExecutionsT = Aws::Vector<StepExecution>>
169 AutomationExecution& WithStepExecutions(StepExecutionsT&& value) {
170 SetStepExecutions(std::forward<StepExecutionsT>(value));
171 return *this;
172 }
173 template <typename StepExecutionsT = StepExecution>
174 AutomationExecution& AddStepExecutions(StepExecutionsT&& value) {
175 m_stepExecutionsHasBeenSet = true;
176 m_stepExecutions.emplace_back(std::forward<StepExecutionsT>(value));
177 return *this;
178 }
180
182
187 inline bool GetStepExecutionsTruncated() const { return m_stepExecutionsTruncated; }
188 inline bool StepExecutionsTruncatedHasBeenSet() const { return m_stepExecutionsTruncatedHasBeenSet; }
189 inline void SetStepExecutionsTruncated(bool value) {
190 m_stepExecutionsTruncatedHasBeenSet = true;
191 m_stepExecutionsTruncated = value;
192 }
195 return *this;
196 }
198
200
204 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
205 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
206 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
207 void SetParameters(ParametersT&& value) {
208 m_parametersHasBeenSet = true;
209 m_parameters = std::forward<ParametersT>(value);
210 }
211 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
212 AutomationExecution& WithParameters(ParametersT&& value) {
213 SetParameters(std::forward<ParametersT>(value));
214 return *this;
215 }
216 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
217 AutomationExecution& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
218 m_parametersHasBeenSet = true;
219 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetOutputs() const { return m_outputs; }
229 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
230 template <typename OutputsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
231 void SetOutputs(OutputsT&& value) {
232 m_outputsHasBeenSet = true;
233 m_outputs = std::forward<OutputsT>(value);
234 }
235 template <typename OutputsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
236 AutomationExecution& WithOutputs(OutputsT&& value) {
237 SetOutputs(std::forward<OutputsT>(value));
238 return *this;
239 }
240 template <typename OutputsKeyT = Aws::String, typename OutputsValueT = Aws::Vector<Aws::String>>
241 AutomationExecution& AddOutputs(OutputsKeyT&& key, OutputsValueT&& value) {
242 m_outputsHasBeenSet = true;
243 m_outputs.emplace(std::forward<OutputsKeyT>(key), std::forward<OutputsValueT>(value));
244 return *this;
245 }
247
249
253 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
254 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
255 template <typename FailureMessageT = Aws::String>
256 void SetFailureMessage(FailureMessageT&& value) {
257 m_failureMessageHasBeenSet = true;
258 m_failureMessage = std::forward<FailureMessageT>(value);
259 }
260 template <typename FailureMessageT = Aws::String>
261 AutomationExecution& WithFailureMessage(FailureMessageT&& value) {
262 SetFailureMessage(std::forward<FailureMessageT>(value));
263 return *this;
264 }
266
268
271 inline ExecutionMode GetMode() const { return m_mode; }
272 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
273 inline void SetMode(ExecutionMode value) {
274 m_modeHasBeenSet = true;
275 m_mode = value;
276 }
278 SetMode(value);
279 return *this;
280 }
282
284
287 inline const Aws::String& GetParentAutomationExecutionId() const { return m_parentAutomationExecutionId; }
288 inline bool ParentAutomationExecutionIdHasBeenSet() const { return m_parentAutomationExecutionIdHasBeenSet; }
289 template <typename ParentAutomationExecutionIdT = Aws::String>
290 void SetParentAutomationExecutionId(ParentAutomationExecutionIdT&& value) {
291 m_parentAutomationExecutionIdHasBeenSet = true;
292 m_parentAutomationExecutionId = std::forward<ParentAutomationExecutionIdT>(value);
293 }
294 template <typename ParentAutomationExecutionIdT = Aws::String>
295 AutomationExecution& WithParentAutomationExecutionId(ParentAutomationExecutionIdT&& value) {
296 SetParentAutomationExecutionId(std::forward<ParentAutomationExecutionIdT>(value));
297 return *this;
298 }
300
302
305 inline const Aws::String& GetExecutedBy() const { return m_executedBy; }
306 inline bool ExecutedByHasBeenSet() const { return m_executedByHasBeenSet; }
307 template <typename ExecutedByT = Aws::String>
308 void SetExecutedBy(ExecutedByT&& value) {
309 m_executedByHasBeenSet = true;
310 m_executedBy = std::forward<ExecutedByT>(value);
311 }
312 template <typename ExecutedByT = Aws::String>
313 AutomationExecution& WithExecutedBy(ExecutedByT&& value) {
314 SetExecutedBy(std::forward<ExecutedByT>(value));
315 return *this;
316 }
318
320
323 inline const Aws::String& GetCurrentStepName() const { return m_currentStepName; }
324 inline bool CurrentStepNameHasBeenSet() const { return m_currentStepNameHasBeenSet; }
325 template <typename CurrentStepNameT = Aws::String>
326 void SetCurrentStepName(CurrentStepNameT&& value) {
327 m_currentStepNameHasBeenSet = true;
328 m_currentStepName = std::forward<CurrentStepNameT>(value);
329 }
330 template <typename CurrentStepNameT = Aws::String>
331 AutomationExecution& WithCurrentStepName(CurrentStepNameT&& value) {
332 SetCurrentStepName(std::forward<CurrentStepNameT>(value));
333 return *this;
334 }
336
338
341 inline const Aws::String& GetCurrentAction() const { return m_currentAction; }
342 inline bool CurrentActionHasBeenSet() const { return m_currentActionHasBeenSet; }
343 template <typename CurrentActionT = Aws::String>
344 void SetCurrentAction(CurrentActionT&& value) {
345 m_currentActionHasBeenSet = true;
346 m_currentAction = std::forward<CurrentActionT>(value);
347 }
348 template <typename CurrentActionT = Aws::String>
349 AutomationExecution& WithCurrentAction(CurrentActionT&& value) {
350 SetCurrentAction(std::forward<CurrentActionT>(value));
351 return *this;
352 }
354
356
359 inline const Aws::String& GetTargetParameterName() const { return m_targetParameterName; }
360 inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
361 template <typename TargetParameterNameT = Aws::String>
362 void SetTargetParameterName(TargetParameterNameT&& value) {
363 m_targetParameterNameHasBeenSet = true;
364 m_targetParameterName = std::forward<TargetParameterNameT>(value);
365 }
366 template <typename TargetParameterNameT = Aws::String>
367 AutomationExecution& WithTargetParameterName(TargetParameterNameT&& value) {
368 SetTargetParameterName(std::forward<TargetParameterNameT>(value));
369 return *this;
370 }
372
374
377 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
378 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
379 template <typename TargetsT = Aws::Vector<Target>>
380 void SetTargets(TargetsT&& value) {
381 m_targetsHasBeenSet = true;
382 m_targets = std::forward<TargetsT>(value);
383 }
384 template <typename TargetsT = Aws::Vector<Target>>
385 AutomationExecution& WithTargets(TargetsT&& value) {
386 SetTargets(std::forward<TargetsT>(value));
387 return *this;
388 }
389 template <typename TargetsT = Target>
390 AutomationExecution& AddTargets(TargetsT&& value) {
391 m_targetsHasBeenSet = true;
392 m_targets.emplace_back(std::forward<TargetsT>(value));
393 return *this;
394 }
396
398
402 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
403 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
404 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
405 void SetTargetMaps(TargetMapsT&& value) {
406 m_targetMapsHasBeenSet = true;
407 m_targetMaps = std::forward<TargetMapsT>(value);
408 }
409 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
410 AutomationExecution& WithTargetMaps(TargetMapsT&& value) {
411 SetTargetMaps(std::forward<TargetMapsT>(value));
412 return *this;
413 }
414 template <typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
415 AutomationExecution& AddTargetMaps(TargetMapsT&& value) {
416 m_targetMapsHasBeenSet = true;
417 m_targetMaps.emplace_back(std::forward<TargetMapsT>(value));
418 return *this;
419 }
421
423
426 inline const ResolvedTargets& GetResolvedTargets() const { return m_resolvedTargets; }
427 inline bool ResolvedTargetsHasBeenSet() const { return m_resolvedTargetsHasBeenSet; }
428 template <typename ResolvedTargetsT = ResolvedTargets>
429 void SetResolvedTargets(ResolvedTargetsT&& value) {
430 m_resolvedTargetsHasBeenSet = true;
431 m_resolvedTargets = std::forward<ResolvedTargetsT>(value);
432 }
433 template <typename ResolvedTargetsT = ResolvedTargets>
434 AutomationExecution& WithResolvedTargets(ResolvedTargetsT&& value) {
435 SetResolvedTargets(std::forward<ResolvedTargetsT>(value));
436 return *this;
437 }
439
441
445 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
446 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
447 template <typename MaxConcurrencyT = Aws::String>
448 void SetMaxConcurrency(MaxConcurrencyT&& value) {
449 m_maxConcurrencyHasBeenSet = true;
450 m_maxConcurrency = std::forward<MaxConcurrencyT>(value);
451 }
452 template <typename MaxConcurrencyT = Aws::String>
453 AutomationExecution& WithMaxConcurrency(MaxConcurrencyT&& value) {
454 SetMaxConcurrency(std::forward<MaxConcurrencyT>(value));
455 return *this;
456 }
458
460
463 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
464 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
465 template <typename MaxErrorsT = Aws::String>
466 void SetMaxErrors(MaxErrorsT&& value) {
467 m_maxErrorsHasBeenSet = true;
468 m_maxErrors = std::forward<MaxErrorsT>(value);
469 }
470 template <typename MaxErrorsT = Aws::String>
471 AutomationExecution& WithMaxErrors(MaxErrorsT&& value) {
472 SetMaxErrors(std::forward<MaxErrorsT>(value));
473 return *this;
474 }
476
478
481 inline const Aws::String& GetTarget() const { return m_target; }
482 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
483 template <typename TargetT = Aws::String>
484 void SetTarget(TargetT&& value) {
485 m_targetHasBeenSet = true;
486 m_target = std::forward<TargetT>(value);
487 }
488 template <typename TargetT = Aws::String>
489 AutomationExecution& WithTarget(TargetT&& value) {
490 SetTarget(std::forward<TargetT>(value));
491 return *this;
492 }
494
496
500 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
501 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
502 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
503 void SetTargetLocations(TargetLocationsT&& value) {
504 m_targetLocationsHasBeenSet = true;
505 m_targetLocations = std::forward<TargetLocationsT>(value);
506 }
507 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
508 AutomationExecution& WithTargetLocations(TargetLocationsT&& value) {
509 SetTargetLocations(std::forward<TargetLocationsT>(value));
510 return *this;
511 }
512 template <typename TargetLocationsT = TargetLocation>
513 AutomationExecution& AddTargetLocations(TargetLocationsT&& value) {
514 m_targetLocationsHasBeenSet = true;
515 m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value));
516 return *this;
517 }
519
521
526 inline const ProgressCounters& GetProgressCounters() const { return m_progressCounters; }
527 inline bool ProgressCountersHasBeenSet() const { return m_progressCountersHasBeenSet; }
528 template <typename ProgressCountersT = ProgressCounters>
529 void SetProgressCounters(ProgressCountersT&& value) {
530 m_progressCountersHasBeenSet = true;
531 m_progressCounters = std::forward<ProgressCountersT>(value);
532 }
533 template <typename ProgressCountersT = ProgressCounters>
534 AutomationExecution& WithProgressCounters(ProgressCountersT&& value) {
535 SetProgressCounters(std::forward<ProgressCountersT>(value));
536 return *this;
537 }
539
541
544 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
545 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
546 template <typename AlarmConfigurationT = AlarmConfiguration>
547 void SetAlarmConfiguration(AlarmConfigurationT&& value) {
548 m_alarmConfigurationHasBeenSet = true;
549 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
550 }
551 template <typename AlarmConfigurationT = AlarmConfiguration>
552 AutomationExecution& WithAlarmConfiguration(AlarmConfigurationT&& value) {
553 SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value));
554 return *this;
555 }
557
559
562 inline const Aws::Vector<AlarmStateInformation>& GetTriggeredAlarms() const { return m_triggeredAlarms; }
563 inline bool TriggeredAlarmsHasBeenSet() const { return m_triggeredAlarmsHasBeenSet; }
564 template <typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
565 void SetTriggeredAlarms(TriggeredAlarmsT&& value) {
566 m_triggeredAlarmsHasBeenSet = true;
567 m_triggeredAlarms = std::forward<TriggeredAlarmsT>(value);
568 }
569 template <typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
570 AutomationExecution& WithTriggeredAlarms(TriggeredAlarmsT&& value) {
571 SetTriggeredAlarms(std::forward<TriggeredAlarmsT>(value));
572 return *this;
573 }
574 template <typename TriggeredAlarmsT = AlarmStateInformation>
575 AutomationExecution& AddTriggeredAlarms(TriggeredAlarmsT&& value) {
576 m_triggeredAlarmsHasBeenSet = true;
577 m_triggeredAlarms.emplace_back(std::forward<TriggeredAlarmsT>(value));
578 return *this;
579 }
581
583
588 inline const Aws::String& GetTargetLocationsURL() const { return m_targetLocationsURL; }
589 inline bool TargetLocationsURLHasBeenSet() const { return m_targetLocationsURLHasBeenSet; }
590 template <typename TargetLocationsURLT = Aws::String>
591 void SetTargetLocationsURL(TargetLocationsURLT&& value) {
592 m_targetLocationsURLHasBeenSet = true;
593 m_targetLocationsURL = std::forward<TargetLocationsURLT>(value);
594 }
595 template <typename TargetLocationsURLT = Aws::String>
596 AutomationExecution& WithTargetLocationsURL(TargetLocationsURLT&& value) {
597 SetTargetLocationsURL(std::forward<TargetLocationsURLT>(value));
598 return *this;
599 }
601
603
607 inline AutomationSubtype GetAutomationSubtype() const { return m_automationSubtype; }
608 inline bool AutomationSubtypeHasBeenSet() const { return m_automationSubtypeHasBeenSet; }
610 m_automationSubtypeHasBeenSet = true;
611 m_automationSubtype = value;
612 }
615 return *this;
616 }
618
620
623 inline const Aws::Utils::DateTime& GetScheduledTime() const { return m_scheduledTime; }
624 inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; }
625 template <typename ScheduledTimeT = Aws::Utils::DateTime>
626 void SetScheduledTime(ScheduledTimeT&& value) {
627 m_scheduledTimeHasBeenSet = true;
628 m_scheduledTime = std::forward<ScheduledTimeT>(value);
629 }
630 template <typename ScheduledTimeT = Aws::Utils::DateTime>
631 AutomationExecution& WithScheduledTime(ScheduledTimeT&& value) {
632 SetScheduledTime(std::forward<ScheduledTimeT>(value));
633 return *this;
634 }
636
638
644 inline const Aws::Vector<Runbook>& GetRunbooks() const { return m_runbooks; }
645 inline bool RunbooksHasBeenSet() const { return m_runbooksHasBeenSet; }
646 template <typename RunbooksT = Aws::Vector<Runbook>>
647 void SetRunbooks(RunbooksT&& value) {
648 m_runbooksHasBeenSet = true;
649 m_runbooks = std::forward<RunbooksT>(value);
650 }
651 template <typename RunbooksT = Aws::Vector<Runbook>>
652 AutomationExecution& WithRunbooks(RunbooksT&& value) {
653 SetRunbooks(std::forward<RunbooksT>(value));
654 return *this;
655 }
656 template <typename RunbooksT = Runbook>
657 AutomationExecution& AddRunbooks(RunbooksT&& value) {
658 m_runbooksHasBeenSet = true;
659 m_runbooks.emplace_back(std::forward<RunbooksT>(value));
660 return *this;
661 }
663
665
669 inline const Aws::String& GetOpsItemId() const { return m_opsItemId; }
670 inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
671 template <typename OpsItemIdT = Aws::String>
672 void SetOpsItemId(OpsItemIdT&& value) {
673 m_opsItemIdHasBeenSet = true;
674 m_opsItemId = std::forward<OpsItemIdT>(value);
675 }
676 template <typename OpsItemIdT = Aws::String>
677 AutomationExecution& WithOpsItemId(OpsItemIdT&& value) {
678 SetOpsItemId(std::forward<OpsItemIdT>(value));
679 return *this;
680 }
682
684
687 inline const Aws::String& GetAssociationId() const { return m_associationId; }
688 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
689 template <typename AssociationIdT = Aws::String>
690 void SetAssociationId(AssociationIdT&& value) {
691 m_associationIdHasBeenSet = true;
692 m_associationId = std::forward<AssociationIdT>(value);
693 }
694 template <typename AssociationIdT = Aws::String>
695 AutomationExecution& WithAssociationId(AssociationIdT&& value) {
696 SetAssociationId(std::forward<AssociationIdT>(value));
697 return *this;
698 }
700
702
705 inline const Aws::String& GetChangeRequestName() const { return m_changeRequestName; }
706 inline bool ChangeRequestNameHasBeenSet() const { return m_changeRequestNameHasBeenSet; }
707 template <typename ChangeRequestNameT = Aws::String>
708 void SetChangeRequestName(ChangeRequestNameT&& value) {
709 m_changeRequestNameHasBeenSet = true;
710 m_changeRequestName = std::forward<ChangeRequestNameT>(value);
711 }
712 template <typename ChangeRequestNameT = Aws::String>
713 AutomationExecution& WithChangeRequestName(ChangeRequestNameT&& value) {
714 SetChangeRequestName(std::forward<ChangeRequestNameT>(value));
715 return *this;
716 }
718
720
723 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetVariables() const { return m_variables; }
724 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
725 template <typename VariablesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
726 void SetVariables(VariablesT&& value) {
727 m_variablesHasBeenSet = true;
728 m_variables = std::forward<VariablesT>(value);
729 }
730 template <typename VariablesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
731 AutomationExecution& WithVariables(VariablesT&& value) {
732 SetVariables(std::forward<VariablesT>(value));
733 return *this;
734 }
735 template <typename VariablesKeyT = Aws::String, typename VariablesValueT = Aws::Vector<Aws::String>>
736 AutomationExecution& AddVariables(VariablesKeyT&& key, VariablesValueT&& value) {
737 m_variablesHasBeenSet = true;
738 m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value));
739 return *this;
740 }
742 private:
743 Aws::String m_automationExecutionId;
744
745 Aws::String m_documentName;
746
747 Aws::String m_documentVersion;
748
749 Aws::Utils::DateTime m_executionStartTime{};
750
751 Aws::Utils::DateTime m_executionEndTime{};
752
754
755 Aws::Vector<StepExecution> m_stepExecutions;
756
757 bool m_stepExecutionsTruncated{false};
758
760
762
763 Aws::String m_failureMessage;
764
766
767 Aws::String m_parentAutomationExecutionId;
768
769 Aws::String m_executedBy;
770
771 Aws::String m_currentStepName;
772
773 Aws::String m_currentAction;
774
775 Aws::String m_targetParameterName;
776
777 Aws::Vector<Target> m_targets;
778
780
781 ResolvedTargets m_resolvedTargets;
782
783 Aws::String m_maxConcurrency;
784
785 Aws::String m_maxErrors;
786
787 Aws::String m_target;
788
789 Aws::Vector<TargetLocation> m_targetLocations;
790
791 ProgressCounters m_progressCounters;
792
793 AlarmConfiguration m_alarmConfiguration;
794
795 Aws::Vector<AlarmStateInformation> m_triggeredAlarms;
796
797 Aws::String m_targetLocationsURL;
798
800
801 Aws::Utils::DateTime m_scheduledTime{};
802
803 Aws::Vector<Runbook> m_runbooks;
804
805 Aws::String m_opsItemId;
806
807 Aws::String m_associationId;
808
809 Aws::String m_changeRequestName;
810
812 bool m_automationExecutionIdHasBeenSet = false;
813 bool m_documentNameHasBeenSet = false;
814 bool m_documentVersionHasBeenSet = false;
815 bool m_executionStartTimeHasBeenSet = false;
816 bool m_executionEndTimeHasBeenSet = false;
817 bool m_automationExecutionStatusHasBeenSet = false;
818 bool m_stepExecutionsHasBeenSet = false;
819 bool m_stepExecutionsTruncatedHasBeenSet = false;
820 bool m_parametersHasBeenSet = false;
821 bool m_outputsHasBeenSet = false;
822 bool m_failureMessageHasBeenSet = false;
823 bool m_modeHasBeenSet = false;
824 bool m_parentAutomationExecutionIdHasBeenSet = false;
825 bool m_executedByHasBeenSet = false;
826 bool m_currentStepNameHasBeenSet = false;
827 bool m_currentActionHasBeenSet = false;
828 bool m_targetParameterNameHasBeenSet = false;
829 bool m_targetsHasBeenSet = false;
830 bool m_targetMapsHasBeenSet = false;
831 bool m_resolvedTargetsHasBeenSet = false;
832 bool m_maxConcurrencyHasBeenSet = false;
833 bool m_maxErrorsHasBeenSet = false;
834 bool m_targetHasBeenSet = false;
835 bool m_targetLocationsHasBeenSet = false;
836 bool m_progressCountersHasBeenSet = false;
837 bool m_alarmConfigurationHasBeenSet = false;
838 bool m_triggeredAlarmsHasBeenSet = false;
839 bool m_targetLocationsURLHasBeenSet = false;
840 bool m_automationSubtypeHasBeenSet = false;
841 bool m_scheduledTimeHasBeenSet = false;
842 bool m_runbooksHasBeenSet = false;
843 bool m_opsItemIdHasBeenSet = false;
844 bool m_associationIdHasBeenSet = false;
845 bool m_changeRequestNameHasBeenSet = false;
846 bool m_variablesHasBeenSet = false;
847};
848
849} // namespace Model
850} // namespace SSM
851} // namespace Aws
const Aws::Vector< StepExecution > & GetStepExecutions() const
AutomationExecution & WithProgressCounters(ProgressCountersT &&value)
AutomationExecution & WithTargets(TargetsT &&value)
AutomationExecution & WithCurrentAction(CurrentActionT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
AutomationExecution & WithAlarmConfiguration(AlarmConfigurationT &&value)
const Aws::String & GetAssociationId() const
const Aws::Utils::DateTime & GetExecutionStartTime() const
void SetTargetParameterName(TargetParameterNameT &&value)
const Aws::String & GetParentAutomationExecutionId() const
const AlarmConfiguration & GetAlarmConfiguration() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetVariables() const
void SetScheduledTime(ScheduledTimeT &&value)
AutomationExecution & WithTargetMaps(TargetMapsT &&value)
AutomationExecution & WithMaxErrors(MaxErrorsT &&value)
void SetExecutionStartTime(ExecutionStartTimeT &&value)
AutomationExecution & AddRunbooks(RunbooksT &&value)
const Aws::String & GetTargetParameterName() const
AutomationExecution & WithMode(ExecutionMode value)
const Aws::Utils::DateTime & GetExecutionEndTime() const
AutomationExecution & WithRunbooks(RunbooksT &&value)
const ResolvedTargets & GetResolvedTargets() const
AutomationExecution & AddTargetMaps(TargetMapsT &&value)
void SetMaxConcurrency(MaxConcurrencyT &&value)
void SetTargetLocationsURL(TargetLocationsURLT &&value)
AutomationExecution & WithParameters(ParametersT &&value)
AutomationExecution & WithDocumentName(DocumentNameT &&value)
AutomationExecution & WithResolvedTargets(ResolvedTargetsT &&value)
const Aws::String & GetCurrentAction() const
AutomationExecution & AddTriggeredAlarms(TriggeredAlarmsT &&value)
AutomationExecution & WithTarget(TargetT &&value)
AutomationExecution & AddOutputs(OutputsKeyT &&key, OutputsValueT &&value)
void SetAutomationExecutionId(AutomationExecutionIdT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCurrentStepName(CurrentStepNameT &&value)
const Aws::String & GetOpsItemId() const
AutomationExecution & WithStepExecutions(StepExecutionsT &&value)
AWS_SSM_API AutomationExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomationExecution & WithMaxConcurrency(MaxConcurrencyT &&value)
const Aws::String & GetMaxConcurrency() const
const Aws::String & GetChangeRequestName() const
AutomationExecution & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AutomationExecution & WithVariables(VariablesT &&value)
const Aws::Utils::DateTime & GetScheduledTime() const
void SetDocumentVersion(DocumentVersionT &&value)
AutomationExecution & WithOutputs(OutputsT &&value)
AutomationExecution & WithFailureMessage(FailureMessageT &&value)
AutomationExecution & WithTargetParameterName(TargetParameterNameT &&value)
const Aws::Vector< Target > & GetTargets() const
void SetFailureMessage(FailureMessageT &&value)
void SetAssociationId(AssociationIdT &&value)
AutomationExecution & WithExecutionEndTime(ExecutionEndTimeT &&value)
AutomationExecution & WithCurrentStepName(CurrentStepNameT &&value)
const Aws::String & GetExecutedBy() const
AutomationExecution & WithOpsItemId(OpsItemIdT &&value)
void SetDocumentName(DocumentNameT &&value)
AutomationExecution & WithStepExecutionsTruncated(bool value)
AutomationExecution & WithAssociationId(AssociationIdT &&value)
AutomationExecution & WithParentAutomationExecutionId(ParentAutomationExecutionIdT &&value)
AutomationSubtype GetAutomationSubtype() const
const Aws::String & GetCurrentStepName() const
AutomationExecution & WithExecutionStartTime(ExecutionStartTimeT &&value)
AutomationExecution & WithDocumentVersion(DocumentVersionT &&value)
AutomationExecution & WithChangeRequestName(ChangeRequestNameT &&value)
const Aws::String & GetTarget() const
void SetExecutionEndTime(ExecutionEndTimeT &&value)
void SetTargetLocations(TargetLocationsT &&value)
const ProgressCounters & GetProgressCounters() const
void SetAutomationExecutionStatus(AutomationExecutionStatus value)
void SetAutomationSubtype(AutomationSubtype value)
void SetCurrentAction(CurrentActionT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetOutputs() const
AutomationExecution & WithAutomationExecutionId(AutomationExecutionIdT &&value)
AutomationExecution & AddTargets(TargetsT &&value)
const Aws::Vector< Runbook > & GetRunbooks() const
const Aws::String & GetMaxErrors() const
const Aws::String & GetTargetLocationsURL() const
AutomationExecution & WithAutomationExecutionStatus(AutomationExecutionStatus value)
void SetAlarmConfiguration(AlarmConfigurationT &&value)
const Aws::Vector< TargetLocation > & GetTargetLocations() const
AutomationExecution & AddVariables(VariablesKeyT &&key, VariablesValueT &&value)
AutomationExecution & WithAutomationSubtype(AutomationSubtype value)
AutomationExecutionStatus GetAutomationExecutionStatus() const
const Aws::String & GetAutomationExecutionId() const
AWS_SSM_API AutomationExecution(Aws::Utils::Json::JsonView jsonValue)
AutomationExecution & AddStepExecutions(StepExecutionsT &&value)
AutomationExecution & WithTargetLocations(TargetLocationsT &&value)
const Aws::Vector< AlarmStateInformation > & GetTriggeredAlarms() const
AutomationExecution & WithExecutedBy(ExecutedByT &&value)
const Aws::String & GetDocumentVersion() const
AutomationExecution & WithTriggeredAlarms(TriggeredAlarmsT &&value)
void SetStepExecutions(StepExecutionsT &&value)
void SetChangeRequestName(ChangeRequestNameT &&value)
const Aws::String & GetDocumentName() const
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
void SetProgressCounters(ProgressCountersT &&value)
AutomationExecution & WithTargetLocationsURL(TargetLocationsURLT &&value)
void SetTriggeredAlarms(TriggeredAlarmsT &&value)
void SetResolvedTargets(ResolvedTargetsT &&value)
const Aws::String & GetFailureMessage() const
AWS_SSM_API AutomationExecution()=default
void SetParentAutomationExecutionId(ParentAutomationExecutionIdT &&value)
AutomationExecution & WithScheduledTime(ScheduledTimeT &&value)
AutomationExecution & AddTargetLocations(TargetLocationsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue