예제 #1
0
        /// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

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

            xml.Append("<DescribeInstancesResponse 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 (IsSetDescribeInstancesResult())
            {
                DescribeInstancesResult describeInstancesResult = this.DescribeInstancesResult;
                xml.Append("<DescribeInstancesResult>");
                xml.Append(describeInstancesResult.ToXMLFragment());
                xml.Append("</DescribeInstancesResult>");
            }
            xml.Append("</DescribeInstancesResponse>");
            return(xml.ToString());
        }
예제 #2
0
 /// <summary>
 /// Sets the DescribeInstancesResult property
 /// </summary>
 /// <param name="describeInstancesResult">DescribeInstancesResult property</param>
 /// <returns>this instance</returns>
 public DescribeInstancesResponse WithDescribeInstancesResult(DescribeInstancesResult describeInstancesResult)
 {
     this.describeInstancesResultField = describeInstancesResult;
     return(this);
 }
예제 #3
0
 /// <summary>
 /// Sets the DescribeInstancesResult property
 /// </summary>
 /// <param name="describeInstancesResult">DescribeInstancesResult property</param>
 /// <returns>this instance</returns>
 public DescribeInstancesResponse WithDescribeInstancesResult(DescribeInstancesResult describeInstancesResult)
 {
     this.describeInstancesResultField = describeInstancesResult;
     return this;
 }