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 * <complexType name="CartCreateRequest"> 28 * <complexContent> 29 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 30 * <sequence> 31 * <element name="MergeCart" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 32 * <element name="Items" minOccurs="0"> 33 * <complexType> 34 * <complexContent> 35 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 36 * <sequence> 37 * <element name="Item" maxOccurs="unbounded" minOccurs="0"> 38 * <complexType> 39 * <complexContent> 40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 41 * <sequence> 42 * <element name="ASIN" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 43 * <element name="OfferListingId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 44 * <element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/> 45 * <element name="AssociateTag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 46 * <element name="ListItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 47 * </sequence> 48 * </restriction> 49 * </complexContent> 50 * </complexType> 51 * </element> 52 * </sequence> 53 * </restriction> 54 * </complexContent> 55 * </complexType> 56 * </element> 57 * <element name="ResponseGroup" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 58 * </sequence> 59 * </restriction> 60 * </complexContent> 61 * </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 * <complexType> 166 * <complexContent> 167 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 168 * <sequence> 169 * <element name="Item" maxOccurs="unbounded" minOccurs="0"> 170 * <complexType> 171 * <complexContent> 172 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 173 * <sequence> 174 * <element name="ASIN" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 175 * <element name="OfferListingId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 176 * <element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/> 177 * <element name="AssociateTag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 178 * <element name="ListItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 179 * </sequence> 180 * </restriction> 181 * </complexContent> 182 * </complexType> 183 * </element> 184 * </sequence> 185 * </restriction> 186 * </complexContent> 187 * </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 * <complexType> 238 * <complexContent> 239 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 240 * <sequence> 241 * <element name="ASIN" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 242 * <element name="OfferListingId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 243 * <element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/> 244 * <element name="AssociateTag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 245 * <element name="ListItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 246 * </sequence> 247 * </restriction> 248 * </complexContent> 249 * </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 }