/// <summary> /// XML Representation for this object /// </summary> /// <returns>XML String</returns> public String ToXML() { StringBuilder xml = new StringBuilder(); xml.Append("<BundleInstanceResponse xmlns=\"http://ec2.amazonaws.com/doc/2008-12-01/\">"); if (IsSetResponseMetadata()) { ResponseMetadata responseMetadata = this.ResponseMetadata; xml.Append("<ResponseMetadata>"); xml.Append(responseMetadata.ToXMLFragment()); xml.Append("</ResponseMetadata>"); } if (IsSetBundleInstanceResult()) { BundleInstanceResult bundleInstanceResult = this.BundleInstanceResult; xml.Append("<BundleInstanceResult>"); xml.Append(bundleInstanceResult.ToXMLFragment()); xml.Append("</BundleInstanceResult>"); } xml.Append("</BundleInstanceResponse>"); return(xml.ToString()); }
/// <summary> /// Sets the BundleInstanceResult property /// </summary> /// <param name="bundleInstanceResult">BundleInstanceResult property</param> /// <returns>this instance</returns> public BundleInstanceResponse WithBundleInstanceResult(BundleInstanceResult bundleInstanceResult) { this.bundleInstanceResultField = bundleInstanceResult; return(this); }
/// <summary> /// Sets the BundleInstanceResult property /// </summary> /// <param name="bundleInstanceResult">BundleInstanceResult property</param> /// <returns>this instance</returns> public BundleInstanceResponse WithBundleInstanceResult(BundleInstanceResult bundleInstanceResult) { this.bundleInstanceResultField = bundleInstanceResult; return this; }