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