/// <summary> /// XML Representation for this object /// </summary> /// <returns>XML String</returns> public String ToXML() { StringBuilder xml = new StringBuilder(); xml.Append("<GetReportResponse xmlns=\"http://mws.amazonaws.com/doc/2009-01-01/\">"); if (IsSetGetReportResult()) { GetReportResult getReportResult = this.GetReportResult; xml.Append("<GetReportResult>"); xml.Append(getReportResult.ToXMLFragment()); xml.Append("</GetReportResult>"); } if (IsSetResponseMetadata()) { ResponseMetadata responseMetadata = this.ResponseMetadata; xml.Append("<ResponseMetadata>"); xml.Append(responseMetadata.ToXMLFragment()); xml.Append("</ResponseMetadata>"); } xml.Append("</GetReportResponse>"); return(xml.ToString()); }
/// <summary> /// Sets the GetReportResult property /// </summary> /// <param name="getReportResult">GetReportResult property</param> /// <returns>this instance</returns> public GetReportResponse WithGetReportResult(GetReportResult getReportResult) { this.getReportResultField = getReportResult; return(this); }