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