@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchContainerOverrides extends Object implements Serializable, Cloneable, StructuredPojo
The overrides that are sent to a container.
Constructor and Description |
---|
BatchContainerOverrides() |
Modifier and Type | Method and Description |
---|---|
BatchContainerOverrides |
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 task
definition.
|
List<BatchEnvironmentVariable> |
getEnvironment()
The environment variables to send to the container.
|
String |
getInstanceType()
The instance type to use for a multi-node parallel job.
|
List<BatchResourceRequirement> |
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 task
definition.
|
void |
setEnvironment(Collection<BatchEnvironmentVariable> 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 |
setResourceRequirements(Collection<BatchResourceRequirement> resourceRequirements)
The type and amount of resources to assign to a container.
|
String |
toString()
Returns a string representation of this object.
|
BatchContainerOverrides |
withCommand(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the task
definition.
|
BatchContainerOverrides |
withCommand(String... command)
The command to send to the container that overrides the default command from the Docker image or the task
definition.
|
BatchContainerOverrides |
withEnvironment(BatchEnvironmentVariable... environment)
The environment variables to send to the container.
|
BatchContainerOverrides |
withEnvironment(Collection<BatchEnvironmentVariable> environment)
The environment variables to send to the container.
|
BatchContainerOverrides |
withInstanceType(String instanceType)
The instance type to use for a multi-node parallel job.
|
BatchContainerOverrides |
withResourceRequirements(BatchResourceRequirement... resourceRequirements)
The type and amount of resources to assign to a container.
|
BatchContainerOverrides |
withResourceRequirements(Collection<BatchResourceRequirement> 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 task 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 task definition.
command
- The command to send to the container that overrides the default command from the Docker image or the task
definition.public BatchContainerOverrides withCommand(String... command)
The command to send to the container that overrides the default command from the Docker image or the task 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 task
definition.public BatchContainerOverrides withCommand(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the task definition.
command
- The command to send to the container that overrides the default command from the Docker image or the task
definition.public List<BatchEnvironmentVariable> 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 task definition.
Environment variables cannot start with "Batch
". This naming convention is reserved for variables
that Batch sets.
Environment variables cannot start with "Batch
". This naming convention is reserved for
variables that Batch sets.
public void setEnvironment(Collection<BatchEnvironmentVariable> 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 task definition.
Environment variables cannot start with "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 task definition.
Environment variables cannot start with "Batch
". This naming convention is reserved for
variables that Batch sets.
public BatchContainerOverrides withEnvironment(BatchEnvironmentVariable... 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 task definition.
Environment variables cannot start with "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 task definition.
Environment variables cannot start with "Batch
". This naming convention is reserved for
variables that Batch sets.
public BatchContainerOverrides withEnvironment(Collection<BatchEnvironmentVariable> 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 task definition.
Environment variables cannot start with "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 task definition.
Environment variables cannot start with "Batch
". This naming convention is reserved for
variables that Batch sets.
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 BatchContainerOverrides 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<BatchResourceRequirement> 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<BatchResourceRequirement> 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 BatchContainerOverrides withResourceRequirements(BatchResourceRequirement... 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 BatchContainerOverrides withResourceRequirements(Collection<BatchResourceRequirement> 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 BatchContainerOverrides clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.