com.amazonaws.a2s.model
Class Offer

java.lang.Object
  extended by com.amazonaws.a2s.model.Offer

public class Offer
extends java.lang.Object

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}Merchant" minOccurs="0"/>
         <element ref="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}Seller" minOccurs="0"/>
         <element ref="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}OfferAttributes" minOccurs="0"/>
         <element ref="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}OfferListing" maxOccurs="unbounded" minOccurs="0"/>
         <element ref="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}LoyaltyPoints" minOccurs="0"/>
         <element ref="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}Promotions" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
Generated by AWS Code Generator

Thu Jan 10 05:27:59 PST 2008


Field Summary
protected  LoyaltyPoints loyaltyPoints
           
protected  Merchant merchant
           
protected  OfferAttributes offerAttributes
           
protected  java.util.List<OfferListing> offerListing
           
protected  Promotions promotions
           
protected  Seller seller
           
 
Constructor Summary
Offer()
           
 
Method Summary
 LoyaltyPoints getLoyaltyPoints()
          Gets the value of the loyaltyPoints property.
 Merchant getMerchant()
          Gets the value of the merchant property.
 OfferAttributes getOfferAttributes()
          Gets the value of the offerAttributes property.
 java.util.List<OfferListing> getOfferListing()
          Gets the value of the offerListing property.
 Promotions getPromotions()
          Gets the value of the promotions property.
 Seller getSeller()
          Gets the value of the seller property.
 boolean isSetLoyaltyPoints()
           
 boolean isSetMerchant()
           
 boolean isSetOfferAttributes()
           
 boolean isSetOfferListing()
           
 boolean isSetPromotions()
           
 boolean isSetSeller()
           
 void setLoyaltyPoints(LoyaltyPoints value)
          Sets the value of the loyaltyPoints property.
 void setMerchant(Merchant value)
          Sets the value of the merchant property.
 void setOfferAttributes(OfferAttributes value)
          Sets the value of the offerAttributes property.
 void setOfferListing(java.util.List<OfferListing> offerListing)
          Sets the value of the offerListing property.
 void setPromotions(Promotions value)
          Sets the value of the promotions property.
 void setSeller(Seller value)
          Sets the value of the seller property.
protected  java.lang.String toXMLFragment()
          XML fragment representation of this object
 void unsetOfferListing()
           
 Offer withLoyaltyPoints(LoyaltyPoints value)
          Sets the value of the LoyaltyPoints property.
 Offer withMerchant(Merchant value)
          Sets the value of the Merchant property.
 Offer withOfferAttributes(OfferAttributes value)
          Sets the value of the OfferAttributes property.
 Offer withOfferListing(OfferListing... values)
          Sets the value of the OfferListing property.
 Offer withPromotions(Promotions value)
          Sets the value of the Promotions property.
 Offer withSeller(Seller value)
          Sets the value of the Seller property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

merchant

protected Merchant merchant

seller

protected Seller seller

offerAttributes

protected OfferAttributes offerAttributes

offerListing

protected java.util.List<OfferListing> offerListing

loyaltyPoints

protected LoyaltyPoints loyaltyPoints

promotions

protected Promotions promotions
Constructor Detail

Offer

public Offer()
Method Detail

getMerchant

public Merchant getMerchant()
Gets the value of the merchant property.

Returns:
possible object is Merchant

setMerchant

public void setMerchant(Merchant value)
Sets the value of the merchant property.

Parameters:
value - allowed object is Merchant

isSetMerchant

public boolean isSetMerchant()

getSeller

public Seller getSeller()
Gets the value of the seller property.

Returns:
possible object is Seller

setSeller

public void setSeller(Seller value)
Sets the value of the seller property.

Parameters:
value - allowed object is Seller

isSetSeller

public boolean isSetSeller()

getOfferAttributes

public OfferAttributes getOfferAttributes()
Gets the value of the offerAttributes property.

Returns:
possible object is OfferAttributes

setOfferAttributes

public void setOfferAttributes(OfferAttributes value)
Sets the value of the offerAttributes property.

Parameters:
value - allowed object is OfferAttributes

isSetOfferAttributes

public boolean isSetOfferAttributes()

getOfferListing

public java.util.List<OfferListing> getOfferListing()
Gets the value of the offerListing property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the offerListing property.

For example, to add a new item, do as follows:

    getOfferListing().add(newItem);
 

Objects of the following type(s) are allowed in the list OfferListing


isSetOfferListing

public boolean isSetOfferListing()

unsetOfferListing

public void unsetOfferListing()

getLoyaltyPoints

public LoyaltyPoints getLoyaltyPoints()
Gets the value of the loyaltyPoints property.

Returns:
possible object is LoyaltyPoints

setLoyaltyPoints

public void setLoyaltyPoints(LoyaltyPoints value)
Sets the value of the loyaltyPoints property.

Parameters:
value - allowed object is LoyaltyPoints

isSetLoyaltyPoints

public boolean isSetLoyaltyPoints()

getPromotions

public Promotions getPromotions()
Gets the value of the promotions property.

Returns:
possible object is Promotions

setPromotions

public void setPromotions(Promotions value)
Sets the value of the promotions property.

Parameters:
value - allowed object is Promotions

isSetPromotions

public boolean isSetPromotions()

withMerchant

public Offer withMerchant(Merchant value)
Sets the value of the Merchant property.

Parameters:
value -
Returns:
this instance

withSeller

public Offer withSeller(Seller value)
Sets the value of the Seller property.

Parameters:
value -
Returns:
this instance

withOfferAttributes

public Offer withOfferAttributes(OfferAttributes value)
Sets the value of the OfferAttributes property.

Parameters:
value -
Returns:
this instance

withOfferListing

public Offer withOfferListing(OfferListing... values)
Sets the value of the OfferListing property.

Parameters:
values -
Returns:
this instance

withLoyaltyPoints

public Offer withLoyaltyPoints(LoyaltyPoints value)
Sets the value of the LoyaltyPoints property.

Parameters:
value -
Returns:
this instance

withPromotions

public Offer withPromotions(Promotions value)
Sets the value of the Promotions property.

Parameters:
value -
Returns:
this instance

setOfferListing

public void setOfferListing(java.util.List<OfferListing> offerListing)
Sets the value of the offerListing property.

Parameters:
offerListing - allowed object is OfferListing

toXMLFragment

protected java.lang.String toXMLFragment()
XML fragment representation of this object

Returns:
XML fragment for this object. Name for outer tag expected to be set by calling method. This fragment returns inner properties representation only