public class ContainerOverrides extends Object implements Serializable, Cloneable
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 |
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.
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
- 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.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.
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.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
- 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.public String toString()
toString
in class Object
Object.toString()
public ContainerOverrides clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.