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/AWSMap.h>
12#include <aws/ssm/model/FailureDetails.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ssm/model/TargetLocation.h>
15#include <aws/ssm/model/ParentStepDetails.h>
16#include <aws/ssm/model/Target.h>
17#include <aws/ssm/model/AlarmStateInformation.h>
56 template<
typename StepNameT = Aws::String>
57 void SetStepName(StepNameT&& value) { m_stepNameHasBeenSet =
true; m_stepName = std::forward<StepNameT>(value); }
58 template<
typename StepNameT = Aws::String>
69 template<
typename ActionT = Aws::String>
70 void SetAction(ActionT&& value) { m_actionHasBeenSet =
true; m_action = std::forward<ActionT>(value); }
71 template<
typename ActionT = Aws::String>
81 inline void SetTimeoutSeconds(
long long value) { m_timeoutSecondsHasBeenSet =
true; m_timeoutSeconds = value; }
92 template<
typename OnFailureT = Aws::String>
93 void SetOnFailure(OnFailureT&& value) { m_onFailureHasBeenSet =
true; m_onFailure = std::forward<OnFailureT>(value); }
94 template<
typename OnFailureT = Aws::String>
105 inline void SetMaxAttempts(
int value) { m_maxAttemptsHasBeenSet =
true; m_maxAttempts = value; }
116 template<
typename ExecutionStartTimeT = Aws::Utils::DateTime>
117 void SetExecutionStartTime(ExecutionStartTimeT&& value) { m_executionStartTimeHasBeenSet =
true; m_executionStartTime = std::forward<ExecutionStartTimeT>(value); }
118 template<
typename ExecutionStartTimeT = Aws::Utils::DateTime>
129 template<
typename ExecutionEndTimeT = Aws::Utils::DateTime>
130 void SetExecutionEndTime(ExecutionEndTimeT&& value) { m_executionEndTimeHasBeenSet =
true; m_executionEndTime = std::forward<ExecutionEndTimeT>(value); }
131 template<
typename ExecutionEndTimeT = Aws::Utils::DateTime>
151 template<
typename ResponseCodeT = Aws::String>
152 void SetResponseCode(ResponseCodeT&& value) { m_responseCodeHasBeenSet =
true; m_responseCode = std::forward<ResponseCodeT>(value); }
153 template<
typename ResponseCodeT = Aws::String>
163 template<
typename InputsT = Aws::Map<Aws::String, Aws::String>>
164 void SetInputs(InputsT&& value) { m_inputsHasBeenSet =
true; m_inputs = std::forward<InputsT>(value); }
165 template<
typename InputsT = Aws::Map<Aws::String, Aws::String>>
167 template<
typename InputsKeyT = Aws::String,
typename InputsValueT = Aws::String>
169 m_inputsHasBeenSet =
true; m_inputs.emplace(std::forward<InputsKeyT>(key), std::forward<InputsValueT>(value));
return *
this;
179 template<
typename OutputsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
180 void SetOutputs(OutputsT&& value) { m_outputsHasBeenSet =
true; m_outputs = std::forward<OutputsT>(value); }
181 template<
typename OutputsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
183 template<
typename OutputsKeyT = Aws::String,
typename OutputsValueT = Aws::Vector<Aws::String>>
185 m_outputsHasBeenSet =
true; m_outputs.emplace(std::forward<OutputsKeyT>(key), std::forward<OutputsValueT>(value));
return *
this;
195 template<
typename ResponseT = Aws::String>
196 void SetResponse(ResponseT&& value) { m_responseHasBeenSet =
true; m_response = std::forward<ResponseT>(value); }
197 template<
typename ResponseT = Aws::String>
207 template<
typename FailureMessageT = Aws::String>
208 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet =
true; m_failureMessage = std::forward<FailureMessageT>(value); }
209 template<
typename FailureMessageT = Aws::String>
219 template<
typename FailureDetailsT = FailureDetails>
220 void SetFailureDetails(FailureDetailsT&& value) { m_failureDetailsHasBeenSet =
true; m_failureDetails = std::forward<FailureDetailsT>(value); }
221 template<
typename FailureDetailsT = FailureDetails>
231 template<
typename StepExecutionIdT = Aws::String>
232 void SetStepExecutionId(StepExecutionIdT&& value) { m_stepExecutionIdHasBeenSet =
true; m_stepExecutionId = std::forward<StepExecutionIdT>(value); }
233 template<
typename StepExecutionIdT = Aws::String>
243 template<
typename Overr
iddenParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
244 void SetOverriddenParameters(OverriddenParametersT&& value) { m_overriddenParametersHasBeenSet =
true; m_overriddenParameters = std::forward<OverriddenParametersT>(value); }
245 template<
typename Overr
iddenParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
247 template<
typename Overr
iddenParametersKeyT = Aws::String,
typename Overr
iddenParametersValueT = Aws::Vector<Aws::String>>
249 m_overriddenParametersHasBeenSet =
true; m_overriddenParameters.emplace(std::forward<OverriddenParametersKeyT>(key), std::forward<OverriddenParametersValueT>(value));
return *
this;
260 inline void SetIsEnd(
bool value) { m_isEndHasBeenSet =
true; m_isEnd = value; }
270 template<
typename NextStepT = Aws::String>
271 void SetNextStep(NextStepT&& value) { m_nextStepHasBeenSet =
true; m_nextStep = std::forward<NextStepT>(value); }
272 template<
typename NextStepT = Aws::String>
283 inline void SetIsCritical(
bool value) { m_isCriticalHasBeenSet =
true; m_isCritical = value; }
297 template<
typename Val
idNextStepsT = Aws::Vector<Aws::String>>
298 void SetValidNextSteps(ValidNextStepsT&& value) { m_validNextStepsHasBeenSet =
true; m_validNextSteps = std::forward<ValidNextStepsT>(value); }
299 template<
typename Val
idNextStepsT = Aws::Vector<Aws::String>>
301 template<
typename Val
idNextStepsT = Aws::String>
302 StepExecution&
AddValidNextSteps(ValidNextStepsT&& value) { m_validNextStepsHasBeenSet =
true; m_validNextSteps.emplace_back(std::forward<ValidNextStepsT>(value));
return *
this; }
311 template<
typename TargetsT = Aws::Vector<Target>>
312 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets = std::forward<TargetsT>(value); }
313 template<
typename TargetsT = Aws::Vector<Target>>
315 template<
typename TargetsT = Target>
316 StepExecution&
AddTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets.emplace_back(std::forward<TargetsT>(value));
return *
this; }
326 template<
typename TargetLocationT = TargetLocation>
327 void SetTargetLocation(TargetLocationT&& value) { m_targetLocationHasBeenSet =
true; m_targetLocation = std::forward<TargetLocationT>(value); }
328 template<
typename TargetLocationT = TargetLocation>
338 template<
typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
339 void SetTriggeredAlarms(TriggeredAlarmsT&& value) { m_triggeredAlarmsHasBeenSet =
true; m_triggeredAlarms = std::forward<TriggeredAlarmsT>(value); }
340 template<
typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
342 template<
typename TriggeredAlarmsT = AlarmStateInformation>
343 StepExecution&
AddTriggeredAlarms(TriggeredAlarmsT&& value) { m_triggeredAlarmsHasBeenSet =
true; m_triggeredAlarms.emplace_back(std::forward<TriggeredAlarmsT>(value));
return *
this; }
352 template<
typename ParentStepDetailsT = ParentStepDetails>
353 void SetParentStepDetails(ParentStepDetailsT&& value) { m_parentStepDetailsHasBeenSet =
true; m_parentStepDetails = std::forward<ParentStepDetailsT>(value); }
354 template<
typename ParentStepDetailsT = ParentStepDetails>
360 bool m_stepNameHasBeenSet =
false;
363 bool m_actionHasBeenSet =
false;
365 long long m_timeoutSeconds{0};
366 bool m_timeoutSecondsHasBeenSet =
false;
369 bool m_onFailureHasBeenSet =
false;
371 int m_maxAttempts{0};
372 bool m_maxAttemptsHasBeenSet =
false;
375 bool m_executionStartTimeHasBeenSet =
false;
378 bool m_executionEndTimeHasBeenSet =
false;
381 bool m_stepStatusHasBeenSet =
false;
384 bool m_responseCodeHasBeenSet =
false;
387 bool m_inputsHasBeenSet =
false;
390 bool m_outputsHasBeenSet =
false;
393 bool m_responseHasBeenSet =
false;
396 bool m_failureMessageHasBeenSet =
false;
398 FailureDetails m_failureDetails;
399 bool m_failureDetailsHasBeenSet =
false;
402 bool m_stepExecutionIdHasBeenSet =
false;
405 bool m_overriddenParametersHasBeenSet =
false;
408 bool m_isEndHasBeenSet =
false;
411 bool m_nextStepHasBeenSet =
false;
413 bool m_isCritical{
false};
414 bool m_isCriticalHasBeenSet =
false;
417 bool m_validNextStepsHasBeenSet =
false;
420 bool m_targetsHasBeenSet =
false;
422 TargetLocation m_targetLocation;
423 bool m_targetLocationHasBeenSet =
false;
426 bool m_triggeredAlarmsHasBeenSet =
false;
428 ParentStepDetails m_parentStepDetails;
429 bool m_parentStepDetailsHasBeenSet =
false;
bool ParentStepDetailsHasBeenSet() const
void SetTargetLocation(TargetLocationT &&value)
const TargetLocation & GetTargetLocation() const
bool InputsHasBeenSet() const
StepExecution & WithTargets(TargetsT &&value)
long long GetTimeoutSeconds() const
StepExecution & WithValidNextSteps(ValidNextStepsT &&value)
const FailureDetails & GetFailureDetails() const
bool FailureDetailsHasBeenSet() const
void SetAction(ActionT &&value)
const Aws::String & GetOnFailure() const
const ParentStepDetails & GetParentStepDetails() const
bool ExecutionEndTimeHasBeenSet() const
bool OutputsHasBeenSet() const
const Aws::String & GetAction() const
StepExecution & WithIsEnd(bool value)
StepExecution & AddOverriddenParameters(OverriddenParametersKeyT &&key, OverriddenParametersValueT &&value)
StepExecution & WithParentStepDetails(ParentStepDetailsT &&value)
void SetTriggeredAlarms(TriggeredAlarmsT &&value)
bool NextStepHasBeenSet() const
StepExecution & AddValidNextSteps(ValidNextStepsT &&value)
bool GetIsCritical() const
bool StepStatusHasBeenSet() const
void SetOverriddenParameters(OverriddenParametersT &&value)
AutomationExecutionStatus GetStepStatus() const
bool OnFailureHasBeenSet() const
void SetValidNextSteps(ValidNextStepsT &&value)
bool TimeoutSecondsHasBeenSet() const
StepExecution & WithResponse(ResponseT &&value)
StepExecution & WithAction(ActionT &&value)
bool StepExecutionIdHasBeenSet() const
void SetIsEnd(bool value)
const Aws::Vector< Aws::String > & GetValidNextSteps() const
StepExecution & WithStepName(StepNameT &&value)
StepExecution & WithStepExecutionId(StepExecutionIdT &&value)
StepExecution & WithExecutionEndTime(ExecutionEndTimeT &&value)
StepExecution & AddInputs(InputsKeyT &&key, InputsValueT &&value)
AWS_SSM_API StepExecution()=default
void SetFailureDetails(FailureDetailsT &&value)
void SetTimeoutSeconds(long long value)
const Aws::Vector< Target > & GetTargets() const
void SetParentStepDetails(ParentStepDetailsT &&value)
void SetResponse(ResponseT &&value)
bool StepNameHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetInputs() const
StepExecution & WithOnFailure(OnFailureT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetOverriddenParameters() const
const Aws::String & GetResponseCode() const
int GetMaxAttempts() const
bool MaxAttemptsHasBeenSet() const
StepExecution & WithMaxAttempts(int value)
const Aws::String & GetStepName() const
bool IsCriticalHasBeenSet() const
const Aws::String & GetNextStep() const
const Aws::String & GetResponse() const
bool IsEndHasBeenSet() const
void SetStepStatus(AutomationExecutionStatus value)
void SetResponseCode(ResponseCodeT &&value)
bool ResponseCodeHasBeenSet() const
StepExecution & WithOutputs(OutputsT &&value)
StepExecution & WithNextStep(NextStepT &&value)
void SetExecutionStartTime(ExecutionStartTimeT &&value)
StepExecution & AddTargets(TargetsT &&value)
StepExecution & WithFailureDetails(FailureDetailsT &&value)
StepExecution & AddOutputs(OutputsKeyT &&key, OutputsValueT &&value)
StepExecution & AddTriggeredAlarms(TriggeredAlarmsT &&value)
void SetExecutionEndTime(ExecutionEndTimeT &&value)
void SetFailureMessage(FailureMessageT &&value)
const Aws::Vector< AlarmStateInformation > & GetTriggeredAlarms() const
StepExecution & WithTriggeredAlarms(TriggeredAlarmsT &&value)
StepExecution & WithFailureMessage(FailureMessageT &&value)
bool ResponseHasBeenSet() const
bool FailureMessageHasBeenSet() const
bool ExecutionStartTimeHasBeenSet() const
bool ValidNextStepsHasBeenSet() const
const Aws::Utils::DateTime & GetExecutionStartTime() const
void SetOutputs(OutputsT &&value)
bool TargetsHasBeenSet() const
StepExecution & WithInputs(InputsT &&value)
void SetMaxAttempts(int value)
StepExecution & WithOverriddenParameters(OverriddenParametersT &&value)
void SetOnFailure(OnFailureT &&value)
bool TriggeredAlarmsHasBeenSet() const
StepExecution & WithResponseCode(ResponseCodeT &&value)
void SetNextStep(NextStepT &&value)
AWS_SSM_API StepExecution(Aws::Utils::Json::JsonView jsonValue)
void SetInputs(InputsT &&value)
bool TargetLocationHasBeenSet() const
StepExecution & WithStepStatus(AutomationExecutionStatus value)
void SetStepName(StepNameT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetOutputs() const
const Aws::String & GetFailureMessage() const
void SetIsCritical(bool value)
StepExecution & WithTimeoutSeconds(long long value)
const Aws::String & GetStepExecutionId() const
AWS_SSM_API StepExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStepExecutionId(StepExecutionIdT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetExecutionEndTime() const
StepExecution & WithExecutionStartTime(ExecutionStartTimeT &&value)
void SetTargets(TargetsT &&value)
StepExecution & WithTargetLocation(TargetLocationT &&value)
bool ActionHasBeenSet() const
bool OverriddenParametersHasBeenSet() const
StepExecution & WithIsCritical(bool 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