Interface AwsEcsTaskDefinitionDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsEcsTaskDefinitionDetails.Builder,AwsEcsTaskDefinitionDetails>,SdkBuilder<AwsEcsTaskDefinitionDetails.Builder,AwsEcsTaskDefinitionDetails>,SdkPojo
- Enclosing class:
- AwsEcsTaskDefinitionDetails
public static interface AwsEcsTaskDefinitionDetails.Builder extends SdkPojo, CopyableBuilder<AwsEcsTaskDefinitionDetails.Builder,AwsEcsTaskDefinitionDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AwsEcsTaskDefinitionDetails.BuildercontainerDefinitions(Collection<AwsEcsTaskDefinitionContainerDefinitionsDetails> containerDefinitions)The container definitions that describe the containers that make up the task.AwsEcsTaskDefinitionDetails.BuildercontainerDefinitions(Consumer<AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder>... containerDefinitions)The container definitions that describe the containers that make up the task.AwsEcsTaskDefinitionDetails.BuildercontainerDefinitions(AwsEcsTaskDefinitionContainerDefinitionsDetails... containerDefinitions)The container definitions that describe the containers that make up the task.AwsEcsTaskDefinitionDetails.Buildercpu(String cpu)The number of CPU units used by the task.Valid values are as follows:AwsEcsTaskDefinitionDetails.BuilderexecutionRoleArn(String executionRoleArn)The ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.AwsEcsTaskDefinitionDetails.Builderfamily(String family)The name of a family that this task definition is registered to.AwsEcsTaskDefinitionDetails.BuilderinferenceAccelerators(Collection<AwsEcsTaskDefinitionInferenceAcceleratorsDetails> inferenceAccelerators)The Elastic Inference accelerators to use for the containers in the task.AwsEcsTaskDefinitionDetails.BuilderinferenceAccelerators(Consumer<AwsEcsTaskDefinitionInferenceAcceleratorsDetails.Builder>... inferenceAccelerators)The Elastic Inference accelerators to use for the containers in the task.AwsEcsTaskDefinitionDetails.BuilderinferenceAccelerators(AwsEcsTaskDefinitionInferenceAcceleratorsDetails... inferenceAccelerators)The Elastic Inference accelerators to use for the containers in the task.AwsEcsTaskDefinitionDetails.BuilderipcMode(String ipcMode)The inter-process communication (IPC) resource namespace to use for the containers in the task.AwsEcsTaskDefinitionDetails.Buildermemory(String memory)The amount (in MiB) of memory used by the task.AwsEcsTaskDefinitionDetails.BuildernetworkMode(String networkMode)The Docker networking mode to use for the containers in the task.AwsEcsTaskDefinitionDetails.BuilderpidMode(String pidMode)The process namespace to use for the containers in the task.AwsEcsTaskDefinitionDetails.BuilderplacementConstraints(Collection<AwsEcsTaskDefinitionPlacementConstraintsDetails> placementConstraints)The placement constraint objects to use for tasks.AwsEcsTaskDefinitionDetails.BuilderplacementConstraints(Consumer<AwsEcsTaskDefinitionPlacementConstraintsDetails.Builder>... placementConstraints)The placement constraint objects to use for tasks.AwsEcsTaskDefinitionDetails.BuilderplacementConstraints(AwsEcsTaskDefinitionPlacementConstraintsDetails... placementConstraints)The placement constraint objects to use for tasks.default AwsEcsTaskDefinitionDetails.BuilderproxyConfiguration(Consumer<AwsEcsTaskDefinitionProxyConfigurationDetails.Builder> proxyConfiguration)The configuration details for the App Mesh proxy.AwsEcsTaskDefinitionDetails.BuilderproxyConfiguration(AwsEcsTaskDefinitionProxyConfigurationDetails proxyConfiguration)The configuration details for the App Mesh proxy.AwsEcsTaskDefinitionDetails.BuilderrequiresCompatibilities(String... requiresCompatibilities)The task launch types that the task definition was validated against.AwsEcsTaskDefinitionDetails.BuilderrequiresCompatibilities(Collection<String> requiresCompatibilities)The task launch types that the task definition was validated against.AwsEcsTaskDefinitionDetails.Builderstatus(String status)The status of the task definition.AwsEcsTaskDefinitionDetails.BuildertaskRoleArn(String taskRoleArn)The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.AwsEcsTaskDefinitionDetails.Buildervolumes(Collection<AwsEcsTaskDefinitionVolumesDetails> volumes)The data volume definitions for the task.AwsEcsTaskDefinitionDetails.Buildervolumes(Consumer<AwsEcsTaskDefinitionVolumesDetails.Builder>... volumes)The data volume definitions for the task.AwsEcsTaskDefinitionDetails.Buildervolumes(AwsEcsTaskDefinitionVolumesDetails... volumes)The data volume definitions for the 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
-
containerDefinitions
AwsEcsTaskDefinitionDetails.Builder containerDefinitions(Collection<AwsEcsTaskDefinitionContainerDefinitionsDetails> containerDefinitions)
The container definitions that describe the containers that make up the task.
- Parameters:
containerDefinitions- The container definitions that describe the containers that make up the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerDefinitions
AwsEcsTaskDefinitionDetails.Builder containerDefinitions(AwsEcsTaskDefinitionContainerDefinitionsDetails... containerDefinitions)
The container definitions that describe the containers that make up the task.
- Parameters:
containerDefinitions- The container definitions that describe the containers that make up the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerDefinitions
AwsEcsTaskDefinitionDetails.Builder containerDefinitions(Consumer<AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder>... containerDefinitions)
The container definitions that describe the containers that make up the task.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionContainerDefinitionsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#containerDefinitions(List.) - Parameters:
containerDefinitions- a consumer that will call methods onAwsEcsTaskDefinitionContainerDefinitionsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#containerDefinitions(java.util.Collection)
-
cpu
AwsEcsTaskDefinitionDetails.Builder cpu(String cpu)
The number of CPU units used by the task.Valid values are as follows:
-
256 (.25 vCPU) -
512 (.5 vCPU) -
1024 (1 vCPU) -
2048 (2 vCPU) -
4096 (4 vCPU)
- Parameters:
cpu- The number of CPU units used by the task.Valid values are as follows:-
256 (.25 vCPU) -
512 (.5 vCPU) -
1024 (1 vCPU) -
2048 (2 vCPU) -
4096 (4 vCPU)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
executionRoleArn
AwsEcsTaskDefinitionDetails.Builder executionRoleArn(String executionRoleArn)
The ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.
- Parameters:
executionRoleArn- The ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
family
AwsEcsTaskDefinitionDetails.Builder family(String family)
The name of a family that this task definition is registered to.
- Parameters:
family- The name of a family that this task definition is registered to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceAccelerators
AwsEcsTaskDefinitionDetails.Builder inferenceAccelerators(Collection<AwsEcsTaskDefinitionInferenceAcceleratorsDetails> inferenceAccelerators)
The Elastic Inference accelerators to use for the containers in the task.
- Parameters:
inferenceAccelerators- The Elastic Inference accelerators to use for the containers in the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceAccelerators
AwsEcsTaskDefinitionDetails.Builder inferenceAccelerators(AwsEcsTaskDefinitionInferenceAcceleratorsDetails... inferenceAccelerators)
The Elastic Inference accelerators to use for the containers in the task.
- Parameters:
inferenceAccelerators- The Elastic Inference accelerators to use for the containers in the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceAccelerators
AwsEcsTaskDefinitionDetails.Builder inferenceAccelerators(Consumer<AwsEcsTaskDefinitionInferenceAcceleratorsDetails.Builder>... inferenceAccelerators)
The Elastic Inference accelerators to use for the containers in the task.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionInferenceAcceleratorsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionInferenceAcceleratorsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#inferenceAccelerators(List.) - Parameters:
inferenceAccelerators- a consumer that will call methods onAwsEcsTaskDefinitionInferenceAcceleratorsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#inferenceAccelerators(java.util.Collection)
-
ipcMode
AwsEcsTaskDefinitionDetails.Builder ipcMode(String ipcMode)
The inter-process communication (IPC) resource namespace to use for the containers in the task. Valid values are as follows:
-
host -
none -
task
- Parameters:
ipcMode- The inter-process communication (IPC) resource namespace to use for the containers in the task. Valid values are as follows:-
host -
none -
task
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
memory
AwsEcsTaskDefinitionDetails.Builder memory(String memory)
The amount (in MiB) of memory used by the task.
For tasks that are hosted on Amazon EC2, you can provide a task-level memory value or a container-level memory value. For tasks that are hosted on Fargate, you must use one of the specified values in the Amazon Elastic Container Service Developer Guide , which determines your range of supported values for the
CpuandMemoryparameters.- Parameters:
memory- The amount (in MiB) of memory used by the task.For tasks that are hosted on Amazon EC2, you can provide a task-level memory value or a container-level memory value. For tasks that are hosted on Fargate, you must use one of the specified values in the Amazon Elastic Container Service Developer Guide , which determines your range of supported values for the
CpuandMemoryparameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkMode
AwsEcsTaskDefinitionDetails.Builder networkMode(String networkMode)
The Docker networking mode to use for the containers in the task. Valid values are as follows:
-
awsvpc -
bridge -
host -
none
- Parameters:
networkMode- The Docker networking mode to use for the containers in the task. Valid values are as follows:-
awsvpc -
bridge -
host -
none
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
pidMode
AwsEcsTaskDefinitionDetails.Builder pidMode(String pidMode)
The process namespace to use for the containers in the task. Valid values are
hostortask.- Parameters:
pidMode- The process namespace to use for the containers in the task. Valid values arehostortask.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementConstraints
AwsEcsTaskDefinitionDetails.Builder placementConstraints(Collection<AwsEcsTaskDefinitionPlacementConstraintsDetails> placementConstraints)
The placement constraint objects to use for tasks.
- Parameters:
placementConstraints- The placement constraint objects to use for tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementConstraints
AwsEcsTaskDefinitionDetails.Builder placementConstraints(AwsEcsTaskDefinitionPlacementConstraintsDetails... placementConstraints)
The placement constraint objects to use for tasks.
- Parameters:
placementConstraints- The placement constraint objects to use for tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementConstraints
AwsEcsTaskDefinitionDetails.Builder placementConstraints(Consumer<AwsEcsTaskDefinitionPlacementConstraintsDetails.Builder>... placementConstraints)
The placement constraint objects to use for tasks.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionPlacementConstraintsDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionPlacementConstraintsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#placementConstraints(List.) - Parameters:
placementConstraints- a consumer that will call methods onAwsEcsTaskDefinitionPlacementConstraintsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#placementConstraints(java.util.Collection)
-
proxyConfiguration
AwsEcsTaskDefinitionDetails.Builder proxyConfiguration(AwsEcsTaskDefinitionProxyConfigurationDetails proxyConfiguration)
The configuration details for the App Mesh proxy.
- Parameters:
proxyConfiguration- The configuration details for the App Mesh proxy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
proxyConfiguration
default AwsEcsTaskDefinitionDetails.Builder proxyConfiguration(Consumer<AwsEcsTaskDefinitionProxyConfigurationDetails.Builder> proxyConfiguration)
The configuration details for the App Mesh proxy.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionProxyConfigurationDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionProxyConfigurationDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproxyConfiguration(AwsEcsTaskDefinitionProxyConfigurationDetails).- Parameters:
proxyConfiguration- a consumer that will call methods onAwsEcsTaskDefinitionProxyConfigurationDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
proxyConfiguration(AwsEcsTaskDefinitionProxyConfigurationDetails)
-
requiresCompatibilities
AwsEcsTaskDefinitionDetails.Builder requiresCompatibilities(Collection<String> requiresCompatibilities)
The task launch types that the task definition was validated against.
- Parameters:
requiresCompatibilities- The task launch types that the task definition was validated against.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requiresCompatibilities
AwsEcsTaskDefinitionDetails.Builder requiresCompatibilities(String... requiresCompatibilities)
The task launch types that the task definition was validated against.
- Parameters:
requiresCompatibilities- The task launch types that the task definition was validated against.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskRoleArn
AwsEcsTaskDefinitionDetails.Builder taskRoleArn(String taskRoleArn)
The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.
- Parameters:
taskRoleArn- The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
AwsEcsTaskDefinitionDetails.Builder volumes(Collection<AwsEcsTaskDefinitionVolumesDetails> volumes)
The data volume definitions for the task.
- Parameters:
volumes- The data volume definitions for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
AwsEcsTaskDefinitionDetails.Builder volumes(AwsEcsTaskDefinitionVolumesDetails... volumes)
The data volume definitions for the task.
- Parameters:
volumes- The data volume definitions for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumes
AwsEcsTaskDefinitionDetails.Builder volumes(Consumer<AwsEcsTaskDefinitionVolumesDetails.Builder>... volumes)
The data volume definitions for the task.
This is a convenience method that creates an instance of theAwsEcsTaskDefinitionVolumesDetails.Builderavoiding the need to create one manually viaAwsEcsTaskDefinitionVolumesDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#volumes(List.) - Parameters:
volumes- a consumer that will call methods onAwsEcsTaskDefinitionVolumesDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#volumes(java.util.Collection)
-
status
AwsEcsTaskDefinitionDetails.Builder status(String status)
The status of the task definition.
- Parameters:
status- The status of the task definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-