/// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

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

            xml.Append("<ListInventorySupplyByNextTokenResponse xmlns=\"http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/\">");
            if (IsSetListInventorySupplyByNextTokenResult())
            {
                ListInventorySupplyByNextTokenResult listInventorySupplyByNextTokenResult = this.ListInventorySupplyByNextTokenResult;
                xml.Append("<ListInventorySupplyByNextTokenResult>");
                xml.Append(listInventorySupplyByNextTokenResult.ToXMLFragment());
                xml.Append("</ListInventorySupplyByNextTokenResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</ListInventorySupplyByNextTokenResponse>");
            return(xml.ToString());
        }
 /// <summary>
 /// Sets the ListInventorySupplyByNextTokenResult property.
 /// </summary>
 /// <param name="listInventorySupplyByNextTokenResult">ListInventorySupplyByNextTokenResult property.</param>
 /// <returns>this instance.</returns>
 public ListInventorySupplyByNextTokenResponse WithListInventorySupplyByNextTokenResult(ListInventorySupplyByNextTokenResult listInventorySupplyByNextTokenResult)
 {
     this._listInventorySupplyByNextTokenResult = listInventorySupplyByNextTokenResult;
     return this;
 }
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _listInventorySupplyByNextTokenResult = reader.Read<ListInventorySupplyByNextTokenResult>("ListInventorySupplyByNextTokenResult");
     _responseMetadata = reader.Read<ResponseMetadata>("ResponseMetadata");
 }
 /// <summary>
 /// Sets the ListInventorySupplyByNextTokenResult property
 /// </summary>
 /// <param name="listInventorySupplyByNextTokenResult">ListInventorySupplyByNextTokenResult property</param>
 /// <returns>this instance</returns>
 public ListInventorySupplyByNextTokenResponse WithListInventorySupplyByNextTokenResult(ListInventorySupplyByNextTokenResult listInventorySupplyByNextTokenResult)
 {
     this.listInventorySupplyByNextTokenResultField = listInventorySupplyByNextTokenResult;
     return(this);
 }
Esempio n. 5
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _listInventorySupplyByNextTokenResult = reader.Read <ListInventorySupplyByNextTokenResult>("ListInventorySupplyByNextTokenResult");
     _responseMetadata = reader.Read <ResponseMetadata>("ResponseMetadata");
 }