Rev 12573 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.amazonservices.mws.orders.model;import javax.xml.bind.annotation.XmlAccessType;import javax.xml.bind.annotation.XmlAccessorType;import javax.xml.bind.annotation.XmlElement;import javax.xml.bind.annotation.XmlRootElement;import javax.xml.bind.annotation.XmlType;/*** <p>Java class for anonymous complex type.** <p>The following schema fragment specifies the expected content contained within this class.** <pre>* <complexType>* <complexContent>* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">* <sequence>* <element name="SellerId" type="{http://www.w3.org/2001/XMLSchema}string"/>* <element name="AmazonOrderId" type="{http://www.w3.org/2001/XMLSchema}string"/>* </sequence>* </restriction>* </complexContent>* </complexType>* </pre>***/@XmlAccessorType(XmlAccessType.FIELD)@XmlType(name = "", propOrder = {"sellerId","amazonOrderId"})@XmlRootElement(name = "ListOrderItemsRequest")public class ListOrderItemsRequest {@XmlElement(name = "SellerId", required = true)protected String sellerId;@XmlElement(name = "AmazonOrderId", required = true)protected String amazonOrderId;/*** Default constructor**/public ListOrderItemsRequest() {super();}/*** Value constructor**/public ListOrderItemsRequest(final String sellerId, final String amazonOrderId) {this.sellerId = sellerId;this.amazonOrderId = amazonOrderId;}/*** Gets the value of the sellerId property.** @return* possible object is* {@link String }**/public String getSellerId() {return sellerId;}/*** Sets the value of the sellerId property.** @param value* allowed object is* {@link String }**/public void setSellerId(String value) {this.sellerId = value;}public boolean isSetSellerId() {return (this.sellerId!= null);}/*** Gets the value of the amazonOrderId property.** @return* possible object is* {@link String }**/public String getAmazonOrderId() {return amazonOrderId;}/*** Sets the value of the amazonOrderId property.** @param value* allowed object is* {@link String }**/public void setAmazonOrderId(String value) {this.amazonOrderId = value;}public boolean isSetAmazonOrderId() {return (this.amazonOrderId!= null);}/*** Sets the value of the SellerId property.** @param value* @return* this instance*/public ListOrderItemsRequest withSellerId(String value) {setSellerId(value);return this;}/*** Sets the value of the AmazonOrderId property.** @param value* @return* this instance*/public ListOrderItemsRequest withAmazonOrderId(String value) {setAmazonOrderId(value);return this;}/**** JSON fragment representation of this object** @return JSON fragment for this object. Name for outer* object expected to be set by calling method. This fragment* returns inner properties representation only**/protected String toJSONFragment() {StringBuffer json = new StringBuffer();boolean first = true;if (isSetSellerId()) {if (!first) json.append(", ");json.append(quoteJSON("SellerId"));json.append(" : ");json.append(quoteJSON(getSellerId()));first = false;}if (isSetAmazonOrderId()) {if (!first) json.append(", ");json.append(quoteJSON("AmazonOrderId"));json.append(" : ");json.append(quoteJSON(getAmazonOrderId()));first = false;}return json.toString();}/**** Quote JSON string*/private String quoteJSON(String string) {if (string == null)return "null";StringBuffer sb = new StringBuffer();sb.append("\"");int length = string.length();for (int i = 0; i < length; ++i) {char c = string.charAt(i);switch (c) {case '"':sb.append("\\\"");break;case '\\':sb.append("\\\\");break;case '/':sb.append("\\/");break;case '\b':sb.append("\\b");break;case '\f':sb.append("\\f");break;case '\n':sb.append("\\n");break;case '\r':sb.append("\\r");break;case '\t':sb.append("\\t");break;default:if (c < ' ') {sb.append("\\u" + String.format("%03x", Integer.valueOf(c)));} else {sb.append(c);}}}sb.append("\"");return sb.toString();}}