@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyValuePair extends Object implements Serializable, Cloneable, StructuredPojo
A key and value pair object.
Constructor and Description |
---|
KeyValuePair() |
Modifier and Type | Method and 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 |
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; 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.
|
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 KeyValuePair 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 KeyValuePair 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 KeyValuePair clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.