AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AutomationExecution.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ssm/model/AutomationExecutionStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/ssm/model/ExecutionMode.h>
14#include <aws/ssm/model/ResolvedTargets.h>
15#include <aws/ssm/model/ProgressCounters.h>
16#include <aws/ssm/model/AlarmConfiguration.h>
17#include <aws/ssm/model/AutomationSubtype.h>
18#include <aws/ssm/model/StepExecution.h>
19#include <aws/ssm/model/Target.h>
20#include <aws/ssm/model/TargetLocation.h>
21#include <aws/ssm/model/AlarmStateInformation.h>
22#include <aws/ssm/model/Runbook.h>
23#include <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32 class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace SSM
36{
37namespace Model
38{
39
47 {
48 public:
49 AWS_SSM_API AutomationExecution() = default;
53
54
56
59 inline const Aws::String& GetAutomationExecutionId() const { return m_automationExecutionId; }
60 inline bool AutomationExecutionIdHasBeenSet() const { return m_automationExecutionIdHasBeenSet; }
61 template<typename AutomationExecutionIdT = Aws::String>
62 void SetAutomationExecutionId(AutomationExecutionIdT&& value) { m_automationExecutionIdHasBeenSet = true; m_automationExecutionId = std::forward<AutomationExecutionIdT>(value); }
63 template<typename AutomationExecutionIdT = Aws::String>
64 AutomationExecution& WithAutomationExecutionId(AutomationExecutionIdT&& value) { SetAutomationExecutionId(std::forward<AutomationExecutionIdT>(value)); return *this;}
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) { m_documentNameHasBeenSet = true; m_documentName = std::forward<DocumentNameT>(value); }
75 template<typename DocumentNameT = Aws::String>
76 AutomationExecution& WithDocumentName(DocumentNameT&& value) { SetDocumentName(std::forward<DocumentNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
84 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
85 template<typename DocumentVersionT = Aws::String>
86 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
87 template<typename DocumentVersionT = Aws::String>
88 AutomationExecution& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetExecutionStartTime() const { return m_executionStartTime; }
96 inline bool ExecutionStartTimeHasBeenSet() const { return m_executionStartTimeHasBeenSet; }
97 template<typename ExecutionStartTimeT = Aws::Utils::DateTime>
98 void SetExecutionStartTime(ExecutionStartTimeT&& value) { m_executionStartTimeHasBeenSet = true; m_executionStartTime = std::forward<ExecutionStartTimeT>(value); }
99 template<typename ExecutionStartTimeT = Aws::Utils::DateTime>
100 AutomationExecution& WithExecutionStartTime(ExecutionStartTimeT&& value) { SetExecutionStartTime(std::forward<ExecutionStartTimeT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetExecutionEndTime() const { return m_executionEndTime; }
108 inline bool ExecutionEndTimeHasBeenSet() const { return m_executionEndTimeHasBeenSet; }
109 template<typename ExecutionEndTimeT = Aws::Utils::DateTime>
110 void SetExecutionEndTime(ExecutionEndTimeT&& value) { m_executionEndTimeHasBeenSet = true; m_executionEndTime = std::forward<ExecutionEndTimeT>(value); }
111 template<typename ExecutionEndTimeT = Aws::Utils::DateTime>
112 AutomationExecution& WithExecutionEndTime(ExecutionEndTimeT&& value) { SetExecutionEndTime(std::forward<ExecutionEndTimeT>(value)); return *this;}
114
116
119 inline AutomationExecutionStatus GetAutomationExecutionStatus() const { return m_automationExecutionStatus; }
120 inline bool AutomationExecutionStatusHasBeenSet() const { return m_automationExecutionStatusHasBeenSet; }
121 inline void SetAutomationExecutionStatus(AutomationExecutionStatus value) { m_automationExecutionStatusHasBeenSet = true; m_automationExecutionStatus = value; }
124
126
131 inline const Aws::Vector<StepExecution>& GetStepExecutions() const { return m_stepExecutions; }
132 inline bool StepExecutionsHasBeenSet() const { return m_stepExecutionsHasBeenSet; }
133 template<typename StepExecutionsT = Aws::Vector<StepExecution>>
134 void SetStepExecutions(StepExecutionsT&& value) { m_stepExecutionsHasBeenSet = true; m_stepExecutions = std::forward<StepExecutionsT>(value); }
135 template<typename StepExecutionsT = Aws::Vector<StepExecution>>
136 AutomationExecution& WithStepExecutions(StepExecutionsT&& value) { SetStepExecutions(std::forward<StepExecutionsT>(value)); return *this;}
137 template<typename StepExecutionsT = StepExecution>
138 AutomationExecution& AddStepExecutions(StepExecutionsT&& value) { m_stepExecutionsHasBeenSet = true; m_stepExecutions.emplace_back(std::forward<StepExecutionsT>(value)); return *this; }
140
142
147 inline bool GetStepExecutionsTruncated() const { return m_stepExecutionsTruncated; }
148 inline bool StepExecutionsTruncatedHasBeenSet() const { return m_stepExecutionsTruncatedHasBeenSet; }
149 inline void SetStepExecutionsTruncated(bool value) { m_stepExecutionsTruncatedHasBeenSet = true; m_stepExecutionsTruncated = value; }
152
154
158 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
159 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
160 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
161 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
162 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
163 AutomationExecution& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
164 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
165 AutomationExecution& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
166 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
167 }
169
171
174 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetOutputs() const { return m_outputs; }
175 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
176 template<typename OutputsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
177 void SetOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs = std::forward<OutputsT>(value); }
178 template<typename OutputsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
179 AutomationExecution& WithOutputs(OutputsT&& value) { SetOutputs(std::forward<OutputsT>(value)); return *this;}
180 template<typename OutputsKeyT = Aws::String, typename OutputsValueT = Aws::Vector<Aws::String>>
181 AutomationExecution& AddOutputs(OutputsKeyT&& key, OutputsValueT&& value) {
182 m_outputsHasBeenSet = true; m_outputs.emplace(std::forward<OutputsKeyT>(key), std::forward<OutputsValueT>(value)); return *this;
183 }
185
187
191 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
192 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
193 template<typename FailureMessageT = Aws::String>
194 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::forward<FailureMessageT>(value); }
195 template<typename FailureMessageT = Aws::String>
196 AutomationExecution& WithFailureMessage(FailureMessageT&& value) { SetFailureMessage(std::forward<FailureMessageT>(value)); return *this;}
198
200
203 inline ExecutionMode GetMode() const { return m_mode; }
204 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
205 inline void SetMode(ExecutionMode value) { m_modeHasBeenSet = true; m_mode = value; }
206 inline AutomationExecution& WithMode(ExecutionMode value) { SetMode(value); return *this;}
208
210
213 inline const Aws::String& GetParentAutomationExecutionId() const { return m_parentAutomationExecutionId; }
214 inline bool ParentAutomationExecutionIdHasBeenSet() const { return m_parentAutomationExecutionIdHasBeenSet; }
215 template<typename ParentAutomationExecutionIdT = Aws::String>
216 void SetParentAutomationExecutionId(ParentAutomationExecutionIdT&& value) { m_parentAutomationExecutionIdHasBeenSet = true; m_parentAutomationExecutionId = std::forward<ParentAutomationExecutionIdT>(value); }
217 template<typename ParentAutomationExecutionIdT = Aws::String>
218 AutomationExecution& WithParentAutomationExecutionId(ParentAutomationExecutionIdT&& value) { SetParentAutomationExecutionId(std::forward<ParentAutomationExecutionIdT>(value)); return *this;}
220
222
225 inline const Aws::String& GetExecutedBy() const { return m_executedBy; }
226 inline bool ExecutedByHasBeenSet() const { return m_executedByHasBeenSet; }
227 template<typename ExecutedByT = Aws::String>
228 void SetExecutedBy(ExecutedByT&& value) { m_executedByHasBeenSet = true; m_executedBy = std::forward<ExecutedByT>(value); }
229 template<typename ExecutedByT = Aws::String>
230 AutomationExecution& WithExecutedBy(ExecutedByT&& value) { SetExecutedBy(std::forward<ExecutedByT>(value)); return *this;}
232
234
237 inline const Aws::String& GetCurrentStepName() const { return m_currentStepName; }
238 inline bool CurrentStepNameHasBeenSet() const { return m_currentStepNameHasBeenSet; }
239 template<typename CurrentStepNameT = Aws::String>
240 void SetCurrentStepName(CurrentStepNameT&& value) { m_currentStepNameHasBeenSet = true; m_currentStepName = std::forward<CurrentStepNameT>(value); }
241 template<typename CurrentStepNameT = Aws::String>
242 AutomationExecution& WithCurrentStepName(CurrentStepNameT&& value) { SetCurrentStepName(std::forward<CurrentStepNameT>(value)); return *this;}
244
246
249 inline const Aws::String& GetCurrentAction() const { return m_currentAction; }
250 inline bool CurrentActionHasBeenSet() const { return m_currentActionHasBeenSet; }
251 template<typename CurrentActionT = Aws::String>
252 void SetCurrentAction(CurrentActionT&& value) { m_currentActionHasBeenSet = true; m_currentAction = std::forward<CurrentActionT>(value); }
253 template<typename CurrentActionT = Aws::String>
254 AutomationExecution& WithCurrentAction(CurrentActionT&& value) { SetCurrentAction(std::forward<CurrentActionT>(value)); return *this;}
256
258
261 inline const Aws::String& GetTargetParameterName() const { return m_targetParameterName; }
262 inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
263 template<typename TargetParameterNameT = Aws::String>
264 void SetTargetParameterName(TargetParameterNameT&& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = std::forward<TargetParameterNameT>(value); }
265 template<typename TargetParameterNameT = Aws::String>
266 AutomationExecution& WithTargetParameterName(TargetParameterNameT&& value) { SetTargetParameterName(std::forward<TargetParameterNameT>(value)); return *this;}
268
270
273 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
274 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
275 template<typename TargetsT = Aws::Vector<Target>>
276 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
277 template<typename TargetsT = Aws::Vector<Target>>
278 AutomationExecution& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
279 template<typename TargetsT = Target>
280 AutomationExecution& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
282
284
288 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
289 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
290 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
291 void SetTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps = std::forward<TargetMapsT>(value); }
292 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
293 AutomationExecution& WithTargetMaps(TargetMapsT&& value) { SetTargetMaps(std::forward<TargetMapsT>(value)); return *this;}
294 template<typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
295 AutomationExecution& AddTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.emplace_back(std::forward<TargetMapsT>(value)); return *this; }
297
299
302 inline const ResolvedTargets& GetResolvedTargets() const { return m_resolvedTargets; }
303 inline bool ResolvedTargetsHasBeenSet() const { return m_resolvedTargetsHasBeenSet; }
304 template<typename ResolvedTargetsT = ResolvedTargets>
305 void SetResolvedTargets(ResolvedTargetsT&& value) { m_resolvedTargetsHasBeenSet = true; m_resolvedTargets = std::forward<ResolvedTargetsT>(value); }
306 template<typename ResolvedTargetsT = ResolvedTargets>
307 AutomationExecution& WithResolvedTargets(ResolvedTargetsT&& value) { SetResolvedTargets(std::forward<ResolvedTargetsT>(value)); return *this;}
309
311
315 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
316 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
317 template<typename MaxConcurrencyT = Aws::String>
318 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
319 template<typename MaxConcurrencyT = Aws::String>
320 AutomationExecution& WithMaxConcurrency(MaxConcurrencyT&& value) { SetMaxConcurrency(std::forward<MaxConcurrencyT>(value)); return *this;}
322
324
327 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
328 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
329 template<typename MaxErrorsT = Aws::String>
330 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::forward<MaxErrorsT>(value); }
331 template<typename MaxErrorsT = Aws::String>
332 AutomationExecution& WithMaxErrors(MaxErrorsT&& value) { SetMaxErrors(std::forward<MaxErrorsT>(value)); return *this;}
334
336
339 inline const Aws::String& GetTarget() const { return m_target; }
340 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
341 template<typename TargetT = Aws::String>
342 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
343 template<typename TargetT = Aws::String>
344 AutomationExecution& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
346
348
352 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
353 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
354 template<typename TargetLocationsT = Aws::Vector<TargetLocation>>
355 void SetTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::forward<TargetLocationsT>(value); }
356 template<typename TargetLocationsT = Aws::Vector<TargetLocation>>
357 AutomationExecution& WithTargetLocations(TargetLocationsT&& value) { SetTargetLocations(std::forward<TargetLocationsT>(value)); return *this;}
358 template<typename TargetLocationsT = TargetLocation>
359 AutomationExecution& AddTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value)); return *this; }
361
363
368 inline const ProgressCounters& GetProgressCounters() const { return m_progressCounters; }
369 inline bool ProgressCountersHasBeenSet() const { return m_progressCountersHasBeenSet; }
370 template<typename ProgressCountersT = ProgressCounters>
371 void SetProgressCounters(ProgressCountersT&& value) { m_progressCountersHasBeenSet = true; m_progressCounters = std::forward<ProgressCountersT>(value); }
372 template<typename ProgressCountersT = ProgressCounters>
373 AutomationExecution& WithProgressCounters(ProgressCountersT&& value) { SetProgressCounters(std::forward<ProgressCountersT>(value)); return *this;}
375
377
380 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
381 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
382 template<typename AlarmConfigurationT = AlarmConfiguration>
383 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
384 template<typename AlarmConfigurationT = AlarmConfiguration>
385 AutomationExecution& WithAlarmConfiguration(AlarmConfigurationT&& value) { SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value)); return *this;}
387
389
392 inline const Aws::Vector<AlarmStateInformation>& GetTriggeredAlarms() const { return m_triggeredAlarms; }
393 inline bool TriggeredAlarmsHasBeenSet() const { return m_triggeredAlarmsHasBeenSet; }
394 template<typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
395 void SetTriggeredAlarms(TriggeredAlarmsT&& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms = std::forward<TriggeredAlarmsT>(value); }
396 template<typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
397 AutomationExecution& WithTriggeredAlarms(TriggeredAlarmsT&& value) { SetTriggeredAlarms(std::forward<TriggeredAlarmsT>(value)); return *this;}
398 template<typename TriggeredAlarmsT = AlarmStateInformation>
399 AutomationExecution& AddTriggeredAlarms(TriggeredAlarmsT&& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms.emplace_back(std::forward<TriggeredAlarmsT>(value)); return *this; }
401
403
408 inline const Aws::String& GetTargetLocationsURL() const { return m_targetLocationsURL; }
409 inline bool TargetLocationsURLHasBeenSet() const { return m_targetLocationsURLHasBeenSet; }
410 template<typename TargetLocationsURLT = Aws::String>
411 void SetTargetLocationsURL(TargetLocationsURLT&& value) { m_targetLocationsURLHasBeenSet = true; m_targetLocationsURL = std::forward<TargetLocationsURLT>(value); }
412 template<typename TargetLocationsURLT = Aws::String>
413 AutomationExecution& WithTargetLocationsURL(TargetLocationsURLT&& value) { SetTargetLocationsURL(std::forward<TargetLocationsURLT>(value)); return *this;}
415
417
421 inline AutomationSubtype GetAutomationSubtype() const { return m_automationSubtype; }
422 inline bool AutomationSubtypeHasBeenSet() const { return m_automationSubtypeHasBeenSet; }
423 inline void SetAutomationSubtype(AutomationSubtype value) { m_automationSubtypeHasBeenSet = true; m_automationSubtype = value; }
426
428
431 inline const Aws::Utils::DateTime& GetScheduledTime() const { return m_scheduledTime; }
432 inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; }
433 template<typename ScheduledTimeT = Aws::Utils::DateTime>
434 void SetScheduledTime(ScheduledTimeT&& value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = std::forward<ScheduledTimeT>(value); }
435 template<typename ScheduledTimeT = Aws::Utils::DateTime>
436 AutomationExecution& WithScheduledTime(ScheduledTimeT&& value) { SetScheduledTime(std::forward<ScheduledTimeT>(value)); return *this;}
438
440
446 inline const Aws::Vector<Runbook>& GetRunbooks() const { return m_runbooks; }
447 inline bool RunbooksHasBeenSet() const { return m_runbooksHasBeenSet; }
448 template<typename RunbooksT = Aws::Vector<Runbook>>
449 void SetRunbooks(RunbooksT&& value) { m_runbooksHasBeenSet = true; m_runbooks = std::forward<RunbooksT>(value); }
450 template<typename RunbooksT = Aws::Vector<Runbook>>
451 AutomationExecution& WithRunbooks(RunbooksT&& value) { SetRunbooks(std::forward<RunbooksT>(value)); return *this;}
452 template<typename RunbooksT = Runbook>
453 AutomationExecution& AddRunbooks(RunbooksT&& value) { m_runbooksHasBeenSet = true; m_runbooks.emplace_back(std::forward<RunbooksT>(value)); return *this; }
455
457
461 inline const Aws::String& GetOpsItemId() const { return m_opsItemId; }
462 inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
463 template<typename OpsItemIdT = Aws::String>
464 void SetOpsItemId(OpsItemIdT&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::forward<OpsItemIdT>(value); }
465 template<typename OpsItemIdT = Aws::String>
466 AutomationExecution& WithOpsItemId(OpsItemIdT&& value) { SetOpsItemId(std::forward<OpsItemIdT>(value)); return *this;}
468
470
473 inline const Aws::String& GetAssociationId() const { return m_associationId; }
474 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
475 template<typename AssociationIdT = Aws::String>
476 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
477 template<typename AssociationIdT = Aws::String>
478 AutomationExecution& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
480
482
485 inline const Aws::String& GetChangeRequestName() const { return m_changeRequestName; }
486 inline bool ChangeRequestNameHasBeenSet() const { return m_changeRequestNameHasBeenSet; }
487 template<typename ChangeRequestNameT = Aws::String>
488 void SetChangeRequestName(ChangeRequestNameT&& value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName = std::forward<ChangeRequestNameT>(value); }
489 template<typename ChangeRequestNameT = Aws::String>
490 AutomationExecution& WithChangeRequestName(ChangeRequestNameT&& value) { SetChangeRequestName(std::forward<ChangeRequestNameT>(value)); return *this;}
492
494
497 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetVariables() const { return m_variables; }
498 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
499 template<typename VariablesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
500 void SetVariables(VariablesT&& value) { m_variablesHasBeenSet = true; m_variables = std::forward<VariablesT>(value); }
501 template<typename VariablesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
502 AutomationExecution& WithVariables(VariablesT&& value) { SetVariables(std::forward<VariablesT>(value)); return *this;}
503 template<typename VariablesKeyT = Aws::String, typename VariablesValueT = Aws::Vector<Aws::String>>
504 AutomationExecution& AddVariables(VariablesKeyT&& key, VariablesValueT&& value) {
505 m_variablesHasBeenSet = true; m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value)); return *this;
506 }
508 private:
509
510 Aws::String m_automationExecutionId;
511 bool m_automationExecutionIdHasBeenSet = false;
512
513 Aws::String m_documentName;
514 bool m_documentNameHasBeenSet = false;
515
516 Aws::String m_documentVersion;
517 bool m_documentVersionHasBeenSet = false;
518
519 Aws::Utils::DateTime m_executionStartTime{};
520 bool m_executionStartTimeHasBeenSet = false;
521
522 Aws::Utils::DateTime m_executionEndTime{};
523 bool m_executionEndTimeHasBeenSet = false;
524
526 bool m_automationExecutionStatusHasBeenSet = false;
527
528 Aws::Vector<StepExecution> m_stepExecutions;
529 bool m_stepExecutionsHasBeenSet = false;
530
531 bool m_stepExecutionsTruncated{false};
532 bool m_stepExecutionsTruncatedHasBeenSet = false;
533
535 bool m_parametersHasBeenSet = false;
536
538 bool m_outputsHasBeenSet = false;
539
540 Aws::String m_failureMessage;
541 bool m_failureMessageHasBeenSet = false;
542
544 bool m_modeHasBeenSet = false;
545
546 Aws::String m_parentAutomationExecutionId;
547 bool m_parentAutomationExecutionIdHasBeenSet = false;
548
549 Aws::String m_executedBy;
550 bool m_executedByHasBeenSet = false;
551
552 Aws::String m_currentStepName;
553 bool m_currentStepNameHasBeenSet = false;
554
555 Aws::String m_currentAction;
556 bool m_currentActionHasBeenSet = false;
557
558 Aws::String m_targetParameterName;
559 bool m_targetParameterNameHasBeenSet = false;
560
561 Aws::Vector<Target> m_targets;
562 bool m_targetsHasBeenSet = false;
563
565 bool m_targetMapsHasBeenSet = false;
566
567 ResolvedTargets m_resolvedTargets;
568 bool m_resolvedTargetsHasBeenSet = false;
569
570 Aws::String m_maxConcurrency;
571 bool m_maxConcurrencyHasBeenSet = false;
572
573 Aws::String m_maxErrors;
574 bool m_maxErrorsHasBeenSet = false;
575
576 Aws::String m_target;
577 bool m_targetHasBeenSet = false;
578
579 Aws::Vector<TargetLocation> m_targetLocations;
580 bool m_targetLocationsHasBeenSet = false;
581
582 ProgressCounters m_progressCounters;
583 bool m_progressCountersHasBeenSet = false;
584
585 AlarmConfiguration m_alarmConfiguration;
586 bool m_alarmConfigurationHasBeenSet = false;
587
588 Aws::Vector<AlarmStateInformation> m_triggeredAlarms;
589 bool m_triggeredAlarmsHasBeenSet = false;
590
591 Aws::String m_targetLocationsURL;
592 bool m_targetLocationsURLHasBeenSet = false;
593
595 bool m_automationSubtypeHasBeenSet = false;
596
597 Aws::Utils::DateTime m_scheduledTime{};
598 bool m_scheduledTimeHasBeenSet = false;
599
600 Aws::Vector<Runbook> m_runbooks;
601 bool m_runbooksHasBeenSet = false;
602
603 Aws::String m_opsItemId;
604 bool m_opsItemIdHasBeenSet = false;
605
606 Aws::String m_associationId;
607 bool m_associationIdHasBeenSet = false;
608
609 Aws::String m_changeRequestName;
610 bool m_changeRequestNameHasBeenSet = false;
611
613 bool m_variablesHasBeenSet = false;
614 };
615
616} // namespace Model
617} // namespace SSM
618} // 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