@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerOverrides extends Object implements Serializable, Cloneable, StructuredPojo
The overrides that should be sent to a container.
Constructor and Description |
---|
ContainerOverrides() |
Modifier and Type | Method and Description |
---|---|
ContainerOverrides |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCommand()
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
List<KeyValuePair> |
getEnvironment()
The environment variables to send to the container.
|
String |
getInstanceType()
The instance type to use for a multi-node parallel job.
|
Integer |
getMemory()
Deprecated.
|
List<ResourceRequirement> |
getResourceRequirements()
The type and amount of resources to assign to a container.
|
Integer |
getVcpus()
Deprecated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
setEnvironment(Collection<KeyValuePair> environment)
The environment variables to send to the container.
|
void |
setInstanceType(String instanceType)
The instance type to use for a multi-node parallel job.
|
void |
setMemory(Integer memory)
Deprecated.
|
void |
setResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of resources to assign to a container.
|
void |
setVcpus(Integer vcpus)
Deprecated.
|
String |
toString()
Returns a string representation of this object.
|
ContainerOverrides |
withCommand(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
ContainerOverrides |
withCommand(String... command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
ContainerOverrides |
withEnvironment(Collection<KeyValuePair> environment)
The environment variables to send to the container.
|
ContainerOverrides |
withEnvironment(KeyValuePair... environment)
The environment variables to send to the container.
|
ContainerOverrides |
withInstanceType(String instanceType)
The instance type to use for a multi-node parallel job.
|
ContainerOverrides |
withMemory(Integer memory)
Deprecated.
|
ContainerOverrides |
withResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of resources to assign to a container.
|
ContainerOverrides |
withResourceRequirements(ResourceRequirement... resourceRequirements)
The type and amount of resources to assign to a container.
|
ContainerOverrides |
withVcpus(Integer vcpus)
Deprecated.
|
@Deprecated public void setVcpus(Integer vcpus)
This parameter is deprecated and not supported for jobs run on Fargate resources, see
resourceRequirement
. For jobs run on EC2 resources, the number of vCPUs to reserve for the
container. This value overrides the value set in the job definition. Jobs run on EC2 resources can specify the
vCPU requirement using resourceRequirement
but the vCPU requirements can't be specified both here
and in resourceRequirement
. This parameter maps to CpuShares
in the Create a container section of the Docker Remote API and the --cpu-shares
option
to docker run. Each vCPU is equivalent to 1,024 CPU
shares. You must specify at least one vCPU.
This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided. Jobs running on
Fargate resources must specify the vCPU requirement for the job using resourceRequirements
.
vcpus
- This parameter is deprecated and not supported for jobs run on Fargate resources, see
resourceRequirement
. For jobs run on EC2 resources, the number of vCPUs to reserve for the
container. This value overrides the value set in the job definition. Jobs run on EC2 resources can specify
the vCPU requirement using resourceRequirement
but the vCPU requirements can't be specified
both here and in resourceRequirement
. This parameter maps to CpuShares
in the Create a container section of the
Docker Remote API and the
--cpu-shares
option to docker
run. Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.
This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided. Jobs
running on Fargate resources must specify the vCPU requirement for the job using
resourceRequirements
.
@Deprecated public Integer getVcpus()
This parameter is deprecated and not supported for jobs run on Fargate resources, see
resourceRequirement
. For jobs run on EC2 resources, the number of vCPUs to reserve for the
container. This value overrides the value set in the job definition. Jobs run on EC2 resources can specify the
vCPU requirement using resourceRequirement
but the vCPU requirements can't be specified both here
and in resourceRequirement
. This parameter maps to CpuShares
in the Create a container section of the Docker Remote API and the --cpu-shares
option
to docker run. Each vCPU is equivalent to 1,024 CPU
shares. You must specify at least one vCPU.
This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided. Jobs running on
Fargate resources must specify the vCPU requirement for the job using resourceRequirements
.
resourceRequirement
. For jobs run on EC2 resources, the number of vCPUs to reserve for the
container. This value overrides the value set in the job definition. Jobs run on EC2 resources can
specify the vCPU requirement using resourceRequirement
but the vCPU requirements can't be
specified both here and in resourceRequirement
. This parameter maps to
CpuShares
in the Create a container section of the
Docker Remote API and the
--cpu-shares
option to docker
run. Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.
This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided. Jobs
running on Fargate resources must specify the vCPU requirement for the job using
resourceRequirements
.
@Deprecated public ContainerOverrides withVcpus(Integer vcpus)
This parameter is deprecated and not supported for jobs run on Fargate resources, see
resourceRequirement
. For jobs run on EC2 resources, the number of vCPUs to reserve for the
container. This value overrides the value set in the job definition. Jobs run on EC2 resources can specify the
vCPU requirement using resourceRequirement
but the vCPU requirements can't be specified both here
and in resourceRequirement
. This parameter maps to CpuShares
in the Create a container section of the Docker Remote API and the --cpu-shares
option
to docker run. Each vCPU is equivalent to 1,024 CPU
shares. You must specify at least one vCPU.
This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided. Jobs running on
Fargate resources must specify the vCPU requirement for the job using resourceRequirements
.
vcpus
- This parameter is deprecated and not supported for jobs run on Fargate resources, see
resourceRequirement
. For jobs run on EC2 resources, the number of vCPUs to reserve for the
container. This value overrides the value set in the job definition. Jobs run on EC2 resources can specify
the vCPU requirement using resourceRequirement
but the vCPU requirements can't be specified
both here and in resourceRequirement
. This parameter maps to CpuShares
in the Create a container section of the
Docker Remote API and the
--cpu-shares
option to docker
run. Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.
This parameter isn't applicable to jobs running on Fargate resources and shouldn't be provided. Jobs
running on Fargate resources must specify the vCPU requirement for the job using
resourceRequirements
.
@Deprecated public void setMemory(Integer memory)
This parameter is deprecated and not supported for jobs run on Fargate resources, use
ResourceRequirement
. For jobs run on EC2 resource, the number of MiB of memory reserved for the job.
This value overrides the value set in the job definition.
memory
- This parameter is deprecated and not supported for jobs run on Fargate resources, use
ResourceRequirement
. For jobs run on EC2 resource, the number of MiB of memory reserved for
the job. This value overrides the value set in the job definition.@Deprecated public Integer getMemory()
This parameter is deprecated and not supported for jobs run on Fargate resources, use
ResourceRequirement
. For jobs run on EC2 resource, the number of MiB of memory reserved for the job.
This value overrides the value set in the job definition.
ResourceRequirement
. For jobs run on EC2 resource, the number of MiB of memory reserved for
the job. This value overrides the value set in the job definition.@Deprecated public ContainerOverrides withMemory(Integer memory)
This parameter is deprecated and not supported for jobs run on Fargate resources, use
ResourceRequirement
. For jobs run on EC2 resource, the number of MiB of memory reserved for the job.
This value overrides the value set in the job definition.
memory
- This parameter is deprecated and not supported for jobs run on Fargate resources, use
ResourceRequirement
. For jobs run on EC2 resource, the number of MiB of memory reserved for
the job. This value overrides the value set in the job definition.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 ContainerOverrides 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 ContainerOverrides 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 void setInstanceType(String instanceType)
The instance type to use for a multi-node parallel job.
This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and shouldn't be provided.
instanceType
- The instance type to use for a multi-node parallel job. This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and shouldn't be provided.
public String getInstanceType()
The instance type to use for a multi-node parallel job.
This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and shouldn't be provided.
This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and shouldn't be provided.
public ContainerOverrides withInstanceType(String instanceType)
The instance type to use for a multi-node parallel job.
This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and shouldn't be provided.
instanceType
- The instance type to use for a multi-node parallel job. This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and shouldn't be provided.
public List<KeyValuePair> getEnvironment()
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 must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
public void setEnvironment(Collection<KeyValuePair> 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 job definition.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
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 job definition.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
public ContainerOverrides withEnvironment(KeyValuePair... 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 job definition.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
NOTE: This method appends the values to the existing list (if any). Use
setEnvironment(java.util.Collection)
or withEnvironment(java.util.Collection)
if you want to
override the existing values.
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 job definition.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
public ContainerOverrides withEnvironment(Collection<KeyValuePair> 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 job definition.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
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 job definition.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the AWS Batch service.
public List<ResourceRequirement> getResourceRequirements()
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The
supported resources include GPU
, MEMORY
, and VCPU
.
GPU
, MEMORY
, and VCPU
.public void setResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The
supported resources include GPU
, MEMORY
, and VCPU
.
resourceRequirements
- The type and amount of resources to assign to a container. This overrides the settings in the job
definition. The supported resources include GPU
, MEMORY
, and VCPU
.public ContainerOverrides withResourceRequirements(ResourceRequirement... resourceRequirements)
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The
supported resources include GPU
, MEMORY
, and VCPU
.
NOTE: This method appends the values to the existing list (if any). Use
setResourceRequirements(java.util.Collection)
or withResourceRequirements(java.util.Collection)
if you want to override the existing values.
resourceRequirements
- The type and amount of resources to assign to a container. This overrides the settings in the job
definition. The supported resources include GPU
, MEMORY
, and VCPU
.public ContainerOverrides withResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of resources to assign to a container. This overrides the settings in the job definition. The
supported resources include GPU
, MEMORY
, and VCPU
.
resourceRequirements
- The type and amount of resources to assign to a container. This overrides the settings in the job
definition. The supported resources include GPU
, MEMORY
, and VCPU
.public String toString()
toString
in class Object
Object.toString()
public ContainerOverrides clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.