@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.
|
Integer |
getMemory()
The number of MiB of memory reserved for the job.
|
Integer |
getVcpus()
The number of vCPUs to reserve for the container.
|
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 |
setMemory(Integer memory)
The number of MiB of memory reserved for the job.
|
void |
setVcpus(Integer vcpus)
The number of vCPUs to reserve for the container.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 |
withMemory(Integer memory)
The number of MiB of memory reserved for the job.
|
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 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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.