Interface AttemptDetail.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AttemptDetail.Builder,
,AttemptDetail> SdkBuilder<AttemptDetail.Builder,
,AttemptDetail> SdkPojo
- Enclosing class:
AttemptDetail
public static interface AttemptDetail.Builder
extends SdkPojo, CopyableBuilder<AttemptDetail.Builder,AttemptDetail>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AttemptDetail.Builder
container
(Consumer<AttemptContainerDetail.Builder> container) The details for the container in this job attempt.container
(AttemptContainerDetail container) The details for the container in this job attempt.The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from theSTARTING
state to theRUNNING
state).statusReason
(String statusReason) A short, human-readable string to provide additional details for the current status of the job attempt.The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from theRUNNING
state to a terminal state, such asSUCCEEDED
orFAILED
).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
-
container
The details for the container in this job attempt.
- Parameters:
container
- The details for the container in this job attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
container
The details for the container in this job attempt.
This is a convenience method that creates an instance of theAttemptContainerDetail.Builder
avoiding the need to create one manually viaAttemptContainerDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainer(AttemptContainerDetail)
.- Parameters:
container
- a consumer that will call methods onAttemptContainerDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startedAt
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the
STARTING
state to theRUNNING
state).- Parameters:
startedAt
- The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from theSTARTING
state to theRUNNING
state).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppedAt
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the
RUNNING
state to a terminal state, such asSUCCEEDED
orFAILED
).- Parameters:
stoppedAt
- The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from theRUNNING
state to a terminal state, such asSUCCEEDED
orFAILED
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusReason
A short, human-readable string to provide additional details for the current status of the job attempt.
- Parameters:
statusReason
- A short, human-readable string to provide additional details for the current status of the job attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-