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