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