@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EcsEnvironmentVariable extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
EcsEnvironmentVariable() |
Modifier and Type | Method and Description |
---|---|
EcsEnvironmentVariable |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the key-value pair.
|
String |
getValue()
The value of the key-value pair.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the key-value pair.
|
void |
setValue(String value)
The value of the key-value pair.
|
String |
toString()
Returns a string representation of this object.
|
EcsEnvironmentVariable |
withName(String name)
The name of the key-value pair.
|
EcsEnvironmentVariable |
withValue(String value)
The value of the key-value pair.
|
public void setName(String name)
The name of the key-value pair. For environment variables, this is the name of the environment variable.
name
- The name of the key-value pair. For environment variables, this is the name of the environment variable.public String getName()
The name of the key-value pair. For environment variables, this is the name of the environment variable.
public EcsEnvironmentVariable withName(String name)
The name of the key-value pair. For environment variables, this is the name of the environment variable.
name
- The name of the key-value pair. For environment variables, this is the name of the environment variable.public void setValue(String value)
The value of the key-value pair. For environment variables, this is the value of the environment variable.
value
- The value of the key-value pair. For environment variables, this is the value of the environment variable.public String getValue()
The value of the key-value pair. For environment variables, this is the value of the environment variable.
public EcsEnvironmentVariable withValue(String value)
The value of the key-value pair. For environment variables, this is the value of the environment variable.
value
- The value of the key-value pair. For environment variables, this is the value of the environment variable.public String toString()
toString
in class Object
Object.toString()
public EcsEnvironmentVariable clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.