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