/* * Copyright (C) 2011 Toshiaki Maki <makingx@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package am.ik.aws.apa.jaxws; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * <p> * Java class for ItemLookupRequest complex type. * * <p> * The following schema fragment specifies the expected content contained within * this class. * * <pre> * <complexType name="ItemLookupRequest"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{http://webservices.amazon.com/AWSECommerceService/2011-08-01}Condition" minOccurs="0"/> * <element name="IdType" minOccurs="0"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="ASIN"/> * <enumeration value="UPC"/> * <enumeration value="SKU"/> * <enumeration value="EAN"/> * <enumeration value="ISBN"/> * </restriction> * </simpleType> * </element> * <element name="MerchantId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="ItemId" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="ResponseGroup" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="SearchIndex" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="VariationPage" type="{http://webservices.amazon.com/AWSECommerceService/2011-08-01}positiveIntegerOrAll" minOccurs="0"/> * <element name="RelatedItemPage" type="{http://webservices.amazon.com/AWSECommerceService/2011-08-01}positiveIntegerOrAll" minOccurs="0"/> * <element name="RelationshipType" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="IncludeReviewsSummary" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="TruncateReviewsAt" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ItemLookupRequest", propOrder = { "condition", "idType", "merchantId", "itemId", "responseGroup", "searchIndex", "variationPage", "relatedItemPage", "relationshipType", "includeReviewsSummary", "truncateReviewsAt" }) public class ItemLookupRequest { @XmlElement(name = "Condition") protected String condition; @XmlElement(name = "IdType") protected String idType; @XmlElement(name = "MerchantId") protected String merchantId; @XmlElement(name = "ItemId") protected List<String> itemId; @XmlElement(name = "ResponseGroup") protected List<String> responseGroup; @XmlElement(name = "SearchIndex") protected String searchIndex; @XmlElement(name = "VariationPage") protected String variationPage; @XmlElement(name = "RelatedItemPage") protected String relatedItemPage; @XmlElement(name = "RelationshipType") protected List<String> relationshipType; @XmlElement(name = "IncludeReviewsSummary") protected String includeReviewsSummary; @XmlElement(name = "TruncateReviewsAt") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger truncateReviewsAt; /** * Gets the value of the condition property. * * @return possible object is {@link String } * */ public String getCondition() { return condition; } /** * Sets the value of the condition property. * * @param value * allowed object is {@link String } * */ public void setCondition(String value) { this.condition = value; } /** * Gets the value of the idType property. * * @return possible object is {@link String } * */ public String getIdType() { return idType; } /** * Sets the value of the idType property. * * @param value * allowed object is {@link String } * */ public void setIdType(String value) { this.idType = value; } /** * Gets the value of the merchantId property. * * @return possible object is {@link String } * */ public String getMerchantId() { return merchantId; } /** * Sets the value of the merchantId property. * * @param value * allowed object is {@link String } * */ public void setMerchantId(String value) { this.merchantId = value; } /** * Gets the value of the itemId property. * * <p> * 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 * <CODE>set</CODE> method for the itemId property. * * <p> * For example, to add a new item, do as follows: * * <pre> * getItemId().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list {@link String } * * */ public List<String> getItemId() { if (itemId == null) { itemId = new ArrayList<String>(); } return this.itemId; } /** * Gets the value of the responseGroup property. * * <p> * 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 * <CODE>set</CODE> method for the responseGroup property. * * <p> * For example, to add a new item, do as follows: * * <pre> * getResponseGroup().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list {@link String } * * */ public List<String> getResponseGroup() { if (responseGroup == null) { responseGroup = new ArrayList<String>(); } return this.responseGroup; } /** * Gets the value of the searchIndex property. * * @return possible object is {@link String } * */ public String getSearchIndex() { return searchIndex; } /** * Sets the value of the searchIndex property. * * @param value * allowed object is {@link String } * */ public void setSearchIndex(String value) { this.searchIndex = value; } /** * Gets the value of the variationPage property. * * @return possible object is {@link String } * */ public String getVariationPage() { return variationPage; } /** * Sets the value of the variationPage property. * * @param value * allowed object is {@link String } * */ public void setVariationPage(String value) { this.variationPage = value; } /** * Gets the value of the relatedItemPage property. * * @return possible object is {@link String } * */ public String getRelatedItemPage() { return relatedItemPage; } /** * Sets the value of the relatedItemPage property. * * @param value * allowed object is {@link String } * */ public void setRelatedItemPage(String value) { this.relatedItemPage = value; } /** * Gets the value of the relationshipType property. * * <p> * 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 * <CODE>set</CODE> method for the relationshipType property. * * <p> * For example, to add a new item, do as follows: * * <pre> * getRelationshipType().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list {@link String } * * */ public List<String> getRelationshipType() { if (relationshipType == null) { relationshipType = new ArrayList<String>(); } return this.relationshipType; } /** * Gets the value of the includeReviewsSummary property. * * @return possible object is {@link String } * */ public String getIncludeReviewsSummary() { return includeReviewsSummary; } /** * Sets the value of the includeReviewsSummary property. * * @param value * allowed object is {@link String } * */ public void setIncludeReviewsSummary(String value) { this.includeReviewsSummary = value; } /** * Gets the value of the truncateReviewsAt property. * * @return possible object is {@link BigInteger } * */ public BigInteger getTruncateReviewsAt() { return truncateReviewsAt; } /** * Sets the value of the truncateReviewsAt property. * * @param value * allowed object is {@link BigInteger } * */ public void setTruncateReviewsAt(BigInteger value) { this.truncateReviewsAt = value; } }