com.amazonaws.a2s.model
Class CartAddItem

java.lang.Object
  extended by com.amazonaws.a2s.model.CartAddItem

public class CartAddItem
extends java.lang.Object

Java class for CartAddItem complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CartAddItem">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="ASIN" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="OfferListingId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/>
         <element name="AssociateTag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="ListItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="MetaData" type="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}MetaData" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
Generated by AWS Code Generator

Thu Jan 10 05:27:59 PST 2008


Field Summary
protected  java.lang.String asin
           
protected  java.lang.String associateTag
           
protected  java.lang.String listItemId
           
protected  java.util.List<MetaData> metaData
           
protected  java.lang.String offerListingId
           
protected  java.math.BigInteger quantity
           
 
Constructor Summary
CartAddItem()
           
 
Method Summary
 java.lang.String getASIN()
          Gets the value of the asin property.
 java.lang.String getAssociateTag()
          Gets the value of the associateTag property.
 java.lang.String getListItemId()
          Gets the value of the listItemId property.
 java.util.List<MetaData> getMetaData()
          Gets the value of the metaData property.
 java.lang.String getOfferListingId()
          Gets the value of the offerListingId property.
 java.math.BigInteger getQuantity()
          Gets the value of the quantity property.
 boolean isSetASIN()
           
 boolean isSetAssociateTag()
           
 boolean isSetListItemId()
           
 boolean isSetMetaData()
           
 boolean isSetOfferListingId()
           
 boolean isSetQuantity()
           
 void setASIN(java.lang.String value)
          Sets the value of the asin property.
 void setAssociateTag(java.lang.String value)
          Sets the value of the associateTag property.
 void setListItemId(java.lang.String value)
          Sets the value of the listItemId property.
 void setMetaData(java.util.List<MetaData> metaData)
          Sets the value of the metaData property.
 void setOfferListingId(java.lang.String value)
          Sets the value of the offerListingId property.
 void setQuantity(java.math.BigInteger value)
          Sets the value of the quantity property.
protected  java.lang.String toXMLFragment()
          XML fragment representation of this object
 void unsetMetaData()
           
 CartAddItem withASIN(java.lang.String value)
          Sets the value of the ASIN property.
 CartAddItem withAssociateTag(java.lang.String value)
          Sets the value of the AssociateTag property.
 CartAddItem withListItemId(java.lang.String value)
          Sets the value of the ListItemId property.
 CartAddItem withMetaData(MetaData... values)
          Sets the value of the MetaData property.
 CartAddItem withOfferListingId(java.lang.String value)
          Sets the value of the OfferListingId property.
 CartAddItem withQuantity(java.math.BigInteger value)
          Sets the value of the Quantity property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

asin

protected java.lang.String asin

offerListingId

protected java.lang.String offerListingId

quantity

protected java.math.BigInteger quantity

associateTag

protected java.lang.String associateTag

listItemId

protected java.lang.String listItemId

metaData

protected java.util.List<MetaData> metaData
Constructor Detail

CartAddItem

public CartAddItem()
Method Detail

getASIN

public java.lang.String getASIN()
Gets the value of the asin property.

Returns:
possible object is String

setASIN

public void setASIN(java.lang.String value)
Sets the value of the asin property.

Parameters:
value - allowed object is String

isSetASIN

public boolean isSetASIN()

getOfferListingId

public java.lang.String getOfferListingId()
Gets the value of the offerListingId property.

Returns:
possible object is String

setOfferListingId

public void setOfferListingId(java.lang.String value)
Sets the value of the offerListingId property.

Parameters:
value - allowed object is String

isSetOfferListingId

public boolean isSetOfferListingId()

getQuantity

public java.math.BigInteger getQuantity()
Gets the value of the quantity property.

Returns:
possible object is BigInteger

setQuantity

public void setQuantity(java.math.BigInteger value)
Sets the value of the quantity property.

Parameters:
value - allowed object is BigInteger

isSetQuantity

public boolean isSetQuantity()

getAssociateTag

public java.lang.String getAssociateTag()
Gets the value of the associateTag property.

Returns:
possible object is String

setAssociateTag

public void setAssociateTag(java.lang.String value)
Sets the value of the associateTag property.

Parameters:
value - allowed object is String

isSetAssociateTag

public boolean isSetAssociateTag()

getListItemId

public java.lang.String getListItemId()
Gets the value of the listItemId property.

Returns:
possible object is String

setListItemId

public void setListItemId(java.lang.String value)
Sets the value of the listItemId property.

Parameters:
value - allowed object is String

isSetListItemId

public boolean isSetListItemId()

getMetaData

public java.util.List<MetaData> getMetaData()
Gets the value of the metaData property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the metaData property.

For example, to add a new item, do as follows:

    getMetaData().add(newItem);
 

Objects of the following type(s) are allowed in the list MetaData


isSetMetaData

public boolean isSetMetaData()

unsetMetaData

public void unsetMetaData()

withASIN

public CartAddItem withASIN(java.lang.String value)
Sets the value of the ASIN property.

Parameters:
value -
Returns:
this instance

withOfferListingId

public CartAddItem withOfferListingId(java.lang.String value)
Sets the value of the OfferListingId property.

Parameters:
value -
Returns:
this instance

withQuantity

public CartAddItem withQuantity(java.math.BigInteger value)
Sets the value of the Quantity property.

Parameters:
value -
Returns:
this instance

withAssociateTag

public CartAddItem withAssociateTag(java.lang.String value)
Sets the value of the AssociateTag property.

Parameters:
value -
Returns:
this instance

withListItemId

public CartAddItem withListItemId(java.lang.String value)
Sets the value of the ListItemId property.

Parameters:
value -
Returns:
this instance

withMetaData

public CartAddItem withMetaData(MetaData... values)
Sets the value of the MetaData property.

Parameters:
values -
Returns:
this instance

setMetaData

public void setMetaData(java.util.List<MetaData> metaData)
Sets the value of the metaData property.

Parameters:
metaData - allowed object is MetaData

toXMLFragment

protected java.lang.String toXMLFragment()
XML fragment representation of this object

Returns:
XML fragment for this object. Name for outer tag expected to be set by calling method. This fragment returns inner properties representation only