Interface StepExecution.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<StepExecution.Builder,
,StepExecution> SdkBuilder<StepExecution.Builder,
,StepExecution> SdkPojo
- Enclosing class:
StepExecution
-
Method Summary
Modifier and TypeMethodDescriptionThe action this step performs.executionEndTime
(Instant executionEndTime) If a step has finished execution, this contains the time the execution ended.executionStartTime
(Instant executionStartTime) If a step has begun execution, this contains the time the step started.default StepExecution.Builder
failureDetails
(Consumer<FailureDetails.Builder> failureDetails) Information about the Automation failure.failureDetails
(FailureDetails failureDetails) Information about the Automation failure.failureMessage
(String failureMessage) If a step failed, this message explains why the execution failed.Fully-resolved values passed into the step before execution.isCritical
(Boolean isCritical) The flag which can be used to help decide whether the failure of current step leads to the Automation failure.The flag which can be used to end automation no matter whether the step succeeds or fails.maxAttempts
(Integer maxAttempts) The maximum number of tries to run the action of the step.The next step after the step succeeds.The action to take if the step fails.outputs
(Map<String, ? extends Collection<String>> outputs) Returned values from the execution of the step.overriddenParameters
(Map<String, ? extends Collection<String>> overriddenParameters) A user-specified list of parameters to override when running a step.default StepExecution.Builder
parentStepDetails
(Consumer<ParentStepDetails.Builder> parentStepDetails) Information about the parent step.parentStepDetails
(ParentStepDetails parentStepDetails) Information about the parent step.A message associated with the response code for an execution.responseCode
(String responseCode) The response code returned by the execution of the step.stepExecutionId
(String stepExecutionId) The unique ID of a step execution.The name of this execution step.stepStatus
(String stepStatus) The execution status for this step.stepStatus
(AutomationExecutionStatus stepStatus) The execution status for this step.default StepExecution.Builder
targetLocation
(Consumer<TargetLocation.Builder> targetLocation) The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.targetLocation
(TargetLocation targetLocation) The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.targets
(Collection<Target> targets) The targets for the step execution.targets
(Consumer<Target.Builder>... targets) The targets for the step execution.The targets for the step execution.timeoutSeconds
(Long timeoutSeconds) The timeout seconds of the step.triggeredAlarms
(Collection<AlarmStateInformation> triggeredAlarms) The CloudWatch alarms that were invoked by the automation.triggeredAlarms
(Consumer<AlarmStateInformation.Builder>... triggeredAlarms) The CloudWatch alarms that were invoked by the automation.triggeredAlarms
(AlarmStateInformation... triggeredAlarms) The CloudWatch alarms that were invoked by the automation.validNextSteps
(String... validNextSteps) Strategies used when step fails, we support Continue and Abort.validNextSteps
(Collection<String> validNextSteps) Strategies used when step fails, we support Continue and Abort.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
stepName
The name of this execution step.
- Parameters:
stepName
- The name of this execution step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The action this step performs. The action determines the behavior of the step.
- Parameters:
action
- The action this step performs. The action determines the behavior of the step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutSeconds
The timeout seconds of the step.
- Parameters:
timeoutSeconds
- The timeout seconds of the step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onFailure
The action to take if the step fails. The default value is
Abort
.- Parameters:
onFailure
- The action to take if the step fails. The default value isAbort
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxAttempts
The maximum number of tries to run the action of the step. The default value is
1
.- Parameters:
maxAttempts
- The maximum number of tries to run the action of the step. The default value is1
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionStartTime
If a step has begun execution, this contains the time the step started. If the step is in Pending status, this field isn't populated.
- Parameters:
executionStartTime
- If a step has begun execution, this contains the time the step started. If the step is in Pending status, this field isn't populated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionEndTime
If a step has finished execution, this contains the time the execution ended. If the step hasn't yet concluded, this field isn't populated.
- Parameters:
executionEndTime
- If a step has finished execution, this contains the time the execution ended. If the step hasn't yet concluded, this field isn't populated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stepStatus
The execution status for this step.
- Parameters:
stepStatus
- The execution status for this step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stepStatus
The execution status for this step.
- Parameters:
stepStatus
- The execution status for this step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
responseCode
The response code returned by the execution of the step.
- Parameters:
responseCode
- The response code returned by the execution of the step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputs
Fully-resolved values passed into the step before execution.
- Parameters:
inputs
- Fully-resolved values passed into the step before execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputs
Returned values from the execution of the step.
- Parameters:
outputs
- Returned values from the execution of the step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
response
A message associated with the response code for an execution.
- Parameters:
response
- A message associated with the response code for an execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureMessage
If a step failed, this message explains why the execution failed.
- Parameters:
failureMessage
- If a step failed, this message explains why the execution failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureDetails
Information about the Automation failure.
- Parameters:
failureDetails
- Information about the Automation failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureDetails
Information about the Automation failure.
This is a convenience method that creates an instance of theFailureDetails.Builder
avoiding the need to create one manually viaFailureDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureDetails(FailureDetails)
.- Parameters:
failureDetails
- a consumer that will call methods onFailureDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stepExecutionId
The unique ID of a step execution.
- Parameters:
stepExecutionId
- The unique ID of a step execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overriddenParameters
StepExecution.Builder overriddenParameters(Map<String, ? extends Collection<String>> overriddenParameters) A user-specified list of parameters to override when running a step.
- Parameters:
overriddenParameters
- A user-specified list of parameters to override when running a step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnd
The flag which can be used to end automation no matter whether the step succeeds or fails.
- Parameters:
isEnd
- The flag which can be used to end automation no matter whether the step succeeds or fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextStep
The next step after the step succeeds.
- Parameters:
nextStep
- The next step after the step succeeds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isCritical
The flag which can be used to help decide whether the failure of current step leads to the Automation failure.
- Parameters:
isCritical
- The flag which can be used to help decide whether the failure of current step leads to the Automation failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
validNextSteps
Strategies used when step fails, we support Continue and Abort. Abort will fail the automation when the step fails. Continue will ignore the failure of current step and allow automation to run the next step. With conditional branching, we add step:stepName to support the automation to go to another specific step.
- Parameters:
validNextSteps
- Strategies used when step fails, we support Continue and Abort. Abort will fail the automation when the step fails. Continue will ignore the failure of current step and allow automation to run the next step. With conditional branching, we add step:stepName to support the automation to go to another specific step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
validNextSteps
Strategies used when step fails, we support Continue and Abort. Abort will fail the automation when the step fails. Continue will ignore the failure of current step and allow automation to run the next step. With conditional branching, we add step:stepName to support the automation to go to another specific step.
- Parameters:
validNextSteps
- Strategies used when step fails, we support Continue and Abort. Abort will fail the automation when the step fails. Continue will ignore the failure of current step and allow automation to run the next step. With conditional branching, we add step:stepName to support the automation to go to another specific step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets for the step execution.
- Parameters:
targets
- The targets for the step execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets for the step execution.
- Parameters:
targets
- The targets for the step execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets for the step execution.
This is a convenience method that creates an instance of theTarget.Builder
avoiding the need to create one manually viaTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargets(List<Target>)
.- Parameters:
targets
- a consumer that will call methods onTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetLocation
The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.
- Parameters:
targetLocation
- The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetLocation
The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.
This is a convenience method that creates an instance of theTargetLocation.Builder
avoiding the need to create one manually viaTargetLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetLocation(TargetLocation)
.- Parameters:
targetLocation
- a consumer that will call methods onTargetLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
triggeredAlarms
The CloudWatch alarms that were invoked by the automation.
- Parameters:
triggeredAlarms
- The CloudWatch alarms that were invoked by the automation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggeredAlarms
The CloudWatch alarms that were invoked by the automation.
- Parameters:
triggeredAlarms
- The CloudWatch alarms that were invoked by the automation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggeredAlarms
The CloudWatch alarms that were invoked by the automation.
This is a convenience method that creates an instance of theAlarmStateInformation.Builder
avoiding the need to create one manually viaAlarmStateInformation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totriggeredAlarms(List<AlarmStateInformation>)
.- Parameters:
triggeredAlarms
- a consumer that will call methods onAlarmStateInformation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parentStepDetails
Information about the parent step.
- Parameters:
parentStepDetails
- Information about the parent step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parentStepDetails
default StepExecution.Builder parentStepDetails(Consumer<ParentStepDetails.Builder> parentStepDetails) Information about the parent step.
This is a convenience method that creates an instance of theParentStepDetails.Builder
avoiding the need to create one manually viaParentStepDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toparentStepDetails(ParentStepDetails)
.- Parameters:
parentStepDetails
- a consumer that will call methods onParentStepDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-