Interface AttemptEcsTaskDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AttemptEcsTaskDetails.Builder,,AttemptEcsTaskDetails> SdkBuilder<AttemptEcsTaskDetails.Builder,,AttemptEcsTaskDetails> SdkPojo
- Enclosing class:
AttemptEcsTaskDetails
@Mutable
@NotThreadSafe
public static interface AttemptEcsTaskDetails.Builder
extends SdkPojo, CopyableBuilder<AttemptEcsTaskDetails.Builder,AttemptEcsTaskDetails>
-
Method Summary
Modifier and TypeMethodDescriptioncontainerInstanceArn(String containerInstanceArn) The Amazon Resource Name (ARN) of the container instance that hosts the task.containers(Collection<AttemptTaskContainerDetails> containers) A list of containers that are included in thetaskPropertieslist.containers(Consumer<AttemptTaskContainerDetails.Builder>... containers) A list of containers that are included in thetaskPropertieslist.containers(AttemptTaskContainerDetails... containers) A list of containers that are included in thetaskPropertieslist.The ARN of the Amazon ECS task.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
containerInstanceArn
The Amazon Resource Name (ARN) of the container instance that hosts the task.
- Parameters:
containerInstanceArn- The Amazon Resource Name (ARN) of the container instance that hosts the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskArn
The ARN of the Amazon ECS task.
- Parameters:
taskArn- The ARN of the Amazon ECS task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
A list of containers that are included in the
taskPropertieslist.- Parameters:
containers- A list of containers that are included in thetaskPropertieslist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
A list of containers that are included in the
taskPropertieslist.- Parameters:
containers- A list of containers that are included in thetaskPropertieslist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
AttemptEcsTaskDetails.Builder containers(Consumer<AttemptTaskContainerDetails.Builder>... containers) A list of containers that are included in the
This is a convenience method that creates an instance of thetaskPropertieslist.AttemptTaskContainerDetails.Builderavoiding the need to create one manually viaAttemptTaskContainerDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontainers(List<AttemptTaskContainerDetails>).- Parameters:
containers- a consumer that will call methods onAttemptTaskContainerDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-