@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EksContainerOverride extends Object implements Serializable, Cloneable, StructuredPojo
Object representing any Kubernetes overrides to a job definition that's used in a SubmitJob API operation.
Constructor and Description |
---|
EksContainerOverride() |
Modifier and Type | Method and Description |
---|---|
EksContainerOverride |
clone() |
boolean |
equals(Object obj) |
List<String> |
getArgs()
The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker
image or the job definition.
|
List<String> |
getCommand()
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
List<EksContainerEnvironmentVariable> |
getEnv()
The environment variables to send to the container.
|
String |
getImage()
The override of the Docker image that's used to start the container.
|
String |
getName()
A pointer to the container that you want to override.
|
EksContainerResourceRequirements |
getResources()
The type and amount of resources to assign to a container.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArgs(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.
|
void |
setCommand(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
void |
setEnv(Collection<EksContainerEnvironmentVariable> env)
The environment variables to send to the container.
|
void |
setImage(String image)
The override of the Docker image that's used to start the container.
|
void |
setName(String name)
A pointer to the container that you want to override.
|
void |
setResources(EksContainerResourceRequirements resources)
The type and amount of resources to assign to a container.
|
String |
toString()
Returns a string representation of this object.
|
EksContainerOverride |
withArgs(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 |
withArgs(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 |
withCommand(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
EksContainerOverride |
withCommand(String... command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
EksContainerOverride |
withEnv(Collection<EksContainerEnvironmentVariable> env)
The environment variables to send to the container.
|
EksContainerOverride |
withEnv(EksContainerEnvironmentVariable... env)
The environment variables to send to the container.
|
EksContainerOverride |
withImage(String image)
The override of the Docker image that's used to start the container.
|
EksContainerOverride |
withName(String name)
A pointer to the container that you want to override.
|
EksContainerOverride |
withResources(EksContainerResourceRequirements resources)
The type and amount of resources to assign to a container.
|
public void setName(String name)
A pointer to the container that you want to override. The name must match a unique container name that you wish to override.
name
- A pointer to the container that you want to override. The name must match a unique container name that you
wish to override.public String getName()
A pointer to the container that you want to override. The name must match a unique container name that you wish to override.
public EksContainerOverride withName(String name)
A pointer to the container that you want to override. The name must match a unique container name that you wish to override.
name
- A pointer to the container that you want to override. The name must match a unique container name that you
wish to override.public void setImage(String image)
The override of the Docker image that's used to start the container.
image
- The override of the Docker image that's used to start the container.public String getImage()
The override of the Docker image that's used to start the container.
public EksContainerOverride withImage(String image)
The override of the Docker image that's used to start the container.
image
- The override of the Docker image that's used to start the container.public List<String> getCommand()
The command to send to the container that overrides the default command from the Docker image or the job definition.
public void setCommand(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
command
- The command to send to the container that overrides the default command from the Docker image or the job
definition.public EksContainerOverride withCommand(String... command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
NOTE: This method appends the values to the existing list (if any). Use
setCommand(java.util.Collection)
or withCommand(java.util.Collection)
if you want to override
the existing values.
command
- The command to send to the container that overrides the default command from the Docker image or the job
definition.public EksContainerOverride withCommand(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
command
- The command to send to the container that overrides the default command from the Docker image or the job
definition.public List<String> getArgs()
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 Dockerfile reference: CMD and Define a command an arguments for a pod in the Kubernetes documentation.
public void setArgs(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 Dockerfile reference: CMD and Define a command an arguments for a pod in the Kubernetes documentation.
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 Dockerfile reference: CMD and Define
a command an arguments for a pod in the Kubernetes documentation.public EksContainerOverride withArgs(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 Dockerfile reference: CMD and Define a command an arguments for a pod in the Kubernetes documentation.
NOTE: This method appends the values to the existing list (if any). Use
setArgs(java.util.Collection)
or withArgs(java.util.Collection)
if you want to override the
existing values.
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 Dockerfile reference: CMD and Define
a command an arguments for a pod in the Kubernetes documentation.public EksContainerOverride withArgs(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 Dockerfile reference: CMD and Define a command an arguments for a pod in the Kubernetes documentation.
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 Dockerfile reference: CMD and Define
a command an arguments for a pod in the Kubernetes documentation.public List<EksContainerEnvironmentVariable> getEnv()
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.
Environment variables cannot start with "AWS_BATCH
". This naming convention is reserved for
variables that Batch sets.
public void setEnv(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.
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.
public EksContainerOverride withEnv(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.
NOTE: This method appends the values to the existing list (if any). Use
setEnv(java.util.Collection)
or withEnv(java.util.Collection)
if you want to override the
existing values.
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.
public EksContainerOverride withEnv(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.
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.
public void setResources(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
, and nvidia.com/gpu
. For more
information, see Resource management for
pods and containers in the Kubernetes documentation.
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
, and
nvidia.com/gpu
. For more information, see Resource management
for pods and containers in the Kubernetes documentation.public EksContainerResourceRequirements getResources()
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
, and nvidia.com/gpu
. For more
information, see Resource management for
pods and containers in the Kubernetes documentation.
memory
, cpu
, and
nvidia.com/gpu
. For more information, see Resource management
for pods and containers in the Kubernetes documentation.public EksContainerOverride withResources(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
, and nvidia.com/gpu
. For more
information, see Resource management for
pods and containers in the Kubernetes documentation.
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
, and
nvidia.com/gpu
. For more information, see Resource management
for pods and containers in the Kubernetes documentation.public String toString()
toString
in class Object
Object.toString()
public EksContainerOverride clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.