コード例 #1
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

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

            xml.Append("<DescribeVolumesResponse xmlns=\"http://ec2.amazonaws.com/doc/2008-12-01/\">");
            if (IsSetDescribeVolumesResult())
            {
                DescribeVolumesResult describeVolumesResult = this.DescribeVolumesResult;
                xml.Append("<DescribeVolumesResult>");
                xml.Append(describeVolumesResult.ToXMLFragment());
                xml.Append("</DescribeVolumesResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</DescribeVolumesResponse>");
            return(xml.ToString());
        }
コード例 #2
0
 /// <summary>
 /// Sets the DescribeVolumesResult property
 /// </summary>
 /// <param name="describeVolumesResult">DescribeVolumesResult property</param>
 /// <returns>this instance</returns>
 public DescribeVolumesResponse WithDescribeVolumesResult(DescribeVolumesResult describeVolumesResult)
 {
     this.describeVolumesResultField = describeVolumesResult;
     return this;
 }
コード例 #3
0
 /// <summary>
 /// Sets the DescribeVolumesResult property
 /// </summary>
 /// <param name="describeVolumesResult">DescribeVolumesResult property</param>
 /// <returns>this instance</returns>
 public DescribeVolumesResponse WithDescribeVolumesResult(DescribeVolumesResult describeVolumesResult)
 {
     this.describeVolumesResultField = describeVolumesResult;
     return(this);
 }