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 KeyValuePairclone()booleanequals(Object obj)StringgetName()The name of the key value pair.StringgetValue()The value of the key value pair.inthashCode()voidsetName(String name)The name of the key value pair.voidsetValue(String value)The value of the key value pair.StringtoString()Returns a string representation of this object; useful for testing and debugging.KeyValuePairwithName(String name)The name of the key value pair.KeyValuePairwithValue(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public KeyValuePair clone()
-
-