com.amazon.mws.recommendations.model.ListRecommendationsResult Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright 2009-2014 Amazon Services. All Rights Reserved.
* 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://aws.amazon.com/apache2.0
* This file 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.
*******************************************************************************
* List Recommendations Result
* API Version: 2013-04-01
* Library Version: 2014-10-01
* Generated: Fri Oct 10 17:55:39 GMT 2014
*/
package com.amazon.mws.recommendations.model;
import com.amazonservices.mws.client.AbstractMwsObject;
import com.amazonservices.mws.client.MwsReader;
import com.amazonservices.mws.client.MwsWriter;
import java.util.ArrayList;
import java.util.List;
/**
* ListRecommendationsResult complex type.
*
* XML schema:
*
*
* <complexType name="ListRecommendationsResult">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="InventoryRecommendations" type="{https://mws.amazonservices.com/Recommendations/2013-04-01}InventoryRecommendation" maxOccurs="unbounded"/>
* <element name="SelectionRecommendations" type="{https://mws.amazonservices.com/Recommendations/2013-04-01}SelectionRecommendation" maxOccurs="unbounded"/>
* <element name="PricingRecommendations" type="{https://mws.amazonservices.com/Recommendations/2013-04-01}PricingRecommendation" maxOccurs="unbounded"/>
* <element name="FulfillmentRecommendations" type="{https://mws.amazonservices.com/Recommendations/2013-04-01}FulfillmentRecommendation" maxOccurs="unbounded"/>
* <element name="ListingQualityRecommendations" type="{https://mws.amazonservices.com/Recommendations/2013-04-01}ListingQualityRecommendation" maxOccurs="unbounded"/>
* <element name="GlobalSellingRecommendations" type="{https://mws.amazonservices.com/Recommendations/2013-04-01}GlobalSellingRecommendation" maxOccurs="unbounded"/>
* <element name="AdvertisingRecommendations" type="{https://mws.amazonservices.com/Recommendations/2013-04-01}AdvertisingRecommendation" maxOccurs="unbounded"/>
* <element name="NextToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*/
public class ListRecommendationsResult extends AbstractMwsObject {
private List inventoryRecommendations;
private List selectionRecommendations;
private List pricingRecommendations;
private List fulfillmentRecommendations;
private List listingQualityRecommendations;
private List globalSellingRecommendations;
private List advertisingRecommendations;
private String nextToken;
/**
* Get the value of InventoryRecommendations.
*
* @return The value of InventoryRecommendations.
*/
public List getInventoryRecommendations() {
if (inventoryRecommendations==null) {
inventoryRecommendations = new ArrayList();
}
return inventoryRecommendations;
}
/**
* Set the value of InventoryRecommendations.
*
* @param inventoryRecommendations
* The new value to set.
*/
public void setInventoryRecommendations(List inventoryRecommendations) {
this.inventoryRecommendations = inventoryRecommendations;
}
/**
* Clear InventoryRecommendations.
*/
public void unsetInventoryRecommendations() {
this.inventoryRecommendations = null;
}
/**
* Check to see if InventoryRecommendations is set.
*
* @return true if InventoryRecommendations is set.
*/
public boolean isSetInventoryRecommendations() {
return inventoryRecommendations != null && !inventoryRecommendations.isEmpty();
}
/**
* Add values for InventoryRecommendations, return this.
*
* @param values
* New values to add.
*
* @return This instance.
*/
public ListRecommendationsResult withInventoryRecommendations(InventoryRecommendation... values) {
List list = getInventoryRecommendations();
for (InventoryRecommendation value : values) {
list.add(value);
}
return this;
}
/**
* Get the value of SelectionRecommendations.
*
* @return The value of SelectionRecommendations.
*/
public List getSelectionRecommendations() {
if (selectionRecommendations==null) {
selectionRecommendations = new ArrayList();
}
return selectionRecommendations;
}
/**
* Set the value of SelectionRecommendations.
*
* @param selectionRecommendations
* The new value to set.
*/
public void setSelectionRecommendations(List selectionRecommendations) {
this.selectionRecommendations = selectionRecommendations;
}
/**
* Clear SelectionRecommendations.
*/
public void unsetSelectionRecommendations() {
this.selectionRecommendations = null;
}
/**
* Check to see if SelectionRecommendations is set.
*
* @return true if SelectionRecommendations is set.
*/
public boolean isSetSelectionRecommendations() {
return selectionRecommendations != null && !selectionRecommendations.isEmpty();
}
/**
* Add values for SelectionRecommendations, return this.
*
* @param values
* New values to add.
*
* @return This instance.
*/
public ListRecommendationsResult withSelectionRecommendations(SelectionRecommendation... values) {
List list = getSelectionRecommendations();
for (SelectionRecommendation value : values) {
list.add(value);
}
return this;
}
/**
* Get the value of PricingRecommendations.
*
* @return The value of PricingRecommendations.
*/
public List getPricingRecommendations() {
if (pricingRecommendations==null) {
pricingRecommendations = new ArrayList();
}
return pricingRecommendations;
}
/**
* Set the value of PricingRecommendations.
*
* @param pricingRecommendations
* The new value to set.
*/
public void setPricingRecommendations(List pricingRecommendations) {
this.pricingRecommendations = pricingRecommendations;
}
/**
* Clear PricingRecommendations.
*/
public void unsetPricingRecommendations() {
this.pricingRecommendations = null;
}
/**
* Check to see if PricingRecommendations is set.
*
* @return true if PricingRecommendations is set.
*/
public boolean isSetPricingRecommendations() {
return pricingRecommendations != null && !pricingRecommendations.isEmpty();
}
/**
* Add values for PricingRecommendations, return this.
*
* @param values
* New values to add.
*
* @return This instance.
*/
public ListRecommendationsResult withPricingRecommendations(PricingRecommendation... values) {
List list = getPricingRecommendations();
for (PricingRecommendation value : values) {
list.add(value);
}
return this;
}
/**
* Get the value of FulfillmentRecommendations.
*
* @return The value of FulfillmentRecommendations.
*/
public List getFulfillmentRecommendations() {
if (fulfillmentRecommendations==null) {
fulfillmentRecommendations = new ArrayList();
}
return fulfillmentRecommendations;
}
/**
* Set the value of FulfillmentRecommendations.
*
* @param fulfillmentRecommendations
* The new value to set.
*/
public void setFulfillmentRecommendations(List fulfillmentRecommendations) {
this.fulfillmentRecommendations = fulfillmentRecommendations;
}
/**
* Clear FulfillmentRecommendations.
*/
public void unsetFulfillmentRecommendations() {
this.fulfillmentRecommendations = null;
}
/**
* Check to see if FulfillmentRecommendations is set.
*
* @return true if FulfillmentRecommendations is set.
*/
public boolean isSetFulfillmentRecommendations() {
return fulfillmentRecommendations != null && !fulfillmentRecommendations.isEmpty();
}
/**
* Add values for FulfillmentRecommendations, return this.
*
* @param values
* New values to add.
*
* @return This instance.
*/
public ListRecommendationsResult withFulfillmentRecommendations(FulfillmentRecommendation... values) {
List list = getFulfillmentRecommendations();
for (FulfillmentRecommendation value : values) {
list.add(value);
}
return this;
}
/**
* Get the value of ListingQualityRecommendations.
*
* @return The value of ListingQualityRecommendations.
*/
public List getListingQualityRecommendations() {
if (listingQualityRecommendations==null) {
listingQualityRecommendations = new ArrayList();
}
return listingQualityRecommendations;
}
/**
* Set the value of ListingQualityRecommendations.
*
* @param listingQualityRecommendations
* The new value to set.
*/
public void setListingQualityRecommendations(List listingQualityRecommendations) {
this.listingQualityRecommendations = listingQualityRecommendations;
}
/**
* Clear ListingQualityRecommendations.
*/
public void unsetListingQualityRecommendations() {
this.listingQualityRecommendations = null;
}
/**
* Check to see if ListingQualityRecommendations is set.
*
* @return true if ListingQualityRecommendations is set.
*/
public boolean isSetListingQualityRecommendations() {
return listingQualityRecommendations != null && !listingQualityRecommendations.isEmpty();
}
/**
* Add values for ListingQualityRecommendations, return this.
*
* @param values
* New values to add.
*
* @return This instance.
*/
public ListRecommendationsResult withListingQualityRecommendations(ListingQualityRecommendation... values) {
List list = getListingQualityRecommendations();
for (ListingQualityRecommendation value : values) {
list.add(value);
}
return this;
}
/**
* Get the value of GlobalSellingRecommendations.
*
* @return The value of GlobalSellingRecommendations.
*/
public List getGlobalSellingRecommendations() {
if (globalSellingRecommendations==null) {
globalSellingRecommendations = new ArrayList();
}
return globalSellingRecommendations;
}
/**
* Set the value of GlobalSellingRecommendations.
*
* @param globalSellingRecommendations
* The new value to set.
*/
public void setGlobalSellingRecommendations(List globalSellingRecommendations) {
this.globalSellingRecommendations = globalSellingRecommendations;
}
/**
* Clear GlobalSellingRecommendations.
*/
public void unsetGlobalSellingRecommendations() {
this.globalSellingRecommendations = null;
}
/**
* Check to see if GlobalSellingRecommendations is set.
*
* @return true if GlobalSellingRecommendations is set.
*/
public boolean isSetGlobalSellingRecommendations() {
return globalSellingRecommendations != null && !globalSellingRecommendations.isEmpty();
}
/**
* Add values for GlobalSellingRecommendations, return this.
*
* @param values
* New values to add.
*
* @return This instance.
*/
public ListRecommendationsResult withGlobalSellingRecommendations(GlobalSellingRecommendation... values) {
List list = getGlobalSellingRecommendations();
for (GlobalSellingRecommendation value : values) {
list.add(value);
}
return this;
}
/**
* Get the value of AdvertisingRecommendations.
*
* @return The value of AdvertisingRecommendations.
*/
public List getAdvertisingRecommendations() {
if (advertisingRecommendations==null) {
advertisingRecommendations = new ArrayList();
}
return advertisingRecommendations;
}
/**
* Set the value of AdvertisingRecommendations.
*
* @param advertisingRecommendations
* The new value to set.
*/
public void setAdvertisingRecommendations(List advertisingRecommendations) {
this.advertisingRecommendations = advertisingRecommendations;
}
/**
* Clear AdvertisingRecommendations.
*/
public void unsetAdvertisingRecommendations() {
this.advertisingRecommendations = null;
}
/**
* Check to see if AdvertisingRecommendations is set.
*
* @return true if AdvertisingRecommendations is set.
*/
public boolean isSetAdvertisingRecommendations() {
return advertisingRecommendations != null && !advertisingRecommendations.isEmpty();
}
/**
* Add values for AdvertisingRecommendations, return this.
*
* @param values
* New values to add.
*
* @return This instance.
*/
public ListRecommendationsResult withAdvertisingRecommendations(AdvertisingRecommendation... values) {
List list = getAdvertisingRecommendations();
for (AdvertisingRecommendation value : values) {
list.add(value);
}
return this;
}
/**
* Get the value of NextToken.
*
* @return The value of NextToken.
*/
public String getNextToken() {
return nextToken;
}
/**
* Set the value of NextToken.
*
* @param nextToken
* The new value to set.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
* Check to see if NextToken is set.
*
* @return true if NextToken is set.
*/
public boolean isSetNextToken() {
return nextToken != null;
}
/**
* Set the value of NextToken, return this.
*
* @param nextToken
* The new value to set.
*
* @return This instance.
*/
public ListRecommendationsResult withNextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* Read members from a MwsReader.
*
* @param r
* The reader to read from.
*/
@Override
public void readFragmentFrom(MwsReader r) {
inventoryRecommendations = r.readList("InventoryRecommendations", "member", InventoryRecommendation.class);
selectionRecommendations = r.readList("SelectionRecommendations", "member", SelectionRecommendation.class);
pricingRecommendations = r.readList("PricingRecommendations", "member", PricingRecommendation.class);
fulfillmentRecommendations = r.readList("FulfillmentRecommendations", "member", FulfillmentRecommendation.class);
listingQualityRecommendations = r.readList("ListingQualityRecommendations", "member", ListingQualityRecommendation.class);
globalSellingRecommendations = r.readList("GlobalSellingRecommendations", "member", GlobalSellingRecommendation.class);
advertisingRecommendations = r.readList("AdvertisingRecommendations", "member", AdvertisingRecommendation.class);
nextToken = r.read("NextToken", String.class);
}
/**
* Write members to a MwsWriter.
*
* @param w
* The writer to write to.
*/
@Override
public void writeFragmentTo(MwsWriter w) {
w.writeList("InventoryRecommendations", "member", inventoryRecommendations);
w.writeList("SelectionRecommendations", "member", selectionRecommendations);
w.writeList("PricingRecommendations", "member", pricingRecommendations);
w.writeList("FulfillmentRecommendations", "member", fulfillmentRecommendations);
w.writeList("ListingQualityRecommendations", "member", listingQualityRecommendations);
w.writeList("GlobalSellingRecommendations", "member", globalSellingRecommendations);
w.writeList("AdvertisingRecommendations", "member", advertisingRecommendations);
w.write("NextToken", nextToken);
}
/**
* Write tag, xmlns and members to a MwsWriter.
*
* @param w
* The Writer to write to.
*/
@Override
public void writeTo(MwsWriter w) {
w.write("https://mws.amazonservices.com/Recommendations/2013-04-01", "ListRecommendationsResult",this);
}
/** Value constructor. */
public ListRecommendationsResult(List inventoryRecommendations,List selectionRecommendations,List pricingRecommendations,List fulfillmentRecommendations,List listingQualityRecommendations,List globalSellingRecommendations,List advertisingRecommendations,String nextToken) {
this.inventoryRecommendations = inventoryRecommendations;
this.selectionRecommendations = selectionRecommendations;
this.pricingRecommendations = pricingRecommendations;
this.fulfillmentRecommendations = fulfillmentRecommendations;
this.listingQualityRecommendations = listingQualityRecommendations;
this.globalSellingRecommendations = globalSellingRecommendations;
this.advertisingRecommendations = advertisingRecommendations;
this.nextToken = nextToken;
}
/** Default constructor. */
public ListRecommendationsResult() {
super();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy