@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerOverride extends Object implements Serializable, Cloneable, StructuredPojo
The overrides that should be sent to a container.
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.
|
List<KeyValuePair> |
getEnvironment()
The environment variables to send to the container.
|
String |
getName()
The name of the container that receives the override.
|
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<KeyValuePair> environment)
The environment variables to send to the container.
|
void |
setName(String name)
The name of the container that receives the override.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 |
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 |
withName(String name)
The name of the container that receives the override.
|
public void setName(String name)
The name of the container that receives the override. This parameter is required if a command or environment variable is specified.
name
- The name of the container that receives the override. This parameter is required if a command or
environment variable is specified.public String getName()
The name of the container that receives the override. This parameter is required if a command or environment variable is specified.
public ContainerOverride withName(String name)
The name of the container that receives the override. This parameter is required if a command or environment variable is specified.
name
- The name of the container that receives the override. This parameter is required if a command or
environment variable 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 String toString()
toString
in class Object
Object.toString()
public ContainerOverride 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.