Interface AwsEcsTaskDefinitionDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEcsTaskDefinitionDetails.Builder,
,AwsEcsTaskDefinitionDetails> SdkBuilder<AwsEcsTaskDefinitionDetails.Builder,
,AwsEcsTaskDefinitionDetails> SdkPojo
- Enclosing class:
AwsEcsTaskDefinitionDetails
-
Method Summary
Modifier and TypeMethodDescriptioncontainerDefinitions
(Collection<AwsEcsTaskDefinitionContainerDefinitionsDetails> containerDefinitions) The container definitions that describe the containers that make up the task.containerDefinitions
(Consumer<AwsEcsTaskDefinitionContainerDefinitionsDetails.Builder>... containerDefinitions) The container definitions that describe the containers that make up the task.containerDefinitions
(AwsEcsTaskDefinitionContainerDefinitionsDetails... containerDefinitions) The container definitions that describe the containers that make up the task.The number of CPU units used by the task.Valid values are as follows: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.The name of a family that this task definition is registered to.inferenceAccelerators
(Collection<AwsEcsTaskDefinitionInferenceAcceleratorsDetails> inferenceAccelerators) The Elastic Inference accelerators to use for the containers in the task.inferenceAccelerators
(Consumer<AwsEcsTaskDefinitionInferenceAcceleratorsDetails.Builder>... inferenceAccelerators) The Elastic Inference accelerators to use for the containers in the task.inferenceAccelerators
(AwsEcsTaskDefinitionInferenceAcceleratorsDetails... inferenceAccelerators) The Elastic Inference accelerators to use for the containers in the task.The inter-process communication (IPC) resource namespace to use for the containers in the task.The amount (in MiB) of memory used by the task.networkMode
(String networkMode) The Docker networking mode to use for the containers in the task.The process namespace to use for the containers in the task.placementConstraints
(Collection<AwsEcsTaskDefinitionPlacementConstraintsDetails> placementConstraints) The placement constraint objects to use for tasks.placementConstraints
(Consumer<AwsEcsTaskDefinitionPlacementConstraintsDetails.Builder>... placementConstraints) The placement constraint objects to use for tasks.placementConstraints
(AwsEcsTaskDefinitionPlacementConstraintsDetails... placementConstraints) The placement constraint objects to use for tasks.proxyConfiguration
(Consumer<AwsEcsTaskDefinitionProxyConfigurationDetails.Builder> proxyConfiguration) The configuration details for the App Mesh proxy.proxyConfiguration
(AwsEcsTaskDefinitionProxyConfigurationDetails proxyConfiguration) The configuration details for the App Mesh proxy.requiresCompatibilities
(String... requiresCompatibilities) The task launch types that the task definition was validated against.requiresCompatibilities
(Collection<String> requiresCompatibilities) The task launch types that the task definition was validated against.The status of the task definition.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.The data volume definitions for the task.volumes
(Consumer<AwsEcsTaskDefinitionVolumesDetails.Builder>... volumes) The data volume definitions for the task.volumes
(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, sdkFields
-
Method Details
-
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.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionContainerDefinitionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainerDefinitions(List<AwsEcsTaskDefinitionContainerDefinitionsDetails>)
.- 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:
-
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
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
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.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionInferenceAcceleratorsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinferenceAccelerators(List<AwsEcsTaskDefinitionInferenceAcceleratorsDetails>)
.- 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:
-
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
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
Cpu
andMemory
parameters.- 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
Cpu
andMemory
parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The process namespace to use for the containers in the task. Valid values are
host
ortask
.- Parameters:
pidMode
- The process namespace to use for the containers in the task. Valid values arehost
ortask
.- 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.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionPlacementConstraintsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplacementConstraints(List<AwsEcsTaskDefinitionPlacementConstraintsDetails>)
.- 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:
-
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.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionProxyConfigurationDetails.builder()
.When the
Consumer
completes,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:
-
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
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
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
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
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.Builder
avoiding the need to create one manually viaAwsEcsTaskDefinitionVolumesDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovolumes(List<AwsEcsTaskDefinitionVolumesDetails>)
.- 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:
-
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.
-