com.amazonaws.a2s.model
Class CartItems

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

public class CartItems
extends java.lang.Object

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="SubTotal" type="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}Price" minOccurs="0"/>
         <element name="CartItem" type="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}CartItem" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
Generated by AWS Code Generator

Thu Jan 10 05:27:59 PST 2008


Field Summary
protected  java.util.List<CartItem> cartItem
           
protected  Price subTotal
           
 
Constructor Summary
CartItems()
           
 
Method Summary
 java.util.List<CartItem> getCartItem()
          Gets the value of the cartItem property.
 Price getSubTotal()
          Gets the value of the subTotal property.
 boolean isSetCartItem()
           
 boolean isSetSubTotal()
           
 void setCartItem(java.util.List<CartItem> cartItem)
          Sets the value of the cartItem property.
 void setSubTotal(Price value)
          Sets the value of the subTotal property.
protected  java.lang.String toXMLFragment()
          XML fragment representation of this object
 void unsetCartItem()
           
 CartItems withCartItem(CartItem... values)
          Sets the value of the CartItem property.
 CartItems withSubTotal(Price value)
          Sets the value of the SubTotal property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subTotal

protected Price subTotal

cartItem

protected java.util.List<CartItem> cartItem
Constructor Detail

CartItems

public CartItems()
Method Detail

getSubTotal

public Price getSubTotal()
Gets the value of the subTotal property.

Returns:
possible object is Price

setSubTotal

public void setSubTotal(Price value)
Sets the value of the subTotal property.

Parameters:
value - allowed object is Price

isSetSubTotal

public boolean isSetSubTotal()

getCartItem

public java.util.List<CartItem> getCartItem()
Gets the value of the cartItem 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 cartItem property.

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

    getCartItem().add(newItem);
 

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


isSetCartItem

public boolean isSetCartItem()

unsetCartItem

public void unsetCartItem()

withSubTotal

public CartItems withSubTotal(Price value)
Sets the value of the SubTotal property.

Parameters:
value -
Returns:
this instance

withCartItem

public CartItems withCartItem(CartItem... values)
Sets the value of the CartItem property.

Parameters:
values -
Returns:
this instance

setCartItem

public void setCartItem(java.util.List<CartItem> cartItem)
Sets the value of the cartItem property.

Parameters:
cartItem - allowed object is CartItem

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