public static interface StepExecution.Builder extends SdkPojo, CopyableBuilder<StepExecution.Builder,StepExecution>
Modifier and Type | Method and Description |
---|---|
StepExecution.Builder |
action(String action)
The action this step performs.
|
StepExecution.Builder |
executionEndTime(Instant executionEndTime)
If a step has finished execution, this contains the time the execution ended.
|
StepExecution.Builder |
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.
|
StepExecution.Builder |
failureDetails(FailureDetails failureDetails)
Information about the Automation failure.
|
StepExecution.Builder |
failureMessage(String failureMessage)
If a step failed, this message explains why the execution failed.
|
StepExecution.Builder |
inputs(Map<String,String> inputs)
Fully-resolved values passed into the step before execution.
|
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.
|
StepExecution.Builder |
isEnd(Boolean isEnd)
The flag which can be used to end automation no matter whether the step succeeds or fails.
|
StepExecution.Builder |
maxAttempts(Integer maxAttempts)
The maximum number of tries to run the action of the step.
|
StepExecution.Builder |
nextStep(String nextStep)
The next step after the step succeeds.
|
StepExecution.Builder |
onFailure(String onFailure)
The action to take if the step fails.
|
StepExecution.Builder |
outputs(Map<String,? extends Collection<String>> outputs)
Returned values from the execution of the step.
|
StepExecution.Builder |
overriddenParameters(Map<String,? extends Collection<String>> overriddenParameters)
A user-specified list of parameters to override when running a step.
|
StepExecution.Builder |
response(String response)
A message associated with the response code for an execution.
|
StepExecution.Builder |
responseCode(String responseCode)
The response code returned by the execution of the step.
|
StepExecution.Builder |
stepExecutionId(String stepExecutionId)
The unique ID of a step execution.
|
StepExecution.Builder |
stepName(String stepName)
The name of this execution step.
|
StepExecution.Builder |
stepStatus(AutomationExecutionStatus stepStatus)
The execution status for this step.
|
StepExecution.Builder |
stepStatus(String stepStatus)
The execution status for this step.
|
default StepExecution.Builder |
targetLocation(Consumer<TargetLocation.Builder> targetLocation)
The combination of AWS Regions and accounts targeted by the current Automation execution.
|
StepExecution.Builder |
targetLocation(TargetLocation targetLocation)
The combination of AWS Regions and accounts targeted by the current Automation execution.
|
StepExecution.Builder |
targets(Collection<Target> targets)
The targets for the step execution.
|
StepExecution.Builder |
targets(Consumer<Target.Builder>... targets)
The targets for the step execution.
|
StepExecution.Builder |
targets(Target... targets)
The targets for the step execution.
|
StepExecution.Builder |
timeoutSeconds(Long timeoutSeconds)
The timeout seconds of the step.
|
StepExecution.Builder |
validNextSteps(Collection<String> validNextSteps)
Strategies used when step fails, we support Continue and Abort.
|
StepExecution.Builder |
validNextSteps(String... validNextSteps)
Strategies used when step fails, we support Continue and Abort.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
StepExecution.Builder stepName(String stepName)
The name of this execution step.
stepName
- The name of this execution step.StepExecution.Builder action(String action)
The action this step performs. The action determines the behavior of the step.
action
- The action this step performs. The action determines the behavior of the step.StepExecution.Builder timeoutSeconds(Long timeoutSeconds)
The timeout seconds of the step.
timeoutSeconds
- The timeout seconds of the step.StepExecution.Builder onFailure(String onFailure)
The action to take if the step fails. The default value is Abort.
onFailure
- The action to take if the step fails. The default value is Abort.StepExecution.Builder maxAttempts(Integer maxAttempts)
The maximum number of tries to run the action of the step. The default value is 1.
maxAttempts
- The maximum number of tries to run the action of the step. The default value is 1.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 is not populated.
executionStartTime
- If a step has begun execution, this contains the time the step started. If the step is in Pending
status, this field is not populated.StepExecution.Builder executionEndTime(Instant executionEndTime)
If a step has finished execution, this contains the time the execution ended. If the step has not yet concluded, this field is not populated.
executionEndTime
- If a step has finished execution, this contains the time the execution ended. If the step has not yet
concluded, this field is not populated.StepExecution.Builder stepStatus(String stepStatus)
The execution status for this step.
stepStatus
- The execution status for this step.AutomationExecutionStatus
,
AutomationExecutionStatus
StepExecution.Builder stepStatus(AutomationExecutionStatus stepStatus)
The execution status for this step.
stepStatus
- The execution status for this step.AutomationExecutionStatus
,
AutomationExecutionStatus
StepExecution.Builder responseCode(String responseCode)
The response code returned by the execution of the step.
responseCode
- The response code returned by the execution of the step.StepExecution.Builder inputs(Map<String,String> inputs)
Fully-resolved values passed into the step before execution.
inputs
- Fully-resolved values passed into the step before execution.StepExecution.Builder outputs(Map<String,? extends Collection<String>> outputs)
Returned values from the execution of the step.
outputs
- Returned values from the execution of the step.StepExecution.Builder response(String response)
A message associated with the response code for an execution.
response
- A message associated with the response code for an execution.StepExecution.Builder failureMessage(String failureMessage)
If a step failed, this message explains why the execution failed.
failureMessage
- If a step failed, this message explains why the execution failed.StepExecution.Builder failureDetails(FailureDetails failureDetails)
Information about the Automation failure.
failureDetails
- Information about the Automation failure.default StepExecution.Builder failureDetails(Consumer<FailureDetails.Builder> failureDetails)
Information about the Automation failure.
This is a convenience that creates an instance of theFailureDetails.Builder
avoiding the need to
create one manually via FailureDetails.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to failureDetails(FailureDetails)
.failureDetails
- a consumer that will call methods on FailureDetails.Builder
failureDetails(FailureDetails)
StepExecution.Builder stepExecutionId(String stepExecutionId)
The unique ID of a step execution.
stepExecutionId
- The unique ID of a step execution.StepExecution.Builder overriddenParameters(Map<String,? extends Collection<String>> overriddenParameters)
A user-specified list of parameters to override when running a step.
overriddenParameters
- A user-specified list of parameters to override when running a step.StepExecution.Builder isEnd(Boolean isEnd)
The flag which can be used to end automation no matter whether the step succeeds or fails.
isEnd
- The flag which can be used to end automation no matter whether the step succeeds or fails.StepExecution.Builder nextStep(String nextStep)
The next step after the step succeeds.
nextStep
- The next step after the step succeeds.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.
isCritical
- The flag which can be used to help decide whether the failure of current step leads to the Automation
failure.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.
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.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.
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.StepExecution.Builder targets(Collection<Target> targets)
The targets for the step execution.
targets
- The targets for the step execution.StepExecution.Builder targets(Target... targets)
The targets for the step execution.
targets
- The targets for the step execution.StepExecution.Builder targets(Consumer<Target.Builder>... targets)
The targets for the step execution.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #targets(List)
.targets
- a consumer that will call methods on List.Builder
#targets(List)
StepExecution.Builder targetLocation(TargetLocation targetLocation)
The combination of AWS Regions and accounts targeted by the current Automation execution.
targetLocation
- The combination of AWS Regions and accounts targeted by the current Automation execution.default StepExecution.Builder targetLocation(Consumer<TargetLocation.Builder> targetLocation)
The combination of AWS Regions and accounts targeted by the current Automation execution.
This is a convenience that creates an instance of theTargetLocation.Builder
avoiding the need to
create one manually via TargetLocation.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to targetLocation(TargetLocation)
.targetLocation
- a consumer that will call methods on TargetLocation.Builder
targetLocation(TargetLocation)
Copyright © 2020. All rights reserved.