public class Item extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
Item()
Default constructor for a new Item object.
|
Item(String name,
List<Attribute> attributes)
Constructs a new Item object.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
clone() |
boolean |
equals(Object obj) |
String |
getAlternateNameEncoding()
|
List<Attribute> |
getAttributes()
A list of attributes.
|
String |
getName()
The name of the item.
|
int |
hashCode() |
void |
setAlternateNameEncoding(String alternateNameEncoding)
|
void |
setAttributes(Collection<Attribute> attributes)
A list of attributes.
|
void |
setName(String name)
The name of the item.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Item |
withAlternateNameEncoding(String alternateNameEncoding)
|
Item |
withAttributes(Attribute... attributes)
A list of attributes.
|
Item |
withAttributes(Collection<Attribute> attributes)
A list of attributes.
|
Item |
withName(String name)
The name of the item.
|
public Item()
public String getName()
public void setName(String name)
name - The name of the item.public Item withName(String name)
Returns a reference to this object so that method calls can be chained together.
name - The name of the item.public String getAlternateNameEncoding()
public void setAlternateNameEncoding(String alternateNameEncoding)
alternateNameEncoding - public Item withAlternateNameEncoding(String alternateNameEncoding)
Returns a reference to this object so that method calls can be chained together.
alternateNameEncoding - public List<Attribute> getAttributes()
public void setAttributes(Collection<Attribute> attributes)
attributes - A list of attributes.public Item withAttributes(Attribute... attributes)
NOTE: This method appends the values to the existing list (if
any). Use setAttributes(java.util.Collection) or withAttributes(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
attributes - A list of attributes.public Item withAttributes(Collection<Attribute> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - A list of attributes.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.