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>
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>
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>
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>
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>
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>
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>>
137 template<
typename StepExecutionsT = StepExecution>
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>>>
164 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::Vector<Aws::String>>
166 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
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>>>
180 template<
typename OutputsKeyT = Aws::String,
typename OutputsValueT = Aws::Vector<Aws::String>>
182 m_outputsHasBeenSet =
true; m_outputs.emplace(std::forward<OutputsKeyT>(key), std::forward<OutputsValueT>(value));
return *
this;
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>
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>
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>
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>
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>
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>
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>>
279 template<
typename TargetsT = Target>
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>>>>
294 template<
typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
304 template<
typename ResolvedTargetsT = ResolvedTargets>
305 void SetResolvedTargets(ResolvedTargetsT&& value) { m_resolvedTargetsHasBeenSet =
true; m_resolvedTargets = std::forward<ResolvedTargetsT>(value); }
306 template<
typename ResolvedTargetsT = ResolvedTargets>
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>
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>
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>
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>>
358 template<
typename TargetLocationsT = TargetLocation>
370 template<
typename ProgressCountersT = ProgressCounters>
371 void SetProgressCounters(ProgressCountersT&& value) { m_progressCountersHasBeenSet =
true; m_progressCounters = std::forward<ProgressCountersT>(value); }
372 template<
typename ProgressCountersT = ProgressCounters>
382 template<
typename AlarmConfigurationT = AlarmConfiguration>
383 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet =
true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
384 template<
typename AlarmConfigurationT = AlarmConfiguration>
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>>
398 template<
typename TriggeredAlarmsT = AlarmStateInformation>
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>
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>
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>>
452 template<
typename RunbooksT = Runbook>
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>
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>
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>
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>>>
503 template<
typename VariablesKeyT = Aws::String,
typename VariablesValueT = Aws::Vector<Aws::String>>
505 m_variablesHasBeenSet =
true; m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value));
return *
this;
511 bool m_automationExecutionIdHasBeenSet =
false;
514 bool m_documentNameHasBeenSet =
false;
517 bool m_documentVersionHasBeenSet =
false;
520 bool m_executionStartTimeHasBeenSet =
false;
523 bool m_executionEndTimeHasBeenSet =
false;
526 bool m_automationExecutionStatusHasBeenSet =
false;
529 bool m_stepExecutionsHasBeenSet =
false;
531 bool m_stepExecutionsTruncated{
false};
532 bool m_stepExecutionsTruncatedHasBeenSet =
false;
535 bool m_parametersHasBeenSet =
false;
538 bool m_outputsHasBeenSet =
false;
541 bool m_failureMessageHasBeenSet =
false;
544 bool m_modeHasBeenSet =
false;
547 bool m_parentAutomationExecutionIdHasBeenSet =
false;
550 bool m_executedByHasBeenSet =
false;
553 bool m_currentStepNameHasBeenSet =
false;
556 bool m_currentActionHasBeenSet =
false;
559 bool m_targetParameterNameHasBeenSet =
false;
562 bool m_targetsHasBeenSet =
false;
565 bool m_targetMapsHasBeenSet =
false;
567 ResolvedTargets m_resolvedTargets;
568 bool m_resolvedTargetsHasBeenSet =
false;
571 bool m_maxConcurrencyHasBeenSet =
false;
574 bool m_maxErrorsHasBeenSet =
false;
577 bool m_targetHasBeenSet =
false;
580 bool m_targetLocationsHasBeenSet =
false;
582 ProgressCounters m_progressCounters;
583 bool m_progressCountersHasBeenSet =
false;
585 AlarmConfiguration m_alarmConfiguration;
586 bool m_alarmConfigurationHasBeenSet =
false;
589 bool m_triggeredAlarmsHasBeenSet =
false;
592 bool m_targetLocationsURLHasBeenSet =
false;
595 bool m_automationSubtypeHasBeenSet =
false;
598 bool m_scheduledTimeHasBeenSet =
false;
601 bool m_runbooksHasBeenSet =
false;
604 bool m_opsItemIdHasBeenSet =
false;
607 bool m_associationIdHasBeenSet =
false;
610 bool m_changeRequestNameHasBeenSet =
false;
613 bool m_variablesHasBeenSet =
false;
const Aws::Vector< StepExecution > & GetStepExecutions() const
bool TargetLocationsHasBeenSet() const
AutomationExecution & WithProgressCounters(ProgressCountersT &&value)
bool ModeHasBeenSet() const
AutomationExecution & WithTargets(TargetsT &&value)
AutomationExecution & WithCurrentAction(CurrentActionT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
bool TargetParameterNameHasBeenSet() const
bool ChangeRequestNameHasBeenSet() 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
bool TargetHasBeenSet() const
void SetOutputs(OutputsT &&value)
void SetScheduledTime(ScheduledTimeT &&value)
AutomationExecution & WithTargetMaps(TargetMapsT &&value)
bool DocumentVersionHasBeenSet() const
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
void SetVariables(VariablesT &&value)
bool TriggeredAlarmsHasBeenSet() const
AutomationExecution & WithRunbooks(RunbooksT &&value)
const ResolvedTargets & GetResolvedTargets() const
bool DocumentNameHasBeenSet() const
bool ResolvedTargetsHasBeenSet() const
AutomationExecution & AddTargetMaps(TargetMapsT &&value)
void SetMaxConcurrency(MaxConcurrencyT &&value)
void SetTargetLocationsURL(TargetLocationsURLT &&value)
AutomationExecution & WithParameters(ParametersT &&value)
bool MaxConcurrencyHasBeenSet() const
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)
bool OpsItemIdHasBeenSet() const
bool CurrentActionHasBeenSet() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
bool AlarmConfigurationHasBeenSet() const
void SetMaxErrors(MaxErrorsT &&value)
void SetCurrentStepName(CurrentStepNameT &&value)
const Aws::String & GetOpsItemId() const
AutomationExecution & WithStepExecutions(StepExecutionsT &&value)
bool MaxErrorsHasBeenSet() const
bool StepExecutionsHasBeenSet() const
AWS_SSM_API AutomationExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ScheduledTimeHasBeenSet() const
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)
bool ParametersHasBeenSet() const
AutomationExecution & WithFailureMessage(FailureMessageT &&value)
AutomationExecution & WithTargetParameterName(TargetParameterNameT &&value)
const Aws::Vector< Target > & GetTargets() const
void SetFailureMessage(FailureMessageT &&value)
bool RunbooksHasBeenSet() const
void SetAssociationId(AssociationIdT &&value)
AutomationExecution & WithExecutionEndTime(ExecutionEndTimeT &&value)
AutomationExecution & WithCurrentStepName(CurrentStepNameT &&value)
bool ExecutionEndTimeHasBeenSet() const
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
void SetRunbooks(RunbooksT &&value)
bool ExecutionStartTimeHasBeenSet() const
const Aws::String & GetCurrentStepName() const
AutomationExecution & WithExecutionStartTime(ExecutionStartTimeT &&value)
AutomationExecution & WithDocumentVersion(DocumentVersionT &&value)
bool CurrentStepNameHasBeenSet() const
void SetTargets(TargetsT &&value)
AutomationExecution & WithChangeRequestName(ChangeRequestNameT &&value)
const Aws::String & GetTarget() const
void SetExecutionEndTime(ExecutionEndTimeT &&value)
void SetTarget(TargetT &&value)
void SetTargetLocations(TargetLocationsT &&value)
const ProgressCounters & GetProgressCounters() const
bool TargetLocationsURLHasBeenSet() const
void SetAutomationExecutionStatus(AutomationExecutionStatus value)
void SetAutomationSubtype(AutomationSubtype value)
bool AutomationSubtypeHasBeenSet() const
void SetStepExecutionsTruncated(bool value)
void SetCurrentAction(CurrentActionT &&value)
bool ProgressCountersHasBeenSet() const
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
void SetParameters(ParametersT &&value)
bool AutomationExecutionStatusHasBeenSet() const
const Aws::String & GetMaxErrors() const
void SetOpsItemId(OpsItemIdT &&value)
bool VariablesHasBeenSet() const
const Aws::String & GetTargetLocationsURL() const
void SetExecutedBy(ExecutedByT &&value)
void SetMode(ExecutionMode value)
AutomationExecution & WithAutomationExecutionStatus(AutomationExecutionStatus value)
void SetTargetMaps(TargetMapsT &&value)
void SetAlarmConfiguration(AlarmConfigurationT &&value)
const Aws::Vector< TargetLocation > & GetTargetLocations() const
AutomationExecution & AddVariables(VariablesKeyT &&key, VariablesValueT &&value)
AutomationExecution & WithAutomationSubtype(AutomationSubtype value)
AutomationExecutionStatus GetAutomationExecutionStatus() const
bool AssociationIdHasBeenSet() const
bool StepExecutionsTruncatedHasBeenSet() const
const Aws::String & GetAutomationExecutionId() const
bool GetStepExecutionsTruncated() const
AWS_SSM_API AutomationExecution(Aws::Utils::Json::JsonView jsonValue)
AutomationExecution & AddStepExecutions(StepExecutionsT &&value)
bool TargetMapsHasBeenSet() const
AutomationExecution & WithTargetLocations(TargetLocationsT &&value)
bool ParentAutomationExecutionIdHasBeenSet() const
const Aws::Vector< AlarmStateInformation > & GetTriggeredAlarms() const
AutomationExecution & WithExecutedBy(ExecutedByT &&value)
const Aws::String & GetDocumentVersion() const
bool OutputsHasBeenSet() const
bool AutomationExecutionIdHasBeenSet() const
AutomationExecution & WithTriggeredAlarms(TriggeredAlarmsT &&value)
bool FailureMessageHasBeenSet() const
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)
bool ExecutedByHasBeenSet() const
AutomationExecution & WithScheduledTime(ScheduledTimeT &&value)
bool TargetsHasBeenSet() const
ExecutionMode GetMode() const
AutomationExecution & AddTargetLocations(TargetLocationsT &&value)
AutomationExecutionStatus
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