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.XmlRootElement;
18  import javax.xml.bind.annotation.XmlSchemaType;
19  import javax.xml.bind.annotation.XmlType;
20  
21  
22  /**
23   * <p>Java class for anonymous complex type.
24   * 
25   * <p>The following schema fragment specifies the expected content contained within this class.
26   * 
27   * <pre>
28   * &lt;complexType>
29   *   &lt;complexContent>
30   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31   *       &lt;sequence>
32   *         &lt;element name="OfferListingId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
33   *         &lt;element name="ExchangeId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
34   *         &lt;element name="Price" type="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}Price" minOccurs="0"/>
35   *         &lt;element name="SalePrice" type="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}Price" minOccurs="0"/>
36   *         &lt;element name="AmountSaved" type="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}Price" minOccurs="0"/>
37   *         &lt;element name="PercentageSaved" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
38   *         &lt;element name="Availability" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
39   *         &lt;element name="AvailabilityAttributes" 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="AvailabilityType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
45   *                   &lt;element name="IsPreorder" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
46   *                   &lt;element name="MinimumHours" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
47   *                   &lt;element name="MaximumHours" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
48   *                 &lt;/sequence>
49   *               &lt;/restriction>
50   *             &lt;/complexContent>
51   *           &lt;/complexType>
52   *         &lt;/element>
53   *         &lt;element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
54   *         &lt;element name="ISPUStoreAddress" type="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}Address" minOccurs="0"/>
55   *         &lt;element name="ISPUStoreHours" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
56   *         &lt;element name="IsEligibleForSuperSaverShipping" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
57   *         &lt;element name="SalesRestriction" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
58   *         &lt;element name="ShippingCharge" maxOccurs="unbounded" minOccurs="0">
59   *           &lt;complexType>
60   *             &lt;complexContent>
61   *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
62   *                 &lt;sequence>
63   *                   &lt;element name="ShippingType" type="{http://www.w3.org/2001/XMLSchema}string"/>
64   *                   &lt;element name="ShippingPrice" type="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}Price"/>
65   *                 &lt;/sequence>
66   *               &lt;/restriction>
67   *             &lt;/complexContent>
68   *           &lt;/complexType>
69   *         &lt;/element>
70   *       &lt;/sequence>
71   *     &lt;/restriction>
72   *   &lt;/complexContent>
73   * &lt;/complexType>
74   * </pre>
75   * 
76   * 
77   */
78  @XmlAccessorType(XmlAccessType.FIELD)
79  @XmlType(name = "", propOrder = {
80      "offerListingId",
81      "exchangeId",
82      "price",
83      "salePrice",
84      "amountSaved",
85      "percentageSaved",
86      "availability",
87      "availabilityAttributes",
88      "quantity",
89      "ispuStoreAddress",
90      "ispuStoreHours",
91      "isEligibleForSuperSaverShipping",
92      "salesRestriction",
93      "shippingCharge"
94  })
95  @XmlRootElement(name = "OfferListing")
96  public class OfferListing {
97  
98      @XmlElement(name = "OfferListingId")
99      protected String offerListingId;
100     @XmlElement(name = "ExchangeId")
101     protected String exchangeId;
102     @XmlElement(name = "Price")
103     protected Price price;
104     @XmlElement(name = "SalePrice")
105     protected Price salePrice;
106     @XmlElement(name = "AmountSaved")
107     protected Price amountSaved;
108     @XmlElement(name = "PercentageSaved")
109     @XmlSchemaType(name = "nonNegativeInteger")
110     protected BigInteger percentageSaved;
111     @XmlElement(name = "Availability")
112     protected String availability;
113     @XmlElement(name = "AvailabilityAttributes")
114     protected OfferListing.AvailabilityAttributes availabilityAttributes;
115     @XmlElement(name = "Quantity")
116     protected BigInteger quantity;
117     @XmlElement(name = "ISPUStoreAddress")
118     protected Address ispuStoreAddress;
119     @XmlElement(name = "ISPUStoreHours")
120     protected String ispuStoreHours;
121     @XmlElement(name = "IsEligibleForSuperSaverShipping")
122     protected Boolean isEligibleForSuperSaverShipping;
123     @XmlElement(name = "SalesRestriction")
124     protected String salesRestriction;
125     @XmlElement(name = "ShippingCharge")
126     protected List<OfferListing.ShippingCharge> shippingCharge;
127 
128     /**
129      * Gets the value of the offerListingId property.
130      * 
131      * @return
132      *     possible object is
133      *     {@link String }
134      *     
135      */
136     public String getOfferListingId() {
137         return offerListingId;
138     }
139 
140     /**
141      * Sets the value of the offerListingId property.
142      * 
143      * @param value
144      *     allowed object is
145      *     {@link String }
146      *     
147      */
148     public void setOfferListingId(String value) {
149         this.offerListingId = value;
150     }
151 
152     /**
153      * Gets the value of the exchangeId property.
154      * 
155      * @return
156      *     possible object is
157      *     {@link String }
158      *     
159      */
160     public String getExchangeId() {
161         return exchangeId;
162     }
163 
164     /**
165      * Sets the value of the exchangeId property.
166      * 
167      * @param value
168      *     allowed object is
169      *     {@link String }
170      *     
171      */
172     public void setExchangeId(String value) {
173         this.exchangeId = value;
174     }
175 
176     /**
177      * Gets the value of the price property.
178      * 
179      * @return
180      *     possible object is
181      *     {@link Price }
182      *     
183      */
184     public Price getPrice() {
185         return price;
186     }
187 
188     /**
189      * Sets the value of the price property.
190      * 
191      * @param value
192      *     allowed object is
193      *     {@link Price }
194      *     
195      */
196     public void setPrice(Price value) {
197         this.price = value;
198     }
199 
200     /**
201      * Gets the value of the salePrice property.
202      * 
203      * @return
204      *     possible object is
205      *     {@link Price }
206      *     
207      */
208     public Price getSalePrice() {
209         return salePrice;
210     }
211 
212     /**
213      * Sets the value of the salePrice property.
214      * 
215      * @param value
216      *     allowed object is
217      *     {@link Price }
218      *     
219      */
220     public void setSalePrice(Price value) {
221         this.salePrice = value;
222     }
223 
224     /**
225      * Gets the value of the amountSaved property.
226      * 
227      * @return
228      *     possible object is
229      *     {@link Price }
230      *     
231      */
232     public Price getAmountSaved() {
233         return amountSaved;
234     }
235 
236     /**
237      * Sets the value of the amountSaved property.
238      * 
239      * @param value
240      *     allowed object is
241      *     {@link Price }
242      *     
243      */
244     public void setAmountSaved(Price value) {
245         this.amountSaved = value;
246     }
247 
248     /**
249      * Gets the value of the percentageSaved property.
250      * 
251      * @return
252      *     possible object is
253      *     {@link BigInteger }
254      *     
255      */
256     public BigInteger getPercentageSaved() {
257         return percentageSaved;
258     }
259 
260     /**
261      * Sets the value of the percentageSaved property.
262      * 
263      * @param value
264      *     allowed object is
265      *     {@link BigInteger }
266      *     
267      */
268     public void setPercentageSaved(BigInteger value) {
269         this.percentageSaved = value;
270     }
271 
272     /**
273      * Gets the value of the availability property.
274      * 
275      * @return
276      *     possible object is
277      *     {@link String }
278      *     
279      */
280     public String getAvailability() {
281         return availability;
282     }
283 
284     /**
285      * Sets the value of the availability property.
286      * 
287      * @param value
288      *     allowed object is
289      *     {@link String }
290      *     
291      */
292     public void setAvailability(String value) {
293         this.availability = value;
294     }
295 
296     /**
297      * Gets the value of the availabilityAttributes property.
298      * 
299      * @return
300      *     possible object is
301      *     {@link OfferListing.AvailabilityAttributes }
302      *     
303      */
304     public OfferListing.AvailabilityAttributes getAvailabilityAttributes() {
305         return availabilityAttributes;
306     }
307 
308     /**
309      * Sets the value of the availabilityAttributes property.
310      * 
311      * @param value
312      *     allowed object is
313      *     {@link OfferListing.AvailabilityAttributes }
314      *     
315      */
316     public void setAvailabilityAttributes(OfferListing.AvailabilityAttributes value) {
317         this.availabilityAttributes = value;
318     }
319 
320     /**
321      * Gets the value of the quantity property.
322      * 
323      * @return
324      *     possible object is
325      *     {@link BigInteger }
326      *     
327      */
328     public BigInteger getQuantity() {
329         return quantity;
330     }
331 
332     /**
333      * Sets the value of the quantity property.
334      * 
335      * @param value
336      *     allowed object is
337      *     {@link BigInteger }
338      *     
339      */
340     public void setQuantity(BigInteger value) {
341         this.quantity = value;
342     }
343 
344     /**
345      * Gets the value of the ispuStoreAddress property.
346      * 
347      * @return
348      *     possible object is
349      *     {@link Address }
350      *     
351      */
352     public Address getISPUStoreAddress() {
353         return ispuStoreAddress;
354     }
355 
356     /**
357      * Sets the value of the ispuStoreAddress property.
358      * 
359      * @param value
360      *     allowed object is
361      *     {@link Address }
362      *     
363      */
364     public void setISPUStoreAddress(Address value) {
365         this.ispuStoreAddress = value;
366     }
367 
368     /**
369      * Gets the value of the ispuStoreHours property.
370      * 
371      * @return
372      *     possible object is
373      *     {@link String }
374      *     
375      */
376     public String getISPUStoreHours() {
377         return ispuStoreHours;
378     }
379 
380     /**
381      * Sets the value of the ispuStoreHours property.
382      * 
383      * @param value
384      *     allowed object is
385      *     {@link String }
386      *     
387      */
388     public void setISPUStoreHours(String value) {
389         this.ispuStoreHours = value;
390     }
391 
392     /**
393      * Gets the value of the isEligibleForSuperSaverShipping property.
394      * 
395      * @return
396      *     possible object is
397      *     {@link Boolean }
398      *     
399      */
400     public Boolean isIsEligibleForSuperSaverShipping() {
401         return isEligibleForSuperSaverShipping;
402     }
403 
404     /**
405      * Sets the value of the isEligibleForSuperSaverShipping property.
406      * 
407      * @param value
408      *     allowed object is
409      *     {@link Boolean }
410      *     
411      */
412     public void setIsEligibleForSuperSaverShipping(Boolean value) {
413         this.isEligibleForSuperSaverShipping = value;
414     }
415 
416     /**
417      * Gets the value of the salesRestriction property.
418      * 
419      * @return
420      *     possible object is
421      *     {@link String }
422      *     
423      */
424     public String getSalesRestriction() {
425         return salesRestriction;
426     }
427 
428     /**
429      * Sets the value of the salesRestriction property.
430      * 
431      * @param value
432      *     allowed object is
433      *     {@link String }
434      *     
435      */
436     public void setSalesRestriction(String value) {
437         this.salesRestriction = value;
438     }
439 
440     /**
441      * Gets the value of the shippingCharge property.
442      * 
443      * <p>
444      * This accessor method returns a reference to the live list,
445      * not a snapshot. Therefore any modification you make to the
446      * returned list will be present inside the JAXB object.
447      * This is why there is not a <CODE>set</CODE> method for the shippingCharge property.
448      * 
449      * <p>
450      * For example, to add a new item, do as follows:
451      * <pre>
452      *    getShippingCharge().add(newItem);
453      * </pre>
454      * 
455      * 
456      * <p>
457      * Objects of the following type(s) are allowed in the list
458      * {@link OfferListing.ShippingCharge }
459      * 
460      * 
461      */
462     public List<OfferListing.ShippingCharge> getShippingCharge() {
463         if (shippingCharge == null) {
464             shippingCharge = new ArrayList<OfferListing.ShippingCharge>();
465         }
466         return this.shippingCharge;
467     }
468 
469 
470     /**
471      * <p>Java class for anonymous complex type.
472      * 
473      * <p>The following schema fragment specifies the expected content contained within this class.
474      * 
475      * <pre>
476      * &lt;complexType>
477      *   &lt;complexContent>
478      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
479      *       &lt;sequence>
480      *         &lt;element name="AvailabilityType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
481      *         &lt;element name="IsPreorder" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
482      *         &lt;element name="MinimumHours" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
483      *         &lt;element name="MaximumHours" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
484      *       &lt;/sequence>
485      *     &lt;/restriction>
486      *   &lt;/complexContent>
487      * &lt;/complexType>
488      * </pre>
489      * 
490      * 
491      */
492     @XmlAccessorType(XmlAccessType.FIELD)
493     @XmlType(name = "", propOrder = {
494         "availabilityType",
495         "isPreorder",
496         "minimumHours",
497         "maximumHours"
498     })
499     public static class AvailabilityAttributes {
500 
501         @XmlElement(name = "AvailabilityType")
502         protected String availabilityType;
503         @XmlElement(name = "IsPreorder")
504         protected Boolean isPreorder;
505         @XmlElement(name = "MinimumHours")
506         protected BigInteger minimumHours;
507         @XmlElement(name = "MaximumHours")
508         protected BigInteger maximumHours;
509 
510         /**
511          * Gets the value of the availabilityType property.
512          * 
513          * @return
514          *     possible object is
515          *     {@link String }
516          *     
517          */
518         public String getAvailabilityType() {
519             return availabilityType;
520         }
521 
522         /**
523          * Sets the value of the availabilityType property.
524          * 
525          * @param value
526          *     allowed object is
527          *     {@link String }
528          *     
529          */
530         public void setAvailabilityType(String value) {
531             this.availabilityType = value;
532         }
533 
534         /**
535          * Gets the value of the isPreorder property.
536          * 
537          * @return
538          *     possible object is
539          *     {@link Boolean }
540          *     
541          */
542         public Boolean isIsPreorder() {
543             return isPreorder;
544         }
545 
546         /**
547          * Sets the value of the isPreorder property.
548          * 
549          * @param value
550          *     allowed object is
551          *     {@link Boolean }
552          *     
553          */
554         public void setIsPreorder(Boolean value) {
555             this.isPreorder = value;
556         }
557 
558         /**
559          * Gets the value of the minimumHours property.
560          * 
561          * @return
562          *     possible object is
563          *     {@link BigInteger }
564          *     
565          */
566         public BigInteger getMinimumHours() {
567             return minimumHours;
568         }
569 
570         /**
571          * Sets the value of the minimumHours property.
572          * 
573          * @param value
574          *     allowed object is
575          *     {@link BigInteger }
576          *     
577          */
578         public void setMinimumHours(BigInteger value) {
579             this.minimumHours = value;
580         }
581 
582         /**
583          * Gets the value of the maximumHours property.
584          * 
585          * @return
586          *     possible object is
587          *     {@link BigInteger }
588          *     
589          */
590         public BigInteger getMaximumHours() {
591             return maximumHours;
592         }
593 
594         /**
595          * Sets the value of the maximumHours property.
596          * 
597          * @param value
598          *     allowed object is
599          *     {@link BigInteger }
600          *     
601          */
602         public void setMaximumHours(BigInteger value) {
603             this.maximumHours = value;
604         }
605 
606     }
607 
608 
609     /**
610      * <p>Java class for anonymous complex type.
611      * 
612      * <p>The following schema fragment specifies the expected content contained within this class.
613      * 
614      * <pre>
615      * &lt;complexType>
616      *   &lt;complexContent>
617      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
618      *       &lt;sequence>
619      *         &lt;element name="ShippingType" type="{http://www.w3.org/2001/XMLSchema}string"/>
620      *         &lt;element name="ShippingPrice" type="{http://webservices.amazon.com/AWSECommerceService/2007-04-04}Price"/>
621      *       &lt;/sequence>
622      *     &lt;/restriction>
623      *   &lt;/complexContent>
624      * &lt;/complexType>
625      * </pre>
626      * 
627      * 
628      */
629     @XmlAccessorType(XmlAccessType.FIELD)
630     @XmlType(name = "", propOrder = {
631         "shippingType",
632         "shippingPrice"
633     })
634     public static class ShippingCharge {
635 
636         @XmlElement(name = "ShippingType", required = true)
637         protected String shippingType;
638         @XmlElement(name = "ShippingPrice", required = true)
639         protected Price shippingPrice;
640 
641         /**
642          * Gets the value of the shippingType property.
643          * 
644          * @return
645          *     possible object is
646          *     {@link String }
647          *     
648          */
649         public String getShippingType() {
650             return shippingType;
651         }
652 
653         /**
654          * Sets the value of the shippingType property.
655          * 
656          * @param value
657          *     allowed object is
658          *     {@link String }
659          *     
660          */
661         public void setShippingType(String value) {
662             this.shippingType = value;
663         }
664 
665         /**
666          * Gets the value of the shippingPrice property.
667          * 
668          * @return
669          *     possible object is
670          *     {@link Price }
671          *     
672          */
673         public Price getShippingPrice() {
674             return shippingPrice;
675         }
676 
677         /**
678          * Sets the value of the shippingPrice property.
679          * 
680          * @param value
681          *     allowed object is
682          *     {@link Price }
683          *     
684          */
685         public void setShippingPrice(Price value) {
686             this.shippingPrice = value;
687         }
688 
689     }
690 
691 }