@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()
The number of MiB of memory reserved for the job.
|
List<ResourceRequirement> |
getResourceRequirements()
The type and amount of a resource to assign to a container.
|
Integer |
getVcpus()
The number of vCPUs to reserve for the container.
|
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)
The number of MiB of memory reserved for the job.
|
void |
setResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of a resource to assign to a container.
|
void |
setVcpus(Integer vcpus)
The number of vCPUs to reserve for the container.
|
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)
The number of MiB of memory reserved for the job.
|
ContainerOverrides |
withResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of a resource to assign to a container.
|
ContainerOverrides |
withResourceRequirements(ResourceRequirement... resourceRequirements)
The type and amount of a resource to assign to a container.
|
ContainerOverrides |
withVcpus(Integer vcpus)
The number of vCPUs to reserve for the container.
|
public void setVcpus(Integer vcpus)
The number of vCPUs to reserve for the container. This value overrides the value set in the job definition.
vcpus
- The number of vCPUs to reserve for the container. This value overrides the value set in the job
definition.public Integer getVcpus()
The number of vCPUs to reserve for the container. This value overrides the value set in the job definition.
public ContainerOverrides withVcpus(Integer vcpus)
The number of vCPUs to reserve for the container. This value overrides the value set in the job definition.
vcpus
- The number of vCPUs to reserve for the container. This value overrides the value set in the job
definition.public void setMemory(Integer memory)
The number of MiB of memory reserved for the job. This value overrides the value set in the job definition.
memory
- The number of MiB of memory reserved for the job. This value overrides the value set in the job
definition.public Integer getMemory()
The number of MiB of memory reserved for the job. This value overrides the value set in the job definition.
public ContainerOverrides withMemory(Integer memory)
The number of MiB of memory reserved for the job. This value overrides the value set in the job definition.
memory
- 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 is not valid for single-node container jobs.
instanceType
- The instance type to use for a multi-node parallel job. This parameter is not valid for single-node
container jobs.public String getInstanceType()
The instance type to use for a multi-node parallel job. This parameter is not valid for single-node container jobs.
public ContainerOverrides withInstanceType(String instanceType)
The instance type to use for a multi-node parallel job. This parameter is not valid for single-node container jobs.
instanceType
- The instance type to use for a multi-node parallel job. This parameter is not valid for single-node
container jobs.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 a resource to assign to a container. This value overrides the value set in the job
definition. Currently, the only supported resource is GPU
.
GPU
.public void setResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of a resource to assign to a container. This value overrides the value set in the job
definition. Currently, the only supported resource is GPU
.
resourceRequirements
- The type and amount of a resource to assign to a container. This value overrides the value set in the job
definition. Currently, the only supported resource is GPU
.public ContainerOverrides withResourceRequirements(ResourceRequirement... resourceRequirements)
The type and amount of a resource to assign to a container. This value overrides the value set in the job
definition. Currently, the only supported resource is GPU
.
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 a resource to assign to a container. This value overrides the value set in the job
definition. Currently, the only supported resource is GPU
.public ContainerOverrides withResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of a resource to assign to a container. This value overrides the value set in the job
definition. Currently, the only supported resource is GPU
.
resourceRequirements
- The type and amount of a resource to assign to a container. This value overrides the value set in the job
definition. Currently, the only supported resource is GPU
.public String toString()
toString
in class Object
Object.toString()
public ContainerOverrides clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.