/// <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()); }