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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AttemptDetail.Buildercontainer(Consumer<AttemptContainerDetail.Builder> container)The details for the container in this job attempt.AttemptDetail.Buildercontainer(AttemptContainerDetail container)The details for the container in this job attempt.AttemptDetail.BuilderstartedAt(Long startedAt)The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from theSTARTINGstate to theRUNNINGstate).AttemptDetail.BuilderstatusReason(String statusReason)A short, human-readable string to provide additional details for the current status of the job attempt.AttemptDetail.BuilderstoppedAt(Long stoppedAt)The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from theRUNNINGstate to a terminal state, such asSUCCEEDEDorFAILED).AttemptDetail.BuildertaskProperties(Collection<AttemptEcsTaskDetails> taskProperties)The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.AttemptDetail.BuildertaskProperties(Consumer<AttemptEcsTaskDetails.Builder>... taskProperties)The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.AttemptDetail.BuildertaskProperties(AttemptEcsTaskDetails... taskProperties)The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.-
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
-
container
AttemptDetail.Builder container(AttemptContainerDetail 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
default AttemptDetail.Builder container(Consumer<AttemptContainerDetail.Builder> container)
The details for the container in this job attempt.
This is a convenience method that creates an instance of theAttemptContainerDetail.Builderavoiding the need to create one manually viaAttemptContainerDetail.builder().When the
Consumercompletes,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:
container(AttemptContainerDetail)
-
startedAt
AttemptDetail.Builder startedAt(Long startedAt)
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the
STARTINGstate to theRUNNINGstate).- Parameters:
startedAt- The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from theSTARTINGstate to theRUNNINGstate).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppedAt
AttemptDetail.Builder stoppedAt(Long stoppedAt)
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the
RUNNINGstate to a terminal state, such asSUCCEEDEDorFAILED).- Parameters:
stoppedAt- The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from theRUNNINGstate to a terminal state, such asSUCCEEDEDorFAILED).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusReason
AttemptDetail.Builder statusReason(String 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.
-
taskProperties
AttemptDetail.Builder taskProperties(Collection<AttemptEcsTaskDetails> taskProperties)
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
- Parameters:
taskProperties- The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskProperties
AttemptDetail.Builder taskProperties(AttemptEcsTaskDetails... taskProperties)
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
- Parameters:
taskProperties- The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskProperties
AttemptDetail.Builder taskProperties(Consumer<AttemptEcsTaskDetails.Builder>... taskProperties)
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
This is a convenience method that creates an instance of theAttemptEcsTaskDetails.Builderavoiding the need to create one manually viaAttemptEcsTaskDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#taskProperties(List.) - Parameters:
taskProperties- a consumer that will call methods onAttemptEcsTaskDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#taskProperties(java.util.Collection)
-
-