com.amazonaws.a2s.model
Class CustomerReviews

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

public class CustomerReviews
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 name="AverageRating" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
         <element name="TotalReviews" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
         <element name="TotalReviewPages" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
         <element ref="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}Review" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
Generated by AWS Code Generator

Thu Jan 10 05:27:59 PST 2008


Field Summary
protected  java.math.BigDecimal averageRating
           
protected  java.util.List<Review> review
           
protected  java.math.BigInteger totalReviewPages
           
protected  java.math.BigInteger totalReviews
           
 
Constructor Summary
CustomerReviews()
           
 
Method Summary
 java.math.BigDecimal getAverageRating()
          Gets the value of the averageRating property.
 java.util.List<Review> getReview()
          Gets the value of the review property.
 java.math.BigInteger getTotalReviewPages()
          Gets the value of the totalReviewPages property.
 java.math.BigInteger getTotalReviews()
          Gets the value of the totalReviews property.
 boolean isSetAverageRating()
           
 boolean isSetReview()
           
 boolean isSetTotalReviewPages()
           
 boolean isSetTotalReviews()
           
 void setAverageRating(java.math.BigDecimal value)
          Sets the value of the averageRating property.
 void setReview(java.util.List<Review> review)
          Sets the value of the review property.
 void setTotalReviewPages(java.math.BigInteger value)
          Sets the value of the totalReviewPages property.
 void setTotalReviews(java.math.BigInteger value)
          Sets the value of the totalReviews property.
protected  java.lang.String toXMLFragment()
          XML fragment representation of this object
 void unsetReview()
           
 CustomerReviews withAverageRating(java.math.BigDecimal value)
          Sets the value of the AverageRating property.
 CustomerReviews withReview(Review... values)
          Sets the value of the Review property.
 CustomerReviews withTotalReviewPages(java.math.BigInteger value)
          Sets the value of the TotalReviewPages property.
 CustomerReviews withTotalReviews(java.math.BigInteger value)
          Sets the value of the TotalReviews property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

averageRating

protected java.math.BigDecimal averageRating

totalReviews

protected java.math.BigInteger totalReviews

totalReviewPages

protected java.math.BigInteger totalReviewPages

review

protected java.util.List<Review> review
Constructor Detail

CustomerReviews

public CustomerReviews()
Method Detail

getAverageRating

public java.math.BigDecimal getAverageRating()
Gets the value of the averageRating property.

Returns:
possible object is BigDecimal

setAverageRating

public void setAverageRating(java.math.BigDecimal value)
Sets the value of the averageRating property.

Parameters:
value - allowed object is BigDecimal

isSetAverageRating

public boolean isSetAverageRating()

getTotalReviews

public java.math.BigInteger getTotalReviews()
Gets the value of the totalReviews property.

Returns:
possible object is BigInteger

setTotalReviews

public void setTotalReviews(java.math.BigInteger value)
Sets the value of the totalReviews property.

Parameters:
value - allowed object is BigInteger

isSetTotalReviews

public boolean isSetTotalReviews()

getTotalReviewPages

public java.math.BigInteger getTotalReviewPages()
Gets the value of the totalReviewPages property.

Returns:
possible object is BigInteger

setTotalReviewPages

public void setTotalReviewPages(java.math.BigInteger value)
Sets the value of the totalReviewPages property.

Parameters:
value - allowed object is BigInteger

isSetTotalReviewPages

public boolean isSetTotalReviewPages()

getReview

public java.util.List<Review> getReview()
Gets the value of the review 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 review property.

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

    getReview().add(newItem);
 

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


isSetReview

public boolean isSetReview()

unsetReview

public void unsetReview()

withAverageRating

public CustomerReviews withAverageRating(java.math.BigDecimal value)
Sets the value of the AverageRating property.

Parameters:
value -
Returns:
this instance

withTotalReviews

public CustomerReviews withTotalReviews(java.math.BigInteger value)
Sets the value of the TotalReviews property.

Parameters:
value -
Returns:
this instance

withTotalReviewPages

public CustomerReviews withTotalReviewPages(java.math.BigInteger value)
Sets the value of the TotalReviewPages property.

Parameters:
value -
Returns:
this instance

withReview

public CustomerReviews withReview(Review... values)
Sets the value of the Review property.

Parameters:
values -
Returns:
this instance

setReview

public void setReview(java.util.List<Review> review)
Sets the value of the review property.

Parameters:
review - allowed object is Review

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