/** * JSON string representation of this object * * @return JSON String */ public String toJSON() { StringBuffer json = new StringBuffer(); json.append("{\"GetReportListResponse\" : {"); json.append(quoteJSON("@xmlns")); json.append(" : "); json.append(quoteJSON("http://mws.amazonaws.com/doc/2009-01-01/")); boolean first = true; json.append(", "); if (isSetGetReportListResult()) { if (!first) json.append(", "); json.append("\"GetReportListResult\" : {"); GetReportListResult getReportListResult = getGetReportListResult(); json.append(getReportListResult.toJSONFragment()); json.append("}"); first = false; } if (isSetResponseMetadata()) { if (!first) json.append(", "); json.append("\"ResponseMetadata\" : {"); ResponseMetadata responseMetadata = getResponseMetadata(); json.append(responseMetadata.toJSONFragment()); json.append("}"); first = false; } json.append("}"); json.append("}"); return json.toString(); }
/** * JSON string representation of this object * * @return JSON String */ public String toJSON() { StringBuffer json = new StringBuffer(); json.append("{\"GetServiceStatusResponse\" : {"); json.append(quoteJSON("@xmlns")); json.append(" : "); json.append(quoteJSON("http://mws.amazonservices.com/schema/Products/2011-10-01")); boolean first = true; json.append(", "); if (isSetGetServiceStatusResult()) { if (!first) json.append(", "); json.append("\"GetServiceStatusResult\" : {"); GetServiceStatusResult getServiceStatusResult = getGetServiceStatusResult(); json.append(getServiceStatusResult.toJSONFragment()); json.append("}"); first = false; } if (isSetResponseMetadata()) { if (!first) json.append(", "); json.append("\"ResponseMetadata\" : {"); ResponseMetadata responseMetadata = getResponseMetadata(); json.append(responseMetadata.toJSONFragment()); json.append("}"); first = false; } json.append("}"); json.append("}"); return json.toString(); }
/** * XML string representation of this object * * @return XML String */ public String toXML() { StringBuffer xml = new StringBuffer(); xml.append("<GetReportListResponse xmlns=\"http://mws.amazonaws.com/doc/2009-01-01/\">"); if (isSetGetReportListResult()) { GetReportListResult getReportListResult = getGetReportListResult(); xml.append("<GetReportListResult>"); xml.append(getReportListResult.toXMLFragment()); xml.append("</GetReportListResult>"); } if (isSetResponseMetadata()) { ResponseMetadata responseMetadata = getResponseMetadata(); xml.append("<ResponseMetadata>"); xml.append(responseMetadata.toXMLFragment()); xml.append("</ResponseMetadata>"); } xml.append("</GetReportListResponse>"); return xml.toString(); }
/** * XML string representation of this object * * @return XML String */ public String toXML() { StringBuffer xml = new StringBuffer(); xml.append( "<CancelFeedSubmissionsResponse xmlns=\"http://mws.amazonaws.com/doc/2009-01-01/\">"); if (isSetCancelFeedSubmissionsResult()) { CancelFeedSubmissionsResult cancelFeedSubmissionsResult = getCancelFeedSubmissionsResult(); xml.append("<CancelFeedSubmissionsResult>"); xml.append(cancelFeedSubmissionsResult.toXMLFragment()); xml.append("</CancelFeedSubmissionsResult>"); } if (isSetResponseMetadata()) { ResponseMetadata responseMetadata = getResponseMetadata(); xml.append("<ResponseMetadata>"); xml.append(responseMetadata.toXMLFragment()); xml.append("</ResponseMetadata>"); } xml.append("</CancelFeedSubmissionsResponse>"); return xml.toString(); }
/** * XML string representation of this object * * @return XML String */ public String toXML() { StringBuffer xml = new StringBuffer(); xml.append( "<GetServiceStatusResponse xmlns=\"http://mws.amazonservices.com/schema/Products/2011-10-01\">"); if (isSetGetServiceStatusResult()) { GetServiceStatusResult getServiceStatusResult = getGetServiceStatusResult(); xml.append("<GetServiceStatusResult>"); xml.append(getServiceStatusResult.toXMLFragment()); xml.append("</GetServiceStatusResult>"); } if (isSetResponseMetadata()) { ResponseMetadata responseMetadata = getResponseMetadata(); xml.append("<ResponseMetadata>"); xml.append(responseMetadata.toXMLFragment()); xml.append("</ResponseMetadata>"); } xml.append("</GetServiceStatusResponse>"); return xml.toString(); }