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