public class ContainerOverride
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The overrides that should be sent to a container.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
command
The command to send to the container that overrides the default command
from the Docker image or the task definition.
|
private SdkInternalList<KeyValuePair> |
environment
The environment variables to send to the container.
|
private java.lang.String |
name
The name of the container that receives the override.
|
Constructor and Description |
---|
ContainerOverride() |
Modifier and Type | Method and Description |
---|---|
ContainerOverride |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getCommand()
The command to send to the container that overrides the default command
from the Docker image or the task definition.
|
java.util.List<KeyValuePair> |
getEnvironment()
The environment variables to send to the container.
|
java.lang.String |
getName()
The name of the container that receives the override.
|
int |
hashCode() |
void |
setCommand(java.util.Collection<java.lang.String> command)
The command to send to the container that overrides the default command
from the Docker image or the task definition.
|
void |
setEnvironment(java.util.Collection<KeyValuePair> environment)
The environment variables to send to the container.
|
void |
setName(java.lang.String name)
The name of the container that receives the override.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ContainerOverride |
withCommand(java.util.Collection<java.lang.String> command)
The command to send to the container that overrides the default command
from the Docker image or the task definition.
|
ContainerOverride |
withCommand(java.lang.String... command)
The command to send to the container that overrides the default command
from the Docker image or the task definition.
|
ContainerOverride |
withEnvironment(java.util.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(java.lang.String name)
The name of the container that receives the override.
|
private java.lang.String name
The name of the container that receives the override.
private SdkInternalList<java.lang.String> command
The command to send to the container that overrides the default command from the Docker image or the task definition.
private SdkInternalList<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.
public void setName(java.lang.String name)
The name of the container that receives the override.
name
- The name of the container that receives the override.public java.lang.String getName()
The name of the container that receives the override.
public ContainerOverride withName(java.lang.String name)
The name of the container that receives the override.
name
- The name of the container that receives the override.public java.util.List<java.lang.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(java.util.Collection<java.lang.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 ContainerOverride withCommand(java.lang.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 ContainerOverride withCommand(java.util.Collection<java.lang.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 java.util.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.
public void setEnvironment(java.util.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.
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.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.
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.public ContainerOverride withEnvironment(java.util.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.
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.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ContainerOverride clone()
clone
in class java.lang.Object