Inheritance: Amazon.Runtime.AmazonWebServiceResponse
Exemple #1
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

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

            xml.Append("<CreateVolumeResponse xmlns=\"http://ec2.amazonaws.com/doc/2008-12-01/\">");
            if (IsSetCreateVolumeResult())
            {
                CreateVolumeResult createVolumeResult = this.CreateVolumeResult;
                xml.Append("<CreateVolumeResult>");
                xml.Append(createVolumeResult.ToXMLFragment());
                xml.Append("</CreateVolumeResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</CreateVolumeResponse>");
            return(xml.ToString());
        }
Exemple #2
0
 /// <summary>
 /// Sets the CreateVolumeResult property
 /// </summary>
 /// <param name="createVolumeResult">CreateVolumeResult property</param>
 /// <returns>this instance</returns>
 public CreateVolumeResponse WithCreateVolumeResult(CreateVolumeResult createVolumeResult)
 {
     this.createVolumeResultField = createVolumeResult;
     return(this);
 }
 /// <summary>
 /// Sets the CreateVolumeResult property
 /// </summary>
 /// <param name="createVolumeResult">CreateVolumeResult property</param>
 /// <returns>this instance</returns>
 public CreateVolumeResponse WithCreateVolumeResult(CreateVolumeResult createVolumeResult)
 {
     this.createVolumeResultField = createVolumeResult;
     return this;
 }