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 * <complexType name="CartModifyRequest">
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="Action" minOccurs="0">
45 * <simpleType>
46 * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
47 * <enumeration value="MoveToCart"/>
48 * <enumeration value="SaveForLater"/>
49 * </restriction>
50 * </simpleType>
51 * </element>
52 * <element name="CartItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
53 * <element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
54 * </sequence>
55 * </restriction>
56 * </complexContent>
57 * </complexType>
58 * </element>
59 * </sequence>
60 * </restriction>
61 * </complexContent>
62 * </complexType>
63 * </element>
64 * <element name="ResponseGroup" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
65 * </sequence>
66 * </restriction>
67 * </complexContent>
68 * </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 * <complexType>
227 * <complexContent>
228 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
229 * <sequence>
230 * <element name="Item" maxOccurs="unbounded" minOccurs="0">
231 * <complexType>
232 * <complexContent>
233 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
234 * <sequence>
235 * <element name="Action" minOccurs="0">
236 * <simpleType>
237 * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
238 * <enumeration value="MoveToCart"/>
239 * <enumeration value="SaveForLater"/>
240 * </restriction>
241 * </simpleType>
242 * </element>
243 * <element name="CartItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
244 * <element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
245 * </sequence>
246 * </restriction>
247 * </complexContent>
248 * </complexType>
249 * </element>
250 * </sequence>
251 * </restriction>
252 * </complexContent>
253 * </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 * <complexType>
304 * <complexContent>
305 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
306 * <sequence>
307 * <element name="Action" minOccurs="0">
308 * <simpleType>
309 * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
310 * <enumeration value="MoveToCart"/>
311 * <enumeration value="SaveForLater"/>
312 * </restriction>
313 * </simpleType>
314 * </element>
315 * <element name="CartItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
316 * <element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
317 * </sequence>
318 * </restriction>
319 * </complexContent>
320 * </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 }