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

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

            xml.Append("<CreateSnapshotResponse xmlns=\"http://ec2.amazonaws.com/doc/2008-12-01/\">");
            if (IsSetCreateSnapshotResult())
            {
                CreateSnapshotResult createSnapshotResult = this.CreateSnapshotResult;
                xml.Append("<CreateSnapshotResult>");
                xml.Append(createSnapshotResult.ToXMLFragment());
                xml.Append("</CreateSnapshotResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</CreateSnapshotResponse>");
            return(xml.ToString());
        }
 /// <summary>
 /// Sets the CreateSnapshotResult property
 /// </summary>
 /// <param name="createSnapshotResult">CreateSnapshotResult property</param>
 /// <returns>this instance</returns>
 public CreateSnapshotResponse WithCreateSnapshotResult(CreateSnapshotResult createSnapshotResult)
 {
     this.createSnapshotResultField = createSnapshotResult;
     return this;
 }
Example #3
0
 /// <summary>
 /// Sets the CreateSnapshotResult property
 /// </summary>
 /// <param name="createSnapshotResult">CreateSnapshotResult property</param>
 /// <returns>this instance</returns>
 public CreateSnapshotResponse WithCreateSnapshotResult(CreateSnapshotResult createSnapshotResult)
 {
     this.createSnapshotResultField = createSnapshotResult;
     return(this);
 }