Exemplo n.º 1
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

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

            xml.Append("<RequestReportResponse xmlns=\"http://mws.amazonaws.com/doc/2009-01-01/\">");
            if (IsSetRequestReportResult())
            {
                RequestReportResult requestReportResult = this.RequestReportResult;
                xml.Append("<RequestReportResult>");
                xml.Append(requestReportResult.ToXMLFragment());
                xml.Append("</RequestReportResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</RequestReportResponse>");
            return(xml.ToString());
        }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the RequestReportResult property
 /// </summary>
 /// <param name="requestReportResult">RequestReportResult property</param>
 /// <returns>this instance</returns>
 public RequestReportResponse WithRequestReportResult(RequestReportResult requestReportResult)
 {
     this.requestReportResultField = requestReportResult;
     return(this);
 }