/** * JSON string representation of this object * * @return JSON String */ public String toJSON() { StringBuffer json = new StringBuffer(); json.append("{\"GetReportScheduleListByNextTokenResponse\" : {"); json.append(quoteJSON("@xmlns")); json.append(" : "); json.append(quoteJSON("http://mws.amazonaws.com/doc/2009-01-01/")); boolean first = true; json.append(", "); if (isSetGetReportScheduleListByNextTokenResult()) { if (!first) json.append(", "); json.append("\"GetReportScheduleListByNextTokenResult\" : {"); GetReportScheduleListByNextTokenResult getReportScheduleListByNextTokenResult = getGetReportScheduleListByNextTokenResult(); json.append(getReportScheduleListByNextTokenResult.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( "<GetReportScheduleListByNextTokenResponse xmlns=\"http://mws.amazonaws.com/doc/2009-01-01/\">"); if (isSetGetReportScheduleListByNextTokenResult()) { GetReportScheduleListByNextTokenResult getReportScheduleListByNextTokenResult = getGetReportScheduleListByNextTokenResult(); xml.append("<GetReportScheduleListByNextTokenResult>"); xml.append(getReportScheduleListByNextTokenResult.toXMLFragment()); xml.append("</GetReportScheduleListByNextTokenResult>"); } if (isSetResponseMetadata()) { ResponseMetadata responseMetadata = getResponseMetadata(); xml.append("<ResponseMetadata>"); xml.append(responseMetadata.toXMLFragment()); xml.append("</ResponseMetadata>"); } xml.append("</GetReportScheduleListByNextTokenResponse>"); return xml.toString(); }