AWS SDK for C++

AWS SDK for C++ Version 1.11.854

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
272 inline const Aws::String& GetWarningMessage() const { return m_warningMessage; }
273 inline bool WarningMessageHasBeenSet() const { return m_warningMessageHasBeenSet; }
274 template <typename WarningMessageT = Aws::String>
275 void SetWarningMessage(WarningMessageT&& value) {
276 m_warningMessageHasBeenSet = true;
277 m_warningMessage = std::forward<WarningMessageT>(value);
278 }
279 template <typename WarningMessageT = Aws::String>
280 AutomationExecution& WithWarningMessage(WarningMessageT&& value) {
281 SetWarningMessage(std::forward<WarningMessageT>(value));
282 return *this;
283 }
285
287
290 inline ExecutionMode GetMode() const { return m_mode; }
291 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
292 inline void SetMode(ExecutionMode value) {
293 m_modeHasBeenSet = true;
294 m_mode = value;
295 }
297 SetMode(value);
298 return *this;
299 }
301
303
306 inline const Aws::String& GetParentAutomationExecutionId() const { return m_parentAutomationExecutionId; }
307 inline bool ParentAutomationExecutionIdHasBeenSet() const { return m_parentAutomationExecutionIdHasBeenSet; }
308 template <typename ParentAutomationExecutionIdT = Aws::String>
309 void SetParentAutomationExecutionId(ParentAutomationExecutionIdT&& value) {
310 m_parentAutomationExecutionIdHasBeenSet = true;
311 m_parentAutomationExecutionId = std::forward<ParentAutomationExecutionIdT>(value);
312 }
313 template <typename ParentAutomationExecutionIdT = Aws::String>
314 AutomationExecution& WithParentAutomationExecutionId(ParentAutomationExecutionIdT&& value) {
315 SetParentAutomationExecutionId(std::forward<ParentAutomationExecutionIdT>(value));
316 return *this;
317 }
319
321
324 inline const Aws::String& GetExecutedBy() const { return m_executedBy; }
325 inline bool ExecutedByHasBeenSet() const { return m_executedByHasBeenSet; }
326 template <typename ExecutedByT = Aws::String>
327 void SetExecutedBy(ExecutedByT&& value) {
328 m_executedByHasBeenSet = true;
329 m_executedBy = std::forward<ExecutedByT>(value);
330 }
331 template <typename ExecutedByT = Aws::String>
332 AutomationExecution& WithExecutedBy(ExecutedByT&& value) {
333 SetExecutedBy(std::forward<ExecutedByT>(value));
334 return *this;
335 }
337
339
342 inline const Aws::String& GetCurrentStepName() const { return m_currentStepName; }
343 inline bool CurrentStepNameHasBeenSet() const { return m_currentStepNameHasBeenSet; }
344 template <typename CurrentStepNameT = Aws::String>
345 void SetCurrentStepName(CurrentStepNameT&& value) {
346 m_currentStepNameHasBeenSet = true;
347 m_currentStepName = std::forward<CurrentStepNameT>(value);
348 }
349 template <typename CurrentStepNameT = Aws::String>
350 AutomationExecution& WithCurrentStepName(CurrentStepNameT&& value) {
351 SetCurrentStepName(std::forward<CurrentStepNameT>(value));
352 return *this;
353 }
355
357
360 inline const Aws::String& GetCurrentAction() const { return m_currentAction; }
361 inline bool CurrentActionHasBeenSet() const { return m_currentActionHasBeenSet; }
362 template <typename CurrentActionT = Aws::String>
363 void SetCurrentAction(CurrentActionT&& value) {
364 m_currentActionHasBeenSet = true;
365 m_currentAction = std::forward<CurrentActionT>(value);
366 }
367 template <typename CurrentActionT = Aws::String>
368 AutomationExecution& WithCurrentAction(CurrentActionT&& value) {
369 SetCurrentAction(std::forward<CurrentActionT>(value));
370 return *this;
371 }
373
375
378 inline const Aws::String& GetTargetParameterName() const { return m_targetParameterName; }
379 inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
380 template <typename TargetParameterNameT = Aws::String>
381 void SetTargetParameterName(TargetParameterNameT&& value) {
382 m_targetParameterNameHasBeenSet = true;
383 m_targetParameterName = std::forward<TargetParameterNameT>(value);
384 }
385 template <typename TargetParameterNameT = Aws::String>
386 AutomationExecution& WithTargetParameterName(TargetParameterNameT&& value) {
387 SetTargetParameterName(std::forward<TargetParameterNameT>(value));
388 return *this;
389 }
391
393
396 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
397 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
398 template <typename TargetsT = Aws::Vector<Target>>
399 void SetTargets(TargetsT&& value) {
400 m_targetsHasBeenSet = true;
401 m_targets = std::forward<TargetsT>(value);
402 }
403 template <typename TargetsT = Aws::Vector<Target>>
404 AutomationExecution& WithTargets(TargetsT&& value) {
405 SetTargets(std::forward<TargetsT>(value));
406 return *this;
407 }
408 template <typename TargetsT = Target>
409 AutomationExecution& AddTargets(TargetsT&& value) {
410 m_targetsHasBeenSet = true;
411 m_targets.emplace_back(std::forward<TargetsT>(value));
412 return *this;
413 }
415
417
421 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
422 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
423 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
424 void SetTargetMaps(TargetMapsT&& value) {
425 m_targetMapsHasBeenSet = true;
426 m_targetMaps = std::forward<TargetMapsT>(value);
427 }
428 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
429 AutomationExecution& WithTargetMaps(TargetMapsT&& value) {
430 SetTargetMaps(std::forward<TargetMapsT>(value));
431 return *this;
432 }
433 template <typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
434 AutomationExecution& AddTargetMaps(TargetMapsT&& value) {
435 m_targetMapsHasBeenSet = true;
436 m_targetMaps.emplace_back(std::forward<TargetMapsT>(value));
437 return *this;
438 }
440
442
445 inline const ResolvedTargets& GetResolvedTargets() const { return m_resolvedTargets; }
446 inline bool ResolvedTargetsHasBeenSet() const { return m_resolvedTargetsHasBeenSet; }
447 template <typename ResolvedTargetsT = ResolvedTargets>
448 void SetResolvedTargets(ResolvedTargetsT&& value) {
449 m_resolvedTargetsHasBeenSet = true;
450 m_resolvedTargets = std::forward<ResolvedTargetsT>(value);
451 }
452 template <typename ResolvedTargetsT = ResolvedTargets>
453 AutomationExecution& WithResolvedTargets(ResolvedTargetsT&& value) {
454 SetResolvedTargets(std::forward<ResolvedTargetsT>(value));
455 return *this;
456 }
458
460
464 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
465 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
466 template <typename MaxConcurrencyT = Aws::String>
467 void SetMaxConcurrency(MaxConcurrencyT&& value) {
468 m_maxConcurrencyHasBeenSet = true;
469 m_maxConcurrency = std::forward<MaxConcurrencyT>(value);
470 }
471 template <typename MaxConcurrencyT = Aws::String>
472 AutomationExecution& WithMaxConcurrency(MaxConcurrencyT&& value) {
473 SetMaxConcurrency(std::forward<MaxConcurrencyT>(value));
474 return *this;
475 }
477
479
482 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
483 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
484 template <typename MaxErrorsT = Aws::String>
485 void SetMaxErrors(MaxErrorsT&& value) {
486 m_maxErrorsHasBeenSet = true;
487 m_maxErrors = std::forward<MaxErrorsT>(value);
488 }
489 template <typename MaxErrorsT = Aws::String>
490 AutomationExecution& WithMaxErrors(MaxErrorsT&& value) {
491 SetMaxErrors(std::forward<MaxErrorsT>(value));
492 return *this;
493 }
495
497
500 inline const Aws::String& GetTarget() const { return m_target; }
501 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
502 template <typename TargetT = Aws::String>
503 void SetTarget(TargetT&& value) {
504 m_targetHasBeenSet = true;
505 m_target = std::forward<TargetT>(value);
506 }
507 template <typename TargetT = Aws::String>
508 AutomationExecution& WithTarget(TargetT&& value) {
509 SetTarget(std::forward<TargetT>(value));
510 return *this;
511 }
513
515
519 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
520 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
521 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
522 void SetTargetLocations(TargetLocationsT&& value) {
523 m_targetLocationsHasBeenSet = true;
524 m_targetLocations = std::forward<TargetLocationsT>(value);
525 }
526 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
527 AutomationExecution& WithTargetLocations(TargetLocationsT&& value) {
528 SetTargetLocations(std::forward<TargetLocationsT>(value));
529 return *this;
530 }
531 template <typename TargetLocationsT = TargetLocation>
532 AutomationExecution& AddTargetLocations(TargetLocationsT&& value) {
533 m_targetLocationsHasBeenSet = true;
534 m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value));
535 return *this;
536 }
538
540
545 inline const ProgressCounters& GetProgressCounters() const { return m_progressCounters; }
546 inline bool ProgressCountersHasBeenSet() const { return m_progressCountersHasBeenSet; }
547 template <typename ProgressCountersT = ProgressCounters>
548 void SetProgressCounters(ProgressCountersT&& value) {
549 m_progressCountersHasBeenSet = true;
550 m_progressCounters = std::forward<ProgressCountersT>(value);
551 }
552 template <typename ProgressCountersT = ProgressCounters>
553 AutomationExecution& WithProgressCounters(ProgressCountersT&& value) {
554 SetProgressCounters(std::forward<ProgressCountersT>(value));
555 return *this;
556 }
558
560
563 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
564 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
565 template <typename AlarmConfigurationT = AlarmConfiguration>
566 void SetAlarmConfiguration(AlarmConfigurationT&& value) {
567 m_alarmConfigurationHasBeenSet = true;
568 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
569 }
570 template <typename AlarmConfigurationT = AlarmConfiguration>
571 AutomationExecution& WithAlarmConfiguration(AlarmConfigurationT&& value) {
572 SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value));
573 return *this;
574 }
576
578
581 inline const Aws::Vector<AlarmStateInformation>& GetTriggeredAlarms() const { return m_triggeredAlarms; }
582 inline bool TriggeredAlarmsHasBeenSet() const { return m_triggeredAlarmsHasBeenSet; }
583 template <typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
584 void SetTriggeredAlarms(TriggeredAlarmsT&& value) {
585 m_triggeredAlarmsHasBeenSet = true;
586 m_triggeredAlarms = std::forward<TriggeredAlarmsT>(value);
587 }
588 template <typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
589 AutomationExecution& WithTriggeredAlarms(TriggeredAlarmsT&& value) {
590 SetTriggeredAlarms(std::forward<TriggeredAlarmsT>(value));
591 return *this;
592 }
593 template <typename TriggeredAlarmsT = AlarmStateInformation>
594 AutomationExecution& AddTriggeredAlarms(TriggeredAlarmsT&& value) {
595 m_triggeredAlarmsHasBeenSet = true;
596 m_triggeredAlarms.emplace_back(std::forward<TriggeredAlarmsT>(value));
597 return *this;
598 }
600
602
607 inline const Aws::String& GetTargetLocationsURL() const { return m_targetLocationsURL; }
608 inline bool TargetLocationsURLHasBeenSet() const { return m_targetLocationsURLHasBeenSet; }
609 template <typename TargetLocationsURLT = Aws::String>
610 void SetTargetLocationsURL(TargetLocationsURLT&& value) {
611 m_targetLocationsURLHasBeenSet = true;
612 m_targetLocationsURL = std::forward<TargetLocationsURLT>(value);
613 }
614 template <typename TargetLocationsURLT = Aws::String>
615 AutomationExecution& WithTargetLocationsURL(TargetLocationsURLT&& value) {
616 SetTargetLocationsURL(std::forward<TargetLocationsURLT>(value));
617 return *this;
618 }
620
622
626 inline AutomationSubtype GetAutomationSubtype() const { return m_automationSubtype; }
627 inline bool AutomationSubtypeHasBeenSet() const { return m_automationSubtypeHasBeenSet; }
629 m_automationSubtypeHasBeenSet = true;
630 m_automationSubtype = value;
631 }
634 return *this;
635 }
637
639
642 inline const Aws::Utils::DateTime& GetScheduledTime() const { return m_scheduledTime; }
643 inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; }
644 template <typename ScheduledTimeT = Aws::Utils::DateTime>
645 void SetScheduledTime(ScheduledTimeT&& value) {
646 m_scheduledTimeHasBeenSet = true;
647 m_scheduledTime = std::forward<ScheduledTimeT>(value);
648 }
649 template <typename ScheduledTimeT = Aws::Utils::DateTime>
650 AutomationExecution& WithScheduledTime(ScheduledTimeT&& value) {
651 SetScheduledTime(std::forward<ScheduledTimeT>(value));
652 return *this;
653 }
655
657
663 inline const Aws::Vector<Runbook>& GetRunbooks() const { return m_runbooks; }
664 inline bool RunbooksHasBeenSet() const { return m_runbooksHasBeenSet; }
665 template <typename RunbooksT = Aws::Vector<Runbook>>
666 void SetRunbooks(RunbooksT&& value) {
667 m_runbooksHasBeenSet = true;
668 m_runbooks = std::forward<RunbooksT>(value);
669 }
670 template <typename RunbooksT = Aws::Vector<Runbook>>
671 AutomationExecution& WithRunbooks(RunbooksT&& value) {
672 SetRunbooks(std::forward<RunbooksT>(value));
673 return *this;
674 }
675 template <typename RunbooksT = Runbook>
676 AutomationExecution& AddRunbooks(RunbooksT&& value) {
677 m_runbooksHasBeenSet = true;
678 m_runbooks.emplace_back(std::forward<RunbooksT>(value));
679 return *this;
680 }
682
684
688 inline const Aws::String& GetOpsItemId() const { return m_opsItemId; }
689 inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
690 template <typename OpsItemIdT = Aws::String>
691 void SetOpsItemId(OpsItemIdT&& value) {
692 m_opsItemIdHasBeenSet = true;
693 m_opsItemId = std::forward<OpsItemIdT>(value);
694 }
695 template <typename OpsItemIdT = Aws::String>
696 AutomationExecution& WithOpsItemId(OpsItemIdT&& value) {
697 SetOpsItemId(std::forward<OpsItemIdT>(value));
698 return *this;
699 }
701
703
706 inline const Aws::String& GetAssociationId() const { return m_associationId; }
707 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
708 template <typename AssociationIdT = Aws::String>
709 void SetAssociationId(AssociationIdT&& value) {
710 m_associationIdHasBeenSet = true;
711 m_associationId = std::forward<AssociationIdT>(value);
712 }
713 template <typename AssociationIdT = Aws::String>
714 AutomationExecution& WithAssociationId(AssociationIdT&& value) {
715 SetAssociationId(std::forward<AssociationIdT>(value));
716 return *this;
717 }
719
721
724 inline const Aws::String& GetChangeRequestName() const { return m_changeRequestName; }
725 inline bool ChangeRequestNameHasBeenSet() const { return m_changeRequestNameHasBeenSet; }
726 template <typename ChangeRequestNameT = Aws::String>
727 void SetChangeRequestName(ChangeRequestNameT&& value) {
728 m_changeRequestNameHasBeenSet = true;
729 m_changeRequestName = std::forward<ChangeRequestNameT>(value);
730 }
731 template <typename ChangeRequestNameT = Aws::String>
732 AutomationExecution& WithChangeRequestName(ChangeRequestNameT&& value) {
733 SetChangeRequestName(std::forward<ChangeRequestNameT>(value));
734 return *this;
735 }
737
739
742 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetVariables() const { return m_variables; }
743 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
744 template <typename VariablesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
745 void SetVariables(VariablesT&& value) {
746 m_variablesHasBeenSet = true;
747 m_variables = std::forward<VariablesT>(value);
748 }
749 template <typename VariablesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
750 AutomationExecution& WithVariables(VariablesT&& value) {
751 SetVariables(std::forward<VariablesT>(value));
752 return *this;
753 }
754 template <typename VariablesKeyT = Aws::String, typename VariablesValueT = Aws::Vector<Aws::String>>
755 AutomationExecution& AddVariables(VariablesKeyT&& key, VariablesValueT&& value) {
756 m_variablesHasBeenSet = true;
757 m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value));
758 return *this;
759 }
761 private:
762 Aws::String m_automationExecutionId;
763
764 Aws::String m_documentName;
765
766 Aws::String m_documentVersion;
767
768 Aws::Utils::DateTime m_executionStartTime{};
769
770 Aws::Utils::DateTime m_executionEndTime{};
771
773
774 Aws::Vector<StepExecution> m_stepExecutions;
775
776 bool m_stepExecutionsTruncated{false};
777
779
781
782 Aws::String m_failureMessage;
783
784 Aws::String m_warningMessage;
785
787
788 Aws::String m_parentAutomationExecutionId;
789
790 Aws::String m_executedBy;
791
792 Aws::String m_currentStepName;
793
794 Aws::String m_currentAction;
795
796 Aws::String m_targetParameterName;
797
798 Aws::Vector<Target> m_targets;
799
801
802 ResolvedTargets m_resolvedTargets;
803
804 Aws::String m_maxConcurrency;
805
806 Aws::String m_maxErrors;
807
808 Aws::String m_target;
809
810 Aws::Vector<TargetLocation> m_targetLocations;
811
812 ProgressCounters m_progressCounters;
813
814 AlarmConfiguration m_alarmConfiguration;
815
816 Aws::Vector<AlarmStateInformation> m_triggeredAlarms;
817
818 Aws::String m_targetLocationsURL;
819
821
822 Aws::Utils::DateTime m_scheduledTime{};
823
824 Aws::Vector<Runbook> m_runbooks;
825
826 Aws::String m_opsItemId;
827
828 Aws::String m_associationId;
829
830 Aws::String m_changeRequestName;
831
833 bool m_automationExecutionIdHasBeenSet = false;
834 bool m_documentNameHasBeenSet = false;
835 bool m_documentVersionHasBeenSet = false;
836 bool m_executionStartTimeHasBeenSet = false;
837 bool m_executionEndTimeHasBeenSet = false;
838 bool m_automationExecutionStatusHasBeenSet = false;
839 bool m_stepExecutionsHasBeenSet = false;
840 bool m_stepExecutionsTruncatedHasBeenSet = false;
841 bool m_parametersHasBeenSet = false;
842 bool m_outputsHasBeenSet = false;
843 bool m_failureMessageHasBeenSet = false;
844 bool m_warningMessageHasBeenSet = false;
845 bool m_modeHasBeenSet = false;
846 bool m_parentAutomationExecutionIdHasBeenSet = false;
847 bool m_executedByHasBeenSet = false;
848 bool m_currentStepNameHasBeenSet = false;
849 bool m_currentActionHasBeenSet = false;
850 bool m_targetParameterNameHasBeenSet = false;
851 bool m_targetsHasBeenSet = false;
852 bool m_targetMapsHasBeenSet = false;
853 bool m_resolvedTargetsHasBeenSet = false;
854 bool m_maxConcurrencyHasBeenSet = false;
855 bool m_maxErrorsHasBeenSet = false;
856 bool m_targetHasBeenSet = false;
857 bool m_targetLocationsHasBeenSet = false;
858 bool m_progressCountersHasBeenSet = false;
859 bool m_alarmConfigurationHasBeenSet = false;
860 bool m_triggeredAlarmsHasBeenSet = false;
861 bool m_targetLocationsURLHasBeenSet = false;
862 bool m_automationSubtypeHasBeenSet = false;
863 bool m_scheduledTimeHasBeenSet = false;
864 bool m_runbooksHasBeenSet = false;
865 bool m_opsItemIdHasBeenSet = false;
866 bool m_associationIdHasBeenSet = false;
867 bool m_changeRequestNameHasBeenSet = false;
868 bool m_variablesHasBeenSet = false;
869};
870
871} // namespace Model
872} // namespace SSM
873} // 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 & WithWarningMessage(WarningMessageT &&value)
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 & GetWarningMessage() 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)
void SetWarningMessage(WarningMessageT &&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