/// <summary> /// XML Representation for this object /// </summary> /// <returns>XML String</returns> public String ToXML() { StringBuilder xml = new StringBuilder(); xml.Append("<ListInventorySupplyResponse xmlns=\"http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/\">"); if (IsSetListInventorySupplyResult()) { ListInventorySupplyResult listInventorySupplyResult = this.ListInventorySupplyResult; xml.Append("<ListInventorySupplyResult>"); xml.Append(listInventorySupplyResult.ToXMLFragment()); xml.Append("</ListInventorySupplyResult>"); } if (IsSetResponseMetadata()) { ResponseMetadata responseMetadata = this.ResponseMetadata; xml.Append("<ResponseMetadata>"); xml.Append(responseMetadata.ToXMLFragment()); xml.Append("</ResponseMetadata>"); } xml.Append("</ListInventorySupplyResponse>"); return(xml.ToString()); }
/// <summary> /// Sets the ListInventorySupplyResult property /// </summary> /// <param name="listInventorySupplyResult">ListInventorySupplyResult property</param> /// <returns>this instance</returns> public ListInventorySupplyResponse WithListInventorySupplyResult(ListInventorySupplyResult listInventorySupplyResult) { this.listInventorySupplyResultField = listInventorySupplyResult; return(this); }
public override void ReadFragmentFrom(IMwsReader reader) { _listInventorySupplyResult = reader.Read<ListInventorySupplyResult>("ListInventorySupplyResult"); _responseMetadata = reader.Read<ResponseMetadata>("ResponseMetadata"); }
/// <summary> /// Sets the ListInventorySupplyResult property. /// </summary> /// <param name="listInventorySupplyResult">ListInventorySupplyResult property.</param> /// <returns>this instance.</returns> public ListInventorySupplyResponse WithListInventorySupplyResult(ListInventorySupplyResult listInventorySupplyResult) { this._listInventorySupplyResult = listInventorySupplyResult; return this; }
public override void ReadFragmentFrom(IMwsReader reader) { _listInventorySupplyResult = reader.Read <ListInventorySupplyResult>("ListInventorySupplyResult"); _responseMetadata = reader.Read <ResponseMetadata>("ResponseMetadata"); }