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