Interface AttemptEcsTaskDetails.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<AttemptEcsTaskDetails.Builder,AttemptEcsTaskDetails>
,SdkBuilder<AttemptEcsTaskDetails.Builder,AttemptEcsTaskDetails>
,SdkPojo
- Enclosing class:
- AttemptEcsTaskDetails
public static interface AttemptEcsTaskDetails.Builder extends SdkPojo, CopyableBuilder<AttemptEcsTaskDetails.Builder,AttemptEcsTaskDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttemptEcsTaskDetails.Builder
containerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the container instance that hosts the task.AttemptEcsTaskDetails.Builder
containers(Collection<AttemptTaskContainerDetails> containers)
A list of containers that are included in thetaskProperties
list.AttemptEcsTaskDetails.Builder
containers(Consumer<AttemptTaskContainerDetails.Builder>... containers)
A list of containers that are included in thetaskProperties
list.AttemptEcsTaskDetails.Builder
containers(AttemptTaskContainerDetails... containers)
A list of containers that are included in thetaskProperties
list.AttemptEcsTaskDetails.Builder
taskArn(String taskArn)
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, sdkFields
-
-
-
-
Method Detail
-
containerInstanceArn
AttemptEcsTaskDetails.Builder containerInstanceArn(String 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
AttemptEcsTaskDetails.Builder taskArn(String 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
AttemptEcsTaskDetails.Builder containers(Collection<AttemptTaskContainerDetails> 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(AttemptTaskContainerDetails... 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 to#containers(List
.) - 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:
#containers(java.util.Collection
)
-
-