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

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

            xml.Append("<GetServiceStatusResponse xmlns=\"https://mws.amazonservices.com/Orders/2011-01-01\">");
            if (IsSetGetServiceStatusResult())
            {
                GetServiceStatusResult getServiceStatusResult = this.GetServiceStatusResult;
                xml.Append("<GetServiceStatusResult>");
                xml.Append(getServiceStatusResult.ToXMLFragment());
                xml.Append("</GetServiceStatusResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</GetServiceStatusResponse>");
            return(xml.ToString());
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the GetServiceStatusResult property.
 /// </summary>
 /// <param name="getServiceStatusResult">GetServiceStatusResult property.</param>
 /// <returns>this instance.</returns>
 public GetServiceStatusResponse WithGetServiceStatusResult(GetServiceStatusResult getServiceStatusResult)
 {
     this._getServiceStatusResult = getServiceStatusResult;
     return(this);
 }
Ejemplo n.º 3
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _getServiceStatusResult = reader.Read <GetServiceStatusResult>("GetServiceStatusResult");
     _responseMetadata       = reader.Read <ResponseMetadata>("ResponseMetadata");
 }
 /// <summary>
 /// Sets the GetServiceStatusResult property
 /// </summary>
 /// <param name="getServiceStatusResult">GetServiceStatusResult property</param>
 /// <returns>this instance</returns>
 public GetServiceStatusResponse WithGetServiceStatusResult(GetServiceStatusResult getServiceStatusResult)
 {
     this.getServiceStatusResultField = getServiceStatusResult;
     return this;
 }
Ejemplo n.º 5
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _getServiceStatusResult = reader.Read<GetServiceStatusResult>("GetServiceStatusResult");
     _responseMetadata = reader.Read<ResponseMetadata>("ResponseMetadata");
 }