Interface StepExecution.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<StepExecution.Builder,StepExecution>,SdkBuilder<StepExecution.Builder,StepExecution>,SdkPojo
- Enclosing class:
- StepExecution
@Mutable @NotThreadSafe public static interface StepExecution.Builder extends SdkPojo, CopyableBuilder<StepExecution.Builder,StepExecution>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StepExecution.Builderaction(String action)The action this step performs.StepExecution.BuilderexecutionEndTime(Instant executionEndTime)If a step has finished execution, this contains the time the execution ended.StepExecution.BuilderexecutionStartTime(Instant executionStartTime)If a step has begun execution, this contains the time the step started.default StepExecution.BuilderfailureDetails(Consumer<FailureDetails.Builder> failureDetails)Information about the Automation failure.StepExecution.BuilderfailureDetails(FailureDetails failureDetails)Information about the Automation failure.StepExecution.BuilderfailureMessage(String failureMessage)If a step failed, this message explains why the execution failed.StepExecution.Builderinputs(Map<String,String> inputs)Fully-resolved values passed into the step before execution.StepExecution.BuilderisCritical(Boolean isCritical)The flag which can be used to help decide whether the failure of current step leads to the Automation failure.StepExecution.BuilderisEnd(Boolean isEnd)The flag which can be used to end automation no matter whether the step succeeds or fails.StepExecution.BuildermaxAttempts(Integer maxAttempts)The maximum number of tries to run the action of the step.StepExecution.BuildernextStep(String nextStep)The next step after the step succeeds.StepExecution.BuilderonFailure(String onFailure)The action to take if the step fails.StepExecution.Builderoutputs(Map<String,? extends Collection<String>> outputs)Returned values from the execution of the step.StepExecution.BuilderoverriddenParameters(Map<String,? extends Collection<String>> overriddenParameters)A user-specified list of parameters to override when running a step.default StepExecution.BuilderparentStepDetails(Consumer<ParentStepDetails.Builder> parentStepDetails)Information about the parent step.StepExecution.BuilderparentStepDetails(ParentStepDetails parentStepDetails)Information about the parent step.StepExecution.Builderresponse(String response)A message associated with the response code for an execution.StepExecution.BuilderresponseCode(String responseCode)The response code returned by the execution of the step.StepExecution.BuilderstepExecutionId(String stepExecutionId)The unique ID of a step execution.StepExecution.BuilderstepName(String stepName)The name of this execution step.StepExecution.BuilderstepStatus(String stepStatus)The execution status for this step.StepExecution.BuilderstepStatus(AutomationExecutionStatus stepStatus)The execution status for this step.default StepExecution.BuildertargetLocation(Consumer<TargetLocation.Builder> targetLocation)The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.StepExecution.BuildertargetLocation(TargetLocation targetLocation)The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.StepExecution.Buildertargets(Collection<Target> targets)The targets for the step execution.StepExecution.Buildertargets(Consumer<Target.Builder>... targets)The targets for the step execution.StepExecution.Buildertargets(Target... targets)The targets for the step execution.StepExecution.BuildertimeoutSeconds(Long timeoutSeconds)The timeout seconds of the step.StepExecution.BuildertriggeredAlarms(Collection<AlarmStateInformation> triggeredAlarms)The CloudWatch alarms that were invoked by the automation.StepExecution.BuildertriggeredAlarms(Consumer<AlarmStateInformation.Builder>... triggeredAlarms)The CloudWatch alarms that were invoked by the automation.StepExecution.BuildertriggeredAlarms(AlarmStateInformation... triggeredAlarms)The CloudWatch alarms that were invoked by the automation.StepExecution.BuildervalidNextSteps(String... validNextSteps)Strategies used when step fails, we support Continue and Abort.StepExecution.BuildervalidNextSteps(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
stepName
StepExecution.Builder stepName(String 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
StepExecution.Builder action(String 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
StepExecution.Builder timeoutSeconds(Long 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
StepExecution.Builder onFailure(String 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
StepExecution.Builder maxAttempts(Integer 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
StepExecution.Builder executionStartTime(Instant 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
StepExecution.Builder executionEndTime(Instant 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
StepExecution.Builder stepStatus(String 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:
AutomationExecutionStatus,AutomationExecutionStatus
-
stepStatus
StepExecution.Builder stepStatus(AutomationExecutionStatus 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:
AutomationExecutionStatus,AutomationExecutionStatus
-
responseCode
StepExecution.Builder responseCode(String 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
StepExecution.Builder inputs(Map<String,String> 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
StepExecution.Builder outputs(Map<String,? extends Collection<String>> 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
StepExecution.Builder response(String 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
StepExecution.Builder failureMessage(String 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
StepExecution.Builder failureDetails(FailureDetails 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
default StepExecution.Builder failureDetails(Consumer<FailureDetails.Builder> failureDetails)
Information about the Automation failure.
This is a convenience method that creates an instance of theFailureDetails.Builderavoiding the need to create one manually viaFailureDetails.builder().When the
Consumercompletes,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:
failureDetails(FailureDetails)
-
stepExecutionId
StepExecution.Builder stepExecutionId(String 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
StepExecution.Builder isEnd(Boolean 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
StepExecution.Builder nextStep(String 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
StepExecution.Builder isCritical(Boolean 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
StepExecution.Builder validNextSteps(Collection<String> 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
StepExecution.Builder validNextSteps(String... 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
StepExecution.Builder targets(Collection<Target> 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
StepExecution.Builder targets(Target... 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
StepExecution.Builder targets(Consumer<Target.Builder>... targets)
The targets for the step execution.
This is a convenience method that creates an instance of theTarget.Builderavoiding the need to create one manually viaTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#targets(List.) - 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:
#targets(java.util.Collection)
-
targetLocation
StepExecution.Builder targetLocation(TargetLocation 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
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.
This is a convenience method that creates an instance of theTargetLocation.Builderavoiding the need to create one manually viaTargetLocation.builder().When the
Consumercompletes,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:
targetLocation(TargetLocation)
-
triggeredAlarms
StepExecution.Builder triggeredAlarms(Collection<AlarmStateInformation> 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
StepExecution.Builder triggeredAlarms(AlarmStateInformation... 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
StepExecution.Builder triggeredAlarms(Consumer<AlarmStateInformation.Builder>... triggeredAlarms)
The CloudWatch alarms that were invoked by the automation.
This is a convenience method that creates an instance of theAlarmStateInformation.Builderavoiding the need to create one manually viaAlarmStateInformation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#triggeredAlarms(List.) - 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:
#triggeredAlarms(java.util.Collection)
-
parentStepDetails
StepExecution.Builder parentStepDetails(ParentStepDetails 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.Builderavoiding the need to create one manually viaParentStepDetails.builder().When the
Consumercompletes,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:
parentStepDetails(ParentStepDetails)
-
-