@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TaskContainerOverrides extends Object implements Serializable, Cloneable, StructuredPojo
The overrides that should be sent to a container.
For information about using Batch overrides when you connect event sources to targets, see BatchContainerOverrides.
Constructor and Description |
---|
TaskContainerOverrides() |
Modifier and Type | Method and Description |
---|---|
TaskContainerOverrides |
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 |
getName()
A pointer to the container that you want to override.
|
List<ResourceRequirement> |
getResourceRequirements()
The type and amount of resources to assign to a 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 |
setName(String name)
A pointer to the container that you want to override.
|
void |
setResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of resources to assign to a container.
|
String |
toString()
Returns a string representation of this object.
|
TaskContainerOverrides |
withCommand(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
TaskContainerOverrides |
withCommand(String... command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
TaskContainerOverrides |
withEnvironment(Collection<KeyValuePair> environment)
The environment variables to send to the container.
|
TaskContainerOverrides |
withEnvironment(KeyValuePair... environment)
The environment variables to send to the container.
|
TaskContainerOverrides |
withName(String name)
A pointer to the container that you want to override.
|
TaskContainerOverrides |
withResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of resources to assign to a container.
|
TaskContainerOverrides |
withResourceRequirements(ResourceRequirement... resourceRequirements)
The type and amount of resources to assign to a container.
|
public List<String> getCommand()
The command to send to the container that overrides the default command from the Docker image or the job definition.
This parameter can't contain an empty string.
This parameter can't contain an empty string.
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.
This parameter can't contain an empty string.
command
- The command to send to the container that overrides the default command from the Docker image or the job
definition. This parameter can't contain an empty string.
public TaskContainerOverrides withCommand(String... command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
This parameter can't contain an empty string.
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. This parameter can't contain an empty string.
public TaskContainerOverrides withCommand(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
This parameter can't contain an empty string.
command
- The command to send to the container that overrides the default command from the Docker image or the job
definition. This parameter can't contain an empty string.
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 cannot start with AWS_BATCH
. This naming convention is reserved for variables
that Batch sets.
Environment variables cannot start with AWS_BATCH
. This naming convention is reserved for
variables that Batch sets.
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 cannot start with AWS_BATCH
. This naming convention is reserved for variables
that Batch sets.
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 cannot start with AWS_BATCH
. This naming convention is reserved for
variables that Batch sets.
public TaskContainerOverrides 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 cannot start with AWS_BATCH
. This naming convention is reserved for variables
that Batch sets.
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 cannot start with AWS_BATCH
. This naming convention is reserved for
variables that Batch sets.
public TaskContainerOverrides 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 cannot start with AWS_BATCH
. This naming convention is reserved for variables
that Batch sets.
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 cannot start with AWS_BATCH
. This naming convention is reserved for
variables that Batch sets.
public void setName(String name)
A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.
name
- A pointer to the container that you want to override. The container's name provides a unique identifier
for the container being used.public String getName()
A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.
public TaskContainerOverrides withName(String name)
A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.
name
- A pointer to the container that you want to override. The container's name provides a unique identifier
for the container being used.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 TaskContainerOverrides 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 TaskContainerOverrides 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 TaskContainerOverrides clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.