Interface EcsContainerOverride.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EcsContainerOverride.Builder,EcsContainerOverride>,SdkBuilder<EcsContainerOverride.Builder,EcsContainerOverride>,SdkPojo
- Enclosing class:
- EcsContainerOverride
public static interface EcsContainerOverride.Builder extends SdkPojo, CopyableBuilder<EcsContainerOverride.Builder,EcsContainerOverride>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EcsContainerOverride.Buildercommand(String... command)The command to send to the container that overrides the default command from the Docker image or the task definition.EcsContainerOverride.Buildercommand(Collection<String> command)The command to send to the container that overrides the default command from the Docker image or the task definition.EcsContainerOverride.Buildercpu(Integer cpu)The number ofcpuunits reserved for the container, instead of the default value from the task definition.EcsContainerOverride.Builderenvironment(Collection<EcsEnvironmentVariable> environment)The environment variables to send to the container.EcsContainerOverride.Builderenvironment(Consumer<EcsEnvironmentVariable.Builder>... environment)The environment variables to send to the container.EcsContainerOverride.Builderenvironment(EcsEnvironmentVariable... environment)The environment variables to send to the container.EcsContainerOverride.BuilderenvironmentFiles(Collection<EcsEnvironmentFile> environmentFiles)A list of files containing the environment variables to pass to a container, instead of the value from the container definition.EcsContainerOverride.BuilderenvironmentFiles(Consumer<EcsEnvironmentFile.Builder>... environmentFiles)A list of files containing the environment variables to pass to a container, instead of the value from the container definition.EcsContainerOverride.BuilderenvironmentFiles(EcsEnvironmentFile... environmentFiles)A list of files containing the environment variables to pass to a container, instead of the value from the container definition.EcsContainerOverride.Buildermemory(Integer memory)The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition.EcsContainerOverride.BuildermemoryReservation(Integer memoryReservation)The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition.EcsContainerOverride.Buildername(String name)The name of the container that receives the override.EcsContainerOverride.BuilderresourceRequirements(Collection<EcsResourceRequirement> resourceRequirements)The type and amount of a resource to assign to a container, instead of the default value from the task definition.EcsContainerOverride.BuilderresourceRequirements(Consumer<EcsResourceRequirement.Builder>... resourceRequirements)The type and amount of a resource to assign to a container, instead of the default value from the task definition.EcsContainerOverride.BuilderresourceRequirements(EcsResourceRequirement... resourceRequirements)The type and amount of a resource to assign to a container, instead of the default value from the task definition.-
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
-
command
EcsContainerOverride.Builder command(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.
- Parameters:
command- The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
EcsContainerOverride.Builder command(String... command)
The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.
- Parameters:
command- The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpu
EcsContainerOverride.Builder cpu(Integer cpu)
The number of
cpuunits reserved for the container, instead of the default value from the task definition. You must also specify a container name.- Parameters:
cpu- The number ofcpuunits reserved for the container, instead of the default value from the task definition. You must also specify a container name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
EcsContainerOverride.Builder environment(Collection<EcsEnvironmentVariable> environment)
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.
- Parameters:
environment- The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
EcsContainerOverride.Builder environment(EcsEnvironmentVariable... environment)
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.
- Parameters:
environment- The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
EcsContainerOverride.Builder environment(Consumer<EcsEnvironmentVariable.Builder>... environment)
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.
This is a convenience method that creates an instance of theEcsEnvironmentVariable.Builderavoiding the need to create one manually viaEcsEnvironmentVariable.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#environment(List.) - Parameters:
environment- a consumer that will call methods onEcsEnvironmentVariable.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#environment(java.util.Collection)
-
environmentFiles
EcsContainerOverride.Builder environmentFiles(Collection<EcsEnvironmentFile> environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
- Parameters:
environmentFiles- A list of files containing the environment variables to pass to a container, instead of the value from the container definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentFiles
EcsContainerOverride.Builder environmentFiles(EcsEnvironmentFile... environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
- Parameters:
environmentFiles- A list of files containing the environment variables to pass to a container, instead of the value from the container definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentFiles
EcsContainerOverride.Builder environmentFiles(Consumer<EcsEnvironmentFile.Builder>... environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
This is a convenience method that creates an instance of theEcsEnvironmentFile.Builderavoiding the need to create one manually viaEcsEnvironmentFile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#environmentFiles(List.) - Parameters:
environmentFiles- a consumer that will call methods onEcsEnvironmentFile.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#environmentFiles(java.util.Collection)
-
memory
EcsContainerOverride.Builder memory(Integer memory)
The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.
- Parameters:
memory- The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryReservation
EcsContainerOverride.Builder memoryReservation(Integer memoryReservation)
The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.
- Parameters:
memoryReservation- The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
EcsContainerOverride.Builder name(String name)
The name of the container that receives the override. This parameter is required if any override is specified.
- Parameters:
name- The name of the container that receives the override. This parameter is required if any override is specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRequirements
EcsContainerOverride.Builder resourceRequirements(Collection<EcsResourceRequirement> resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
- Parameters:
resourceRequirements- The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRequirements
EcsContainerOverride.Builder resourceRequirements(EcsResourceRequirement... resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
- Parameters:
resourceRequirements- The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceRequirements
EcsContainerOverride.Builder resourceRequirements(Consumer<EcsResourceRequirement.Builder>... resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
This is a convenience method that creates an instance of theEcsResourceRequirement.Builderavoiding the need to create one manually viaEcsResourceRequirement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resourceRequirements(List.) - Parameters:
resourceRequirements- a consumer that will call methods onEcsResourceRequirement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resourceRequirements(java.util.Collection)
-
-