/// <summary> /// XML Representation for this object /// </summary> /// <returns>XML String</returns> public String ToXML() { StringBuilder xml = new StringBuilder(); xml.Append("<AllocateAddressResponse 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 (IsSetAllocateAddressResult()) { AllocateAddressResult allocateAddressResult = this.AllocateAddressResult; xml.Append("<AllocateAddressResult>"); xml.Append(allocateAddressResult.ToXMLFragment()); xml.Append("</AllocateAddressResult>"); } xml.Append("</AllocateAddressResponse>"); return(xml.ToString()); }
/// <summary> /// Sets the AllocateAddressResult property /// </summary> /// <param name="allocateAddressResult">AllocateAddressResult property</param> /// <returns>this instance</returns> public AllocateAddressResponse WithAllocateAddressResult(AllocateAddressResult allocateAddressResult) { this.allocateAddressResultField = allocateAddressResult; return this; }
/// <summary> /// Sets the AllocateAddressResult property /// </summary> /// <param name="allocateAddressResult">AllocateAddressResult property</param> /// <returns>this instance</returns> public AllocateAddressResponse WithAllocateAddressResult(AllocateAddressResult allocateAddressResult) { this.allocateAddressResultField = allocateAddressResult; return(this); }