public class Attribute extends Object implements Serializable
Constructor and Description |
---|
Attribute()
Default constructor for a new Attribute object.
|
Attribute(String name,
String value)
Constructs a new Attribute object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAlternateNameEncoding() |
String |
getAlternateValueEncoding() |
String |
getName()
The name of the attribute.
|
String |
getValue()
The value of the attribute.
|
int |
hashCode() |
void |
setAlternateNameEncoding(String alternateNameEncoding) |
void |
setAlternateValueEncoding(String alternateValueEncoding) |
void |
setName(String name)
The name of the attribute.
|
void |
setValue(String value)
The value of the attribute.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Attribute |
withAlternateNameEncoding(String alternateNameEncoding)
Returns a reference to this object so that method calls can be chained together.
|
Attribute |
withAlternateValueEncoding(String alternateValueEncoding)
Returns a reference to this object so that method calls can be chained together.
|
Attribute |
withName(String name)
The name of the attribute.
|
Attribute |
withValue(String value)
The value of the attribute.
|
public Attribute()
public String getName()
public void setName(String name)
name
- The name of the attribute.public Attribute withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The name of the attribute.public String getAlternateNameEncoding()
public void setAlternateNameEncoding(String alternateNameEncoding)
alternateNameEncoding
- public Attribute withAlternateNameEncoding(String alternateNameEncoding)
Returns a reference to this object so that method calls can be chained together.
alternateNameEncoding
- public String getValue()
public void setValue(String value)
value
- The value of the attribute.public Attribute withValue(String value)
Returns a reference to this object so that method calls can be chained together.
value
- The value of the attribute.public String getAlternateValueEncoding()
public void setAlternateValueEncoding(String alternateValueEncoding)
alternateValueEncoding
- public Attribute withAlternateValueEncoding(String alternateValueEncoding)
Returns a reference to this object so that method calls can be chained together.
alternateValueEncoding
- public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.