/// <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()); }
/// <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); }
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; }
public override void ReadFragmentFrom(IMwsReader reader) { _getServiceStatusResult = reader.Read<GetServiceStatusResult>("GetServiceStatusResult"); _responseMetadata = reader.Read<ResponseMetadata>("ResponseMetadata"); }