Package com.amazonaws.services.ecs.model
Class KeyValuePair
- java.lang.Object
-
- com.amazonaws.services.ecs.model.KeyValuePair
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class KeyValuePair extends Object implements Serializable, Cloneable
A key and value pair object.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyValuePair()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyValuePair
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
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; useful for testing and debugging.KeyValuePair
withName(String name)
The name of the key value pair.KeyValuePair
withValue(String value)
The value of the key value pair.
-
-
-
Method Detail
-
setName
public void setName(String name)
The name of the key value pair. For environment variables, this is the name of the environment variable.
- Parameters:
name
- The name of the key value pair. For environment variables, this is the name of the environment variable.
-
getName
public String getName()
The name of the key value pair. For environment variables, this is the name of the environment variable.
- Returns:
- The name of the key value pair. For environment variables, this is the name of the environment variable.
-
withName
public KeyValuePair withName(String name)
The name of the key value pair. For environment variables, this is the name of the environment variable.
- Parameters:
name
- The name of the key value pair. For environment variables, this is the name of the environment variable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
The value of the key value pair. For environment variables, this is the value of the environment variable.
- Parameters:
value
- The value of the key value pair. For environment variables, this is the value of the environment variable.
-
getValue
public String getValue()
The value of the key value pair. For environment variables, this is the value of the environment variable.
- Returns:
- The value of the key value pair. For environment variables, this is the value of the environment variable.
-
withValue
public KeyValuePair withValue(String value)
The value of the key value pair. For environment variables, this is the value of the environment variable.
- Parameters:
value
- The value of the key value pair. For environment variables, this is the value of the environment variable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public KeyValuePair clone()
-
-