Class ContainerOverride
- All Implemented Interfaces:
Serializable
,Cloneable
The overrides that should be sent to a container.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The command to send to the container that overrides the default command from the Docker image or the task definition.The environment variables to send to the container.getName()
The name of the container that receives the override.int
hashCode()
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
The name of the container that receives the override.toString()
Returns a string representation of this object; useful for testing and debugging.withCommand
(String... command) The command to send to the container that overrides the default command from the Docker image or the task definition.withCommand
(Collection<String> command) The command to send to the container that overrides the default command from the Docker image or the task definition.withEnvironment
(KeyValuePair... environment) The environment variables to send to the container.withEnvironment
(Collection<KeyValuePair> environment) The environment variables to send to the container.The name of the container that receives the override.
-
Constructor Details
-
ContainerOverride
public ContainerOverride()
-
-
Method Details
-
setName
The name of the container that receives the override.
- Parameters:
name
- The name of the container that receives the override.
-
getName
The name of the container that receives the override.
- Returns:
- The name of the container that receives the override.
-
withName
The name of the container that receives the override.
- Parameters:
name
- The name of the container that receives the override.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getCommand
The command to send to the container that overrides the default command from the Docker image or the task definition.
- Returns:
- The command to send to the container that overrides the default command from the Docker image or the task definition.
-
setCommand
The command to send to the container that overrides the default command from the Docker image or the task definition.
- Parameters:
command
- The command to send to the container that overrides the default command from the Docker image or the task definition.
-
withCommand
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)
orwithCommand(java.util.Collection)
if you want to override the existing values.- Parameters:
command
- The command to send to the container that overrides the default command from the Docker image or the task definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCommand
The command to send to the container that overrides the default command from the Docker image or the task definition.
- Parameters:
command
- The command to send to the container that overrides the default command from the Docker image or the task definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Returns:
- 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.
-
setEnvironment
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.
- Parameters:
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.
-
withEnvironment
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)
orwithEnvironment(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEnvironment
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-