Class Item
- java.lang.Object
-
- com.amazonaws.services.simpledb.model.Item
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Item extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setName
public void setName(String name)
The name of the item.- Parameters:
name
- The name of the item.
-
getName
public String getName()
The name of the item.- Returns:
- The name of the item.
-
withName
public Item withName(String name)
The name of the item.- Parameters:
name
- The name of the item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAlternateNameEncoding
public void setAlternateNameEncoding(String alternateNameEncoding)
- Parameters:
alternateNameEncoding
-
-
getAlternateNameEncoding
public String getAlternateNameEncoding()
- Returns:
-
withAlternateNameEncoding
public Item withAlternateNameEncoding(String alternateNameEncoding)
- Parameters:
alternateNameEncoding
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttributes
public List<Attribute> getAttributes()
A list of attributes.- Returns:
- A list of attributes.
-
setAttributes
public void setAttributes(Collection<Attribute> attributes)
A list of attributes.- Parameters:
attributes
- A list of attributes.
-
withAttributes
public Item withAttributes(Attribute... attributes)
A list of attributes.NOTE: This method appends the values to the existing list (if any). Use
setAttributes(java.util.Collection)
orwithAttributes(java.util.Collection)
if you want to override the existing values.- Parameters:
attributes
- A list of attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAttributes
public Item withAttributes(Collection<Attribute> attributes)
A list of attributes.- Parameters:
attributes
- A list of attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-