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 thetaskProperties
list.containers
(Consumer<AttemptTaskContainerDetails.Builder>... containers) A list of containers that are included in thetaskProperties
list.containers
(AttemptTaskContainerDetails... containers) A list of containers that are included in thetaskProperties
list.The ARN of the 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 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
taskProperties
list.- Parameters:
containers
- A list of containers that are included in thetaskProperties
list.- 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
taskProperties
list.- Parameters:
containers
- A list of containers that are included in thetaskProperties
list.- 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 thetaskProperties
list.AttemptTaskContainerDetails.Builder
avoiding the need to create one manually viaAttemptTaskContainerDetails.builder()
.When the
Consumer
completes,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:
-