View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.2-b01-fcs 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2007.04.05 at 10:47:13 AM CEST 
6   //
7   
8   
9   package com.amazon.webservices.awsecommerceservice._2007_04_04;
10  
11  import java.math.BigInteger;
12  import java.util.ArrayList;
13  import java.util.List;
14  import javax.xml.bind.annotation.XmlAccessType;
15  import javax.xml.bind.annotation.XmlAccessorType;
16  import javax.xml.bind.annotation.XmlElement;
17  import javax.xml.bind.annotation.XmlSchemaType;
18  import javax.xml.bind.annotation.XmlType;
19  
20  
21  /**
22   * <p>Java class for CartModifyRequest complex type.
23   * 
24   * <p>The following schema fragment specifies the expected content contained within this class.
25   * 
26   * <pre>
27   * &lt;complexType name="CartModifyRequest">
28   *   &lt;complexContent>
29   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
30   *       &lt;sequence>
31   *         &lt;element name="CartId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
32   *         &lt;element name="HMAC" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
33   *         &lt;element name="MergeCart" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
34   *         &lt;element name="Items" minOccurs="0">
35   *           &lt;complexType>
36   *             &lt;complexContent>
37   *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
38   *                 &lt;sequence>
39   *                   &lt;element name="Item" maxOccurs="unbounded" minOccurs="0">
40   *                     &lt;complexType>
41   *                       &lt;complexContent>
42   *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43   *                           &lt;sequence>
44   *                             &lt;element name="Action" minOccurs="0">
45   *                               &lt;simpleType>
46   *                                 &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
47   *                                   &lt;enumeration value="MoveToCart"/>
48   *                                   &lt;enumeration value="SaveForLater"/>
49   *                                 &lt;/restriction>
50   *                               &lt;/simpleType>
51   *                             &lt;/element>
52   *                             &lt;element name="CartItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
53   *                             &lt;element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
54   *                           &lt;/sequence>
55   *                         &lt;/restriction>
56   *                       &lt;/complexContent>
57   *                     &lt;/complexType>
58   *                   &lt;/element>
59   *                 &lt;/sequence>
60   *               &lt;/restriction>
61   *             &lt;/complexContent>
62   *           &lt;/complexType>
63   *         &lt;/element>
64   *         &lt;element name="ResponseGroup" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
65   *       &lt;/sequence>
66   *     &lt;/restriction>
67   *   &lt;/complexContent>
68   * &lt;/complexType>
69   * </pre>
70   * 
71   * 
72   */
73  @XmlAccessorType(XmlAccessType.FIELD)
74  @XmlType(name = "CartModifyRequest", propOrder = {
75      "cartId",
76      "hmac",
77      "mergeCart",
78      "items",
79      "responseGroup"
80  })
81  public class CartModifyRequest {
82  
83      @XmlElement(name = "CartId")
84      protected String cartId;
85      @XmlElement(name = "HMAC")
86      protected String hmac;
87      @XmlElement(name = "MergeCart")
88      protected String mergeCart;
89      @XmlElement(name = "Items")
90      protected CartModifyRequest.Items items;
91      @XmlElement(name = "ResponseGroup")
92      protected List<String> responseGroup;
93  
94      /**
95       * Gets the value of the cartId property.
96       * 
97       * @return
98       *     possible object is
99       *     {@link String }
100      *     
101      */
102     public String getCartId() {
103         return cartId;
104     }
105 
106     /**
107      * Sets the value of the cartId property.
108      * 
109      * @param value
110      *     allowed object is
111      *     {@link String }
112      *     
113      */
114     public void setCartId(String value) {
115         this.cartId = value;
116     }
117 
118     /**
119      * Gets the value of the hmac property.
120      * 
121      * @return
122      *     possible object is
123      *     {@link String }
124      *     
125      */
126     public String getHMAC() {
127         return hmac;
128     }
129 
130     /**
131      * Sets the value of the hmac property.
132      * 
133      * @param value
134      *     allowed object is
135      *     {@link String }
136      *     
137      */
138     public void setHMAC(String value) {
139         this.hmac = value;
140     }
141 
142     /**
143      * Gets the value of the mergeCart property.
144      * 
145      * @return
146      *     possible object is
147      *     {@link String }
148      *     
149      */
150     public String getMergeCart() {
151         return mergeCart;
152     }
153 
154     /**
155      * Sets the value of the mergeCart property.
156      * 
157      * @param value
158      *     allowed object is
159      *     {@link String }
160      *     
161      */
162     public void setMergeCart(String value) {
163         this.mergeCart = value;
164     }
165 
166     /**
167      * Gets the value of the items property.
168      * 
169      * @return
170      *     possible object is
171      *     {@link CartModifyRequest.Items }
172      *     
173      */
174     public CartModifyRequest.Items getItems() {
175         return items;
176     }
177 
178     /**
179      * Sets the value of the items property.
180      * 
181      * @param value
182      *     allowed object is
183      *     {@link CartModifyRequest.Items }
184      *     
185      */
186     public void setItems(CartModifyRequest.Items value) {
187         this.items = value;
188     }
189 
190     /**
191      * Gets the value of the responseGroup property.
192      * 
193      * <p>
194      * This accessor method returns a reference to the live list,
195      * not a snapshot. Therefore any modification you make to the
196      * returned list will be present inside the JAXB object.
197      * This is why there is not a <CODE>set</CODE> method for the responseGroup property.
198      * 
199      * <p>
200      * For example, to add a new item, do as follows:
201      * <pre>
202      *    getResponseGroup().add(newItem);
203      * </pre>
204      * 
205      * 
206      * <p>
207      * Objects of the following type(s) are allowed in the list
208      * {@link String }
209      * 
210      * 
211      */
212     public List<String> getResponseGroup() {
213         if (responseGroup == null) {
214             responseGroup = new ArrayList<String>();
215         }
216         return this.responseGroup;
217     }
218 
219 
220     /**
221      * <p>Java class for anonymous complex type.
222      * 
223      * <p>The following schema fragment specifies the expected content contained within this class.
224      * 
225      * <pre>
226      * &lt;complexType>
227      *   &lt;complexContent>
228      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
229      *       &lt;sequence>
230      *         &lt;element name="Item" maxOccurs="unbounded" minOccurs="0">
231      *           &lt;complexType>
232      *             &lt;complexContent>
233      *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
234      *                 &lt;sequence>
235      *                   &lt;element name="Action" minOccurs="0">
236      *                     &lt;simpleType>
237      *                       &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
238      *                         &lt;enumeration value="MoveToCart"/>
239      *                         &lt;enumeration value="SaveForLater"/>
240      *                       &lt;/restriction>
241      *                     &lt;/simpleType>
242      *                   &lt;/element>
243      *                   &lt;element name="CartItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
244      *                   &lt;element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
245      *                 &lt;/sequence>
246      *               &lt;/restriction>
247      *             &lt;/complexContent>
248      *           &lt;/complexType>
249      *         &lt;/element>
250      *       &lt;/sequence>
251      *     &lt;/restriction>
252      *   &lt;/complexContent>
253      * &lt;/complexType>
254      * </pre>
255      * 
256      * 
257      */
258     @XmlAccessorType(XmlAccessType.FIELD)
259     @XmlType(name = "", propOrder = {
260         "item"
261     })
262     public static class Items {
263 
264         @XmlElement(name = "Item")
265         protected List<CartModifyRequest.Items.Item> item;
266 
267         /**
268          * Gets the value of the item property.
269          * 
270          * <p>
271          * This accessor method returns a reference to the live list,
272          * not a snapshot. Therefore any modification you make to the
273          * returned list will be present inside the JAXB object.
274          * This is why there is not a <CODE>set</CODE> method for the item property.
275          * 
276          * <p>
277          * For example, to add a new item, do as follows:
278          * <pre>
279          *    getItem().add(newItem);
280          * </pre>
281          * 
282          * 
283          * <p>
284          * Objects of the following type(s) are allowed in the list
285          * {@link CartModifyRequest.Items.Item }
286          * 
287          * 
288          */
289         public List<CartModifyRequest.Items.Item> getItem() {
290             if (item == null) {
291                 item = new ArrayList<CartModifyRequest.Items.Item>();
292             }
293             return this.item;
294         }
295 
296 
297         /**
298          * <p>Java class for anonymous complex type.
299          * 
300          * <p>The following schema fragment specifies the expected content contained within this class.
301          * 
302          * <pre>
303          * &lt;complexType>
304          *   &lt;complexContent>
305          *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
306          *       &lt;sequence>
307          *         &lt;element name="Action" minOccurs="0">
308          *           &lt;simpleType>
309          *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
310          *               &lt;enumeration value="MoveToCart"/>
311          *               &lt;enumeration value="SaveForLater"/>
312          *             &lt;/restriction>
313          *           &lt;/simpleType>
314          *         &lt;/element>
315          *         &lt;element name="CartItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
316          *         &lt;element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
317          *       &lt;/sequence>
318          *     &lt;/restriction>
319          *   &lt;/complexContent>
320          * &lt;/complexType>
321          * </pre>
322          * 
323          * 
324          */
325         @XmlAccessorType(XmlAccessType.FIELD)
326         @XmlType(name = "", propOrder = {
327             "action",
328             "cartItemId",
329             "quantity"
330         })
331         public static class Item {
332 
333             @XmlElement(name = "Action")
334             protected String action;
335             @XmlElement(name = "CartItemId")
336             protected String cartItemId;
337             @XmlElement(name = "Quantity")
338             @XmlSchemaType(name = "nonNegativeInteger")
339             protected BigInteger quantity;
340 
341             /**
342              * Gets the value of the action property.
343              * 
344              * @return
345              *     possible object is
346              *     {@link String }
347              *     
348              */
349             public String getAction() {
350                 return action;
351             }
352 
353             /**
354              * Sets the value of the action property.
355              * 
356              * @param value
357              *     allowed object is
358              *     {@link String }
359              *     
360              */
361             public void setAction(String value) {
362                 this.action = value;
363             }
364 
365             /**
366              * Gets the value of the cartItemId property.
367              * 
368              * @return
369              *     possible object is
370              *     {@link String }
371              *     
372              */
373             public String getCartItemId() {
374                 return cartItemId;
375             }
376 
377             /**
378              * Sets the value of the cartItemId property.
379              * 
380              * @param value
381              *     allowed object is
382              *     {@link String }
383              *     
384              */
385             public void setCartItemId(String value) {
386                 this.cartItemId = value;
387             }
388 
389             /**
390              * Gets the value of the quantity property.
391              * 
392              * @return
393              *     possible object is
394              *     {@link BigInteger }
395              *     
396              */
397             public BigInteger getQuantity() {
398                 return quantity;
399             }
400 
401             /**
402              * Sets the value of the quantity property.
403              * 
404              * @param value
405              *     allowed object is
406              *     {@link BigInteger }
407              *     
408              */
409             public void setQuantity(BigInteger value) {
410                 this.quantity = value;
411             }
412 
413         }
414 
415     }
416 
417 }