com.amazonaws.a2s.model
Class CartAddRequest

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

public class CartAddRequest
extends java.lang.Object

Java class for CartAddRequest complex type.

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

 <complexType name="CartAddRequest">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="CartId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="HMAC" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="MergeCart" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="Items" type="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}CartAddItems" minOccurs="0"/>
         <element name="ResponseGroup" maxOccurs="unbounded" minOccurs="0">
           <simpleType>
             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
               <enumeration value="Request"/>
               <enumeration value="Cart"/>
               <enumeration value="CartSimilarities"/>
               <enumeration value="CartTopSellers"/>
               <enumeration value="CartNewReleases"/>
             </restriction>
           </simpleType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
Generated by AWS Code Generator

Thu Jan 10 05:27:59 PST 2008


Field Summary
protected  java.lang.String cartId
           
protected  java.lang.String hmac
           
protected  CartAddItems items
           
protected  java.lang.String mergeCart
           
protected  java.util.List<java.lang.String> responseGroup
           
 
Constructor Summary
CartAddRequest()
           
 
Method Summary
 java.lang.String getCartId()
          Gets the value of the cartId property.
 java.lang.String getHMAC()
          Gets the value of the hmac property.
 CartAddItems getItems()
          Gets the value of the items property.
 java.lang.String getMergeCart()
          Gets the value of the mergeCart property.
 java.util.List<java.lang.String> getResponseGroup()
          Gets the value of the responseGroup property.
 boolean isSetCartId()
           
 boolean isSetHMAC()
           
 boolean isSetItems()
           
 boolean isSetMergeCart()
           
 boolean isSetResponseGroup()
           
 void setCartId(java.lang.String value)
          Sets the value of the cartId property.
 void setHMAC(java.lang.String value)
          Sets the value of the hmac property.
 void setItems(CartAddItems value)
          Sets the value of the items property.
 void setMergeCart(java.lang.String value)
          Sets the value of the mergeCart property.
 void setResponseGroup(java.util.List<java.lang.String> responseGroup)
          Sets the value of the responseGroup property.
protected  java.lang.String toXMLFragment()
          XML fragment representation of this object
 void unsetResponseGroup()
           
 CartAddRequest withCartId(java.lang.String value)
          Sets the value of the CartId property.
 CartAddRequest withHMAC(java.lang.String value)
          Sets the value of the HMAC property.
 CartAddRequest withItems(CartAddItems value)
          Sets the value of the Items property.
 CartAddRequest withMergeCart(java.lang.String value)
          Sets the value of the MergeCart property.
 CartAddRequest withResponseGroup(java.lang.String... values)
          Sets the value of the ResponseGroup property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cartId

protected java.lang.String cartId

hmac

protected java.lang.String hmac

mergeCart

protected java.lang.String mergeCart

items

protected CartAddItems items

responseGroup

protected java.util.List<java.lang.String> responseGroup
Constructor Detail

CartAddRequest

public CartAddRequest()
Method Detail

getCartId

public java.lang.String getCartId()
Gets the value of the cartId property.

Returns:
possible object is String

setCartId

public void setCartId(java.lang.String value)
Sets the value of the cartId property.

Parameters:
value - allowed object is String

isSetCartId

public boolean isSetCartId()

getHMAC

public java.lang.String getHMAC()
Gets the value of the hmac property.

Returns:
possible object is String

setHMAC

public void setHMAC(java.lang.String value)
Sets the value of the hmac property.

Parameters:
value - allowed object is String

isSetHMAC

public boolean isSetHMAC()

getMergeCart

public java.lang.String getMergeCart()
Gets the value of the mergeCart property.

Returns:
possible object is String

setMergeCart

public void setMergeCart(java.lang.String value)
Sets the value of the mergeCart property.

Parameters:
value - allowed object is String

isSetMergeCart

public boolean isSetMergeCart()

getItems

public CartAddItems getItems()
Gets the value of the items property.

Returns:
possible object is CartAddItems

setItems

public void setItems(CartAddItems value)
Sets the value of the items property.

Parameters:
value - allowed object is CartAddItems

isSetItems

public boolean isSetItems()

getResponseGroup

public java.util.List<java.lang.String> getResponseGroup()
Gets the value of the responseGroup 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 responseGroup property.

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

    getResponseGroup().add(newItem);
 

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


isSetResponseGroup

public boolean isSetResponseGroup()

unsetResponseGroup

public void unsetResponseGroup()

withCartId

public CartAddRequest withCartId(java.lang.String value)
Sets the value of the CartId property.

Parameters:
value -
Returns:
this instance

withHMAC

public CartAddRequest withHMAC(java.lang.String value)
Sets the value of the HMAC property.

Parameters:
value -
Returns:
this instance

withMergeCart

public CartAddRequest withMergeCart(java.lang.String value)
Sets the value of the MergeCart property.

Parameters:
value -
Returns:
this instance

withItems

public CartAddRequest withItems(CartAddItems value)
Sets the value of the Items property.

Parameters:
value -
Returns:
this instance

withResponseGroup

public CartAddRequest withResponseGroup(java.lang.String... values)
Sets the value of the ResponseGroup property.

Parameters:
values -
Returns:
this instance

setResponseGroup

public void setResponseGroup(java.util.List<java.lang.String> responseGroup)
Sets the value of the responseGroup property.

Parameters:
responseGroup - allowed object is String

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