public class Item
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Item()
Default constructor for a new Item object.
|
Item(java.lang.String name,
java.util.List<Attribute> attributes)
Constructs a new Item object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlternateNameEncoding()
|
java.util.List<Attribute> |
getAttributes()
A list of attributes.
|
java.lang.String |
getName()
The name of the item.
|
int |
hashCode() |
void |
setAlternateNameEncoding(java.lang.String alternateNameEncoding)
|
void |
setAttributes(java.util.Collection<Attribute> attributes)
A list of attributes.
|
void |
setName(java.lang.String name)
The name of the item.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Item |
withAlternateNameEncoding(java.lang.String alternateNameEncoding)
|
Item |
withAttributes(Attribute... attributes)
A list of attributes.
|
Item |
withAttributes(java.util.Collection<Attribute> attributes)
A list of attributes.
|
Item |
withName(java.lang.String name)
The name of the item.
|
public Item()
public Item(java.lang.String name,
java.util.List<Attribute> attributes)
name - The name of the item.attributes - A list of attributes.public java.lang.String getName()
public void setName(java.lang.String name)
name - The name of the item.public Item withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
name - The name of the item.public java.lang.String getAlternateNameEncoding()
public void setAlternateNameEncoding(java.lang.String alternateNameEncoding)
alternateNameEncoding - public Item withAlternateNameEncoding(java.lang.String alternateNameEncoding)
Returns a reference to this object so that method calls can be chained together.
alternateNameEncoding - public java.util.List<Attribute> getAttributes()
public void setAttributes(java.util.Collection<Attribute> attributes)
attributes - A list of attributes.public Item withAttributes(Attribute... attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - A list of attributes.public Item withAttributes(java.util.Collection<Attribute> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - A list of attributes.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.