Interface EksContainerOverride.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EksContainerOverride.Builder,EksContainerOverride>,SdkBuilder<EksContainerOverride.Builder,EksContainerOverride>,SdkPojo
- Enclosing class:
- EksContainerOverride
public static interface EksContainerOverride.Builder extends SdkPojo, CopyableBuilder<EksContainerOverride.Builder,EksContainerOverride>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EksContainerOverride.Builderargs(String... args)The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition.EksContainerOverride.Builderargs(Collection<String> args)The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition.EksContainerOverride.Buildercommand(String... command)The command to send to the container that overrides the default command from the Docker image or the job definition.EksContainerOverride.Buildercommand(Collection<String> command)The command to send to the container that overrides the default command from the Docker image or the job definition.EksContainerOverride.Builderenv(Collection<EksContainerEnvironmentVariable> env)The environment variables to send to the container.EksContainerOverride.Builderenv(Consumer<EksContainerEnvironmentVariable.Builder>... env)The environment variables to send to the container.EksContainerOverride.Builderenv(EksContainerEnvironmentVariable... env)The environment variables to send to the container.EksContainerOverride.Builderimage(String image)The override of the Docker image that's used to start the container.default EksContainerOverride.Builderresources(Consumer<EksContainerResourceRequirements.Builder> resources)The type and amount of resources to assign to a container.EksContainerOverride.Builderresources(EksContainerResourceRequirements resources)The type and amount of resources to assign to a container.-
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
-
image
EksContainerOverride.Builder image(String image)
The override of the Docker image that's used to start the container.
- Parameters:
image- The override of the Docker image that's used to start the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
EksContainerOverride.Builder command(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
- Parameters:
command- The command to send to the container that overrides the default command from the Docker image or the job definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
EksContainerOverride.Builder command(String... command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
- Parameters:
command- The command to send to the container that overrides the default command from the Docker image or the job definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
args
EksContainerOverride.Builder args(Collection<String> args)
The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition. For more information, see CMD in the Dockerfile reference and Define a command an arguments for a pod in the Kubernetes documentation.
- Parameters:
args- The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition. For more information, see CMD in the Dockerfile reference and Define a command an arguments for a pod in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
args
EksContainerOverride.Builder args(String... args)
The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition. For more information, see CMD in the Dockerfile reference and Define a command an arguments for a pod in the Kubernetes documentation.
- Parameters:
args- The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition. For more information, see CMD in the Dockerfile reference and Define a command an arguments for a pod in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
env
EksContainerOverride.Builder env(Collection<EksContainerEnvironmentVariable> env)
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 job definition.
Environment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that Batch sets.- Parameters:
env- 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 job definition.Environment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that Batch sets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
env
EksContainerOverride.Builder env(EksContainerEnvironmentVariable... env)
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 job definition.
Environment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that Batch sets.- Parameters:
env- 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 job definition.Environment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that Batch sets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
env
EksContainerOverride.Builder env(Consumer<EksContainerEnvironmentVariable.Builder>... env)
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 job definition.
This is a convenience method that creates an instance of theEnvironment variables cannot start with "
AWS_BATCH". This naming convention is reserved for variables that Batch sets.EksContainerEnvironmentVariable.Builderavoiding the need to create one manually viaEksContainerEnvironmentVariable.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#env(List.) - Parameters:
env- a consumer that will call methods onEksContainerEnvironmentVariable.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#env(java.util.Collection)
-
resources
EksContainerOverride.Builder resources(EksContainerResourceRequirements resources)
The type and amount of resources to assign to a container. These override the settings in the job definition. The supported resources include
memory,cpu, andnvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation.- Parameters:
resources- The type and amount of resources to assign to a container. These override the settings in the job definition. The supported resources includememory,cpu, andnvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
default EksContainerOverride.Builder resources(Consumer<EksContainerResourceRequirements.Builder> resources)
The type and amount of resources to assign to a container. These override the settings in the job definition. The supported resources include
This is a convenience method that creates an instance of thememory,cpu, andnvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation.EksContainerResourceRequirements.Builderavoiding the need to create one manually viaEksContainerResourceRequirements.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresources(EksContainerResourceRequirements).- Parameters:
resources- a consumer that will call methods onEksContainerResourceRequirements.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resources(EksContainerResourceRequirements)
-
-