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