@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerOverride extends Object implements Serializable, Cloneable, StructuredPojo
 The overrides that are sent to a container. An empty container override can be passed in. An example of an empty
 container override is {"containerOverrides": [ ] }. If a non-empty container override is specified, the
 name parameter must be included.
 
You can use Secrets Manager or Amazon Web Services Systems Manager Parameter Store to store the sensitive data. For more information, see Retrieve secrets through environment variables in the Amazon ECS Developer Guide.
| Constructor and Description | 
|---|
| ContainerOverride() | 
| Modifier and Type | Method and Description | 
|---|---|
| ContainerOverride | 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. | 
| Integer | getCpu()
 The number of  cpuunits reserved for the container, instead of the default value from the task
 definition. | 
| List<KeyValuePair> | getEnvironment()
 The environment variables to send to the container. | 
| List<EnvironmentFile> | getEnvironmentFiles()
 A list of files containing the environment variables to pass to a container, instead of the value from the
 container definition. | 
| Integer | getMemory()
 The hard limit (in MiB) of memory to present to the container, instead of the default value from the task
 definition. | 
| Integer | getMemoryReservation()
 The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task
 definition. | 
| String | getName()
 The name of the container that receives the override. | 
| List<ResourceRequirement> | getResourceRequirements()
 The type and amount of a resource to assign to a container, instead of the default value from the task
 definition. | 
| 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 | setCpu(Integer cpu)
 The number of  cpuunits reserved for the container, instead of the default value from the task
 definition. | 
| void | setEnvironment(Collection<KeyValuePair> environment)
 The environment variables to send to the container. | 
| void | setEnvironmentFiles(Collection<EnvironmentFile> environmentFiles)
 A list of files containing the environment variables to pass to a container, instead of the value from the
 container definition. | 
| void | setMemory(Integer memory)
 The hard limit (in MiB) of memory to present to the container, instead of the default value from the task
 definition. | 
| void | setMemoryReservation(Integer memoryReservation)
 The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task
 definition. | 
| void | setName(String name)
 The name of the container that receives the override. | 
| void | setResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
 The type and amount of a resource to assign to a container, instead of the default value from the task
 definition. | 
| String | toString()Returns a string representation of this object. | 
| ContainerOverride | withCommand(Collection<String> command)
 The command to send to the container that overrides the default command from the Docker image or the task
 definition. | 
| ContainerOverride | withCommand(String... command)
 The command to send to the container that overrides the default command from the Docker image or the task
 definition. | 
| ContainerOverride | withCpu(Integer cpu)
 The number of  cpuunits reserved for the container, instead of the default value from the task
 definition. | 
| ContainerOverride | withEnvironment(Collection<KeyValuePair> environment)
 The environment variables to send to the container. | 
| ContainerOverride | withEnvironment(KeyValuePair... environment)
 The environment variables to send to the container. | 
| ContainerOverride | withEnvironmentFiles(Collection<EnvironmentFile> environmentFiles)
 A list of files containing the environment variables to pass to a container, instead of the value from the
 container definition. | 
| ContainerOverride | withEnvironmentFiles(EnvironmentFile... environmentFiles)
 A list of files containing the environment variables to pass to a container, instead of the value from the
 container definition. | 
| ContainerOverride | withMemory(Integer memory)
 The hard limit (in MiB) of memory to present to the container, instead of the default value from the task
 definition. | 
| ContainerOverride | withMemoryReservation(Integer memoryReservation)
 The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task
 definition. | 
| ContainerOverride | withName(String name)
 The name of the container that receives the override. | 
| ContainerOverride | withResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
 The type and amount of a resource to assign to a container, instead of the default value from the task
 definition. | 
| ContainerOverride | withResourceRequirements(ResourceRequirement... resourceRequirements)
 The type and amount of a resource to assign to a container, instead of the default value from the task
 definition. | 
public void setName(String name)
The name of the container that receives the override. This parameter is required if any override is specified.
name - The name of the container that receives the override. This parameter is required if any override is
        specified.public String getName()
The name of the container that receives the override. This parameter is required if any override is specified.
public ContainerOverride withName(String name)
The name of the container that receives the override. This parameter is required if any override is specified.
name - The name of the container that receives the override. This parameter is required if any override is
        specified.public List<String> getCommand()
The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.
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. You must also specify a container name.
command - The command to send to the container that overrides the default command from the Docker image or the task
        definition. You must also specify a container name.public ContainerOverride withCommand(String... command)
The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.
 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. You must also specify a container name.public ContainerOverride withCommand(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.
command - The command to send to the container that overrides the default command from the Docker image or the task
        definition. You must also specify a container name.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 task definition. You must also specify a container name.
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 task definition. You must also specify a container name.
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. You must also specify a container name.public ContainerOverride 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 task definition. You must also specify a container name.
 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. You must also specify a container name.public ContainerOverride 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 task definition. You must also specify a container name.
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. You must also specify a container name.public List<EnvironmentFile> getEnvironmentFiles()
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
public void setEnvironmentFiles(Collection<EnvironmentFile> environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
environmentFiles - A list of files containing the environment variables to pass to a container, instead of the value from the
        container definition.public ContainerOverride withEnvironmentFiles(EnvironmentFile... environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
 NOTE: This method appends the values to the existing list (if any). Use
 setEnvironmentFiles(java.util.Collection) or withEnvironmentFiles(java.util.Collection) if you
 want to override the existing values.
 
environmentFiles - A list of files containing the environment variables to pass to a container, instead of the value from the
        container definition.public ContainerOverride withEnvironmentFiles(Collection<EnvironmentFile> environmentFiles)
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
environmentFiles - A list of files containing the environment variables to pass to a container, instead of the value from the
        container definition.public void setCpu(Integer cpu)
 The number of cpu units reserved for the container, instead of the default value from the task
 definition. You must also specify a container name.
 
cpu - The number of cpu units reserved for the container, instead of the default value from the
        task definition. You must also specify a container name.public Integer getCpu()
 The number of cpu units reserved for the container, instead of the default value from the task
 definition. You must also specify a container name.
 
cpu units reserved for the container, instead of the default value from the
         task definition. You must also specify a container name.public ContainerOverride withCpu(Integer cpu)
 The number of cpu units reserved for the container, instead of the default value from the task
 definition. You must also specify a container name.
 
cpu - The number of cpu units reserved for the container, instead of the default value from the
        task definition. You must also specify a container name.public void setMemory(Integer memory)
The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.
memory - The hard limit (in MiB) of memory to present to the container, instead of the default value from the task
        definition. If your container attempts to exceed the memory specified here, the container is killed. You
        must also specify a container name.public Integer getMemory()
The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.
public ContainerOverride withMemory(Integer memory)
The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.
memory - The hard limit (in MiB) of memory to present to the container, instead of the default value from the task
        definition. If your container attempts to exceed the memory specified here, the container is killed. You
        must also specify a container name.public void setMemoryReservation(Integer memoryReservation)
The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.
memoryReservation - The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task
        definition. You must also specify a container name.public Integer getMemoryReservation()
The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.
public ContainerOverride withMemoryReservation(Integer memoryReservation)
The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.
memoryReservation - The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task
        definition. You must also specify a container name.public List<ResourceRequirement> getResourceRequirements()
The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
public void setResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
resourceRequirements - The type and amount of a resource to assign to a container, instead of the default value from the task
        definition. The only supported resource is a GPU.public ContainerOverride withResourceRequirements(ResourceRequirement... resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a 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, instead of the default value from the task
        definition. The only supported resource is a GPU.public ContainerOverride withResourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
resourceRequirements - The type and amount of a resource to assign to a container, instead of the default value from the task
        definition. The only supported resource is a GPU.public String toString()
toString in class ObjectObject.toString()public ContainerOverride clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.