public class Item
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
alternateNameEncoding |
private SdkInternalList<Attribute> |
attributes
A list of attributes.
|
private java.lang.String |
name
The name of the item.
|
Constructor and Description |
---|
Item()
Default constructor for Item object.
|
Item(java.lang.String name,
java.util.List<Attribute> attributes)
Constructs a new Item object.
|
Modifier and Type | Method and Description |
---|---|
Item |
clone() |
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.
|
private java.lang.String name
private java.lang.String alternateNameEncoding
private SdkInternalList<Attribute> attributes
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 void setName(java.lang.String name)
name
- The name of the item.public java.lang.String getName()
public Item withName(java.lang.String name)
name
- The name of the item.public void setAlternateNameEncoding(java.lang.String alternateNameEncoding)
alternateNameEncoding
- public java.lang.String getAlternateNameEncoding()
public Item withAlternateNameEncoding(java.lang.String alternateNameEncoding)
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)
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.
attributes
- A list of attributes.public Item withAttributes(java.util.Collection<Attribute> attributes)
attributes
- A list of attributes.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Item clone()
clone
in class java.lang.Object