com.amazonaws.a2s.model
Class CartModifyResponse

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

public class CartModifyResponse
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 ref="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}OperationRequest" minOccurs="0"/>
         <element ref="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}Cart" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
Generated by AWS Code Generator

Thu Jan 10 05:27:59 PST 2008


Field Summary
protected  java.util.List<Cart> cart
           
protected  OperationRequest operationRequest
           
 
Constructor Summary
CartModifyResponse()
           
 
Method Summary
 java.util.List<Cart> getCart()
          Gets the value of the cart property.
 OperationRequest getOperationRequest()
          Gets the value of the operationRequest property.
 boolean isSetCart()
           
 boolean isSetOperationRequest()
           
 void setCart(java.util.List<Cart> cart)
          Sets the value of the cart property.
 void setOperationRequest(OperationRequest value)
          Sets the value of the operationRequest property.
 java.lang.String toXML()
          XML string representation of this object
 void unsetCart()
           
 CartModifyResponse withCart(Cart... values)
          Sets the value of the Cart property.
 CartModifyResponse withOperationRequest(OperationRequest value)
          Sets the value of the OperationRequest property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operationRequest

protected OperationRequest operationRequest

cart

protected java.util.List<Cart> cart
Constructor Detail

CartModifyResponse

public CartModifyResponse()
Method Detail

getOperationRequest

public OperationRequest getOperationRequest()
Gets the value of the operationRequest property.

Returns:
possible object is OperationRequest

setOperationRequest

public void setOperationRequest(OperationRequest value)
Sets the value of the operationRequest property.

Parameters:
value - allowed object is OperationRequest

isSetOperationRequest

public boolean isSetOperationRequest()

getCart

public java.util.List<Cart> getCart()
Gets the value of the cart 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 cart property.

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

    getCart().add(newItem);
 

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


isSetCart

public boolean isSetCart()

unsetCart

public void unsetCart()

withOperationRequest

public CartModifyResponse withOperationRequest(OperationRequest value)
Sets the value of the OperationRequest property.

Parameters:
value -
Returns:
this instance

withCart

public CartModifyResponse withCart(Cart... values)
Sets the value of the Cart property.

Parameters:
values -
Returns:
this instance

setCart

public void setCart(java.util.List<Cart> cart)
Sets the value of the cart property.

Parameters:
cart - allowed object is Cart

toXML

public java.lang.String toXML()
XML string representation of this object

Returns:
XML String