@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) |
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 indicates the number of vCPUs reserved for the container.It overrides the vcpus
parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the
resourceRequirement
structure in the job definition. To override vCPU requirements that are
specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with type
set to VCPU
and value
set to the new value.
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 is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate
resources. For Fargate resources, you can only use resourceRequirement
. For EC2 resources, you can
use either this parameter or resourceRequirement
but not both.
vcpus
- This parameter indicates the number of vCPUs reserved for the container.It overrides the
vcpus
parameter that's set in the job definition, but doesn't override any vCPU requirement
specified in the resourceRequirement
structure in the job definition. To override vCPU
requirements that are specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with
type
set to VCPU
and value
set to the new value.
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 is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on
Fargate resources. For Fargate resources, you can only use resourceRequirement
. For EC2
resources, you can use either this parameter or resourceRequirement
but not both.
@Deprecated public Integer getVcpus()
This parameter indicates the number of vCPUs reserved for the container.It overrides the vcpus
parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the
resourceRequirement
structure in the job definition. To override vCPU requirements that are
specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with type
set to VCPU
and value
set to the new value.
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 is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate
resources. For Fargate resources, you can only use resourceRequirement
. For EC2 resources, you can
use either this parameter or resourceRequirement
but not both.
vcpus
parameter that's set in the job definition, but doesn't override any vCPU requirement
specified in the resourceRequirement
structure in the job definition. To override vCPU
requirements that are specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with
type
set to VCPU
and value
set to the new value.
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 is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on
Fargate resources. For Fargate resources, you can only use resourceRequirement
. For EC2
resources, you can use either this parameter or resourceRequirement
but not both.
@Deprecated public ContainerOverrides withVcpus(Integer vcpus)
This parameter indicates the number of vCPUs reserved for the container.It overrides the vcpus
parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the
resourceRequirement
structure in the job definition. To override vCPU requirements that are
specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with type
set to VCPU
and value
set to the new value.
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 is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate
resources. For Fargate resources, you can only use resourceRequirement
. For EC2 resources, you can
use either this parameter or resourceRequirement
but not both.
vcpus
- This parameter indicates the number of vCPUs reserved for the container.It overrides the
vcpus
parameter that's set in the job definition, but doesn't override any vCPU requirement
specified in the resourceRequirement
structure in the job definition. To override vCPU
requirements that are specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with
type
set to VCPU
and value
set to the new value.
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 is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on
Fargate resources. For Fargate resources, you can only use resourceRequirement
. For EC2
resources, you can use either this parameter or resourceRequirement
but not both.
@Deprecated public void setMemory(Integer memory)
This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the
memory
parameter set in the job definition, but doesn't override any memory requirement specified in
the ResourceRequirement
structure in the job definition. To override memory requirements that are
specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with type
set to MEMORY
and value
set to the new value.
This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate
resources. For these resources, use resourceRequirement
instead.
memory
- This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the
memory
parameter set in the job definition, but doesn't override any memory requirement
specified in the ResourceRequirement
structure in the job definition. To override memory
requirements that are specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with
type
set to MEMORY
and value
set to the new value.
This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on
Fargate resources. For these resources, use resourceRequirement
instead.
@Deprecated public Integer getMemory()
This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the
memory
parameter set in the job definition, but doesn't override any memory requirement specified in
the ResourceRequirement
structure in the job definition. To override memory requirements that are
specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with type
set to MEMORY
and value
set to the new value.
This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate
resources. For these resources, use resourceRequirement
instead.
memory
parameter set in the job definition, but doesn't override any memory requirement
specified in the ResourceRequirement
structure in the job definition. To override memory
requirements that are specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with
type
set to MEMORY
and value
set to the new value.
This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on
Fargate resources. For these resources, use resourceRequirement
instead.
@Deprecated public ContainerOverrides withMemory(Integer memory)
This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the
memory
parameter set in the job definition, but doesn't override any memory requirement specified in
the ResourceRequirement
structure in the job definition. To override memory requirements that are
specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with type
set to MEMORY
and value
set to the new value.
This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate
resources. For these resources, use resourceRequirement
instead.
memory
- This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the
memory
parameter set in the job definition, but doesn't override any memory requirement
specified in the ResourceRequirement
structure in the job definition. To override memory
requirements that are specified in the ResourceRequirement
structure in the job definition,
ResourceRequirement
must be specified in the SubmitJob
request, with
type
set to MEMORY
and value
set to the new value.
This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on
Fargate resources. For these resources, use resourceRequirement
instead.
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 jobs that run 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 jobs that run 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 jobs that run on Fargate resources, and shouldn't be provided.
This parameter isn't applicable to single-node container jobs or jobs that run 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 jobs that run 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 jobs that run 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 Batch service.
Environment variables must not start with AWS_BATCH
; this naming convention is reserved for
variables that are set by the 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 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 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 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 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 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 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)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.