/// <summary> /// XML Representation for this object /// </summary> /// <returns>XML String</returns> public String ToXML() { StringBuilder xml = new StringBuilder(); xml.Append("<GetProductCategoriesForSKUResponse xmlns=\"http://mws.amazonservices.com/schema/Products/2011-10-01\">"); if (IsSetGetProductCategoriesForSKUResult()) { GetProductCategoriesForSKUResult getProductCategoriesForSKUResult = this.GetProductCategoriesForSKUResult; xml.Append("<GetProductCategoriesForSKUResult>"); xml.Append(getProductCategoriesForSKUResult.ToXMLFragment()); xml.Append("</GetProductCategoriesForSKUResult>"); } if (IsSetResponseMetadata()) { ResponseMetadata responseMetadata = this.ResponseMetadata; xml.Append("<ResponseMetadata>"); xml.Append(responseMetadata.ToXMLFragment()); xml.Append("</ResponseMetadata>"); } xml.Append("</GetProductCategoriesForSKUResponse>"); return(xml.ToString()); }
/// <summary> /// Sets the GetProductCategoriesForSKUResult property. /// </summary> /// <param name="getProductCategoriesForSKUResult">GetProductCategoriesForSKUResult property.</param> /// <returns>this instance.</returns> public GetProductCategoriesForSKUResponse WithGetProductCategoriesForSKUResult(GetProductCategoriesForSKUResult getProductCategoriesForSKUResult) { this._getProductCategoriesForSKUResult = getProductCategoriesForSKUResult; return(this); }
public override void ReadFragmentFrom(IMwsReader reader) { _getProductCategoriesForSKUResult = reader.Read <GetProductCategoriesForSKUResult>("GetProductCategoriesForSKUResult"); _responseMetadata = reader.Read <ResponseMetadata>("ResponseMetadata"); }
/// <summary> /// Sets the GetProductCategoriesForSKUResult property. /// </summary> /// <param name="getProductCategoriesForSKUResult">GetProductCategoriesForSKUResult property.</param> /// <returns>this instance.</returns> public GetProductCategoriesForSKUResponse WithGetProductCategoriesForSKUResult(GetProductCategoriesForSKUResult getProductCategoriesForSKUResult) { this._getProductCategoriesForSKUResult = getProductCategoriesForSKUResult; return this; }
public override void ReadFragmentFrom(IMwsReader reader) { _getProductCategoriesForSKUResult = reader.Read<GetProductCategoriesForSKUResult>("GetProductCategoriesForSKUResult"); _responseMetadata = reader.Read<ResponseMetadata>("ResponseMetadata"); }