public static interface StepExecution.Builder extends 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 |
outputs(Map<String,? extends Collection<String>> outputs)
Returned values from the execution of the 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 |
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.
|
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 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. Valid values include: Pending, InProgress, Success, Cancelled, Failed, and TimedOut.
stepStatus
- The execution status for this step. Valid values include: Pending, InProgress, Success, Cancelled,
Failed, and TimedOut.AutomationExecutionStatus
,
AutomationExecutionStatus
StepExecution.Builder stepStatus(AutomationExecutionStatus stepStatus)
The execution status for this step. Valid values include: Pending, InProgress, Success, Cancelled, Failed, and TimedOut.
stepStatus
- The execution status for this step. Valid values include: Pending, InProgress, Success, Cancelled,
Failed, and TimedOut.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)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.