com.amazonaws.services.simpledb.model
Class Item

java.lang.Object
  extended by com.amazonaws.services.simpledb.model.Item
All Implemented Interfaces:
java.io.Serializable

public class Item
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Item()
          Default constructor for a new Item object.
Item(java.lang.String name, java.util.List<Attribute> attributes)
          Constructs a new Item object.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Item

public Item()
Default constructor for a new Item object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


Item

public Item(java.lang.String name,
            java.util.List<Attribute> attributes)
Constructs a new Item object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
name - The name of the item.
attributes - A list of attributes.
Method Detail

getName

public java.lang.String getName()
The name of the item.

Returns:
The name of the item.

setName

public void setName(java.lang.String name)
The name of the item.

Parameters:
name - The name of the item.

withName

public Item withName(java.lang.String name)
The name of the item.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The name of the item.
Returns:
A reference to this updated object so that method calls can be chained together.

getAlternateNameEncoding

public java.lang.String getAlternateNameEncoding()

Returns:


setAlternateNameEncoding

public void setAlternateNameEncoding(java.lang.String alternateNameEncoding)

Parameters:
alternateNameEncoding -


withAlternateNameEncoding

public Item withAlternateNameEncoding(java.lang.String alternateNameEncoding)

Returns a reference to this object so that method calls can be chained together.

Parameters:
alternateNameEncoding -

Returns:
A reference to this updated object so that method calls can be chained together.

getAttributes

public java.util.List<Attribute> getAttributes()
A list of attributes.

Returns:
A list of attributes.

setAttributes

public void setAttributes(java.util.Collection<Attribute> attributes)
A list of attributes.

Parameters:
attributes - A list of attributes.

withAttributes

public Item withAttributes(Attribute... attributes)
A list of attributes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributes - A list of attributes.
Returns:
A reference to this updated object so that method calls can be chained together.

withAttributes

public Item withAttributes(java.util.Collection<Attribute> attributes)
A list of attributes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
attributes - A list of attributes.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.