Example #1
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

        public String ToXML()
        {
            StringBuilder xml = new StringBuilder();

            xml.Append("<CancelReportRequestsResponse xmlns=\"http://mws.amazonaws.com/doc/2009-01-01/\">");
            if (IsSetCancelReportRequestsResult())
            {
                CancelReportRequestsResult cancelReportRequestsResult = this.CancelReportRequestsResult;
                xml.Append("<CancelReportRequestsResult>");
                xml.Append(cancelReportRequestsResult.ToXMLFragment());
                xml.Append("</CancelReportRequestsResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</CancelReportRequestsResponse>");
            return(xml.ToString());
        }
Example #2
0
 /// <summary>
 /// Sets the CancelReportRequestsResult property
 /// </summary>
 /// <param name="cancelReportRequestsResult">CancelReportRequestsResult property</param>
 /// <returns>this instance</returns>
 public CancelReportRequestsResponse WithCancelReportRequestsResult(CancelReportRequestsResult cancelReportRequestsResult)
 {
     this.cancelReportRequestsResultField = cancelReportRequestsResult;
     return(this);
 }