/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.EC2.Model { /// /// Information about a root volume replacement task. /// public partial class ReplaceRootVolumeTask { private string _completeTime; private bool? _deleteReplacedRootVolume; private string _imageId; private string _instanceId; private string _replaceRootVolumeTaskId; private string _snapshotId; private string _startTime; private List _tags = new List(); private ReplaceRootVolumeTaskState _taskState; /// /// Gets and sets the property CompleteTime. /// /// The time the task completed. /// /// public string CompleteTime { get { return this._completeTime; } set { this._completeTime = value; } } // Check to see if CompleteTime property is set internal bool IsSetCompleteTime() { return this._completeTime != null; } /// /// Gets and sets the property DeleteReplacedRootVolume. /// /// Indicates whether the original root volume is to be deleted after the root volume /// replacement task completes. /// /// public bool DeleteReplacedRootVolume { get { return this._deleteReplacedRootVolume.GetValueOrDefault(); } set { this._deleteReplacedRootVolume = value; } } // Check to see if DeleteReplacedRootVolume property is set internal bool IsSetDeleteReplacedRootVolume() { return this._deleteReplacedRootVolume.HasValue; } /// /// Gets and sets the property ImageId. /// /// The ID of the AMI used to create the replacement root volume. /// /// public string ImageId { get { return this._imageId; } set { this._imageId = value; } } // Check to see if ImageId property is set internal bool IsSetImageId() { return this._imageId != null; } /// /// Gets and sets the property InstanceId. /// /// The ID of the instance for which the root volume replacement task was created. /// /// public string InstanceId { get { return this._instanceId; } set { this._instanceId = value; } } // Check to see if InstanceId property is set internal bool IsSetInstanceId() { return this._instanceId != null; } /// /// Gets and sets the property ReplaceRootVolumeTaskId. /// /// The ID of the root volume replacement task. /// /// public string ReplaceRootVolumeTaskId { get { return this._replaceRootVolumeTaskId; } set { this._replaceRootVolumeTaskId = value; } } // Check to see if ReplaceRootVolumeTaskId property is set internal bool IsSetReplaceRootVolumeTaskId() { return this._replaceRootVolumeTaskId != null; } /// /// Gets and sets the property SnapshotId. /// /// The ID of the snapshot used to create the replacement root volume. /// /// public string SnapshotId { get { return this._snapshotId; } set { this._snapshotId = value; } } // Check to see if SnapshotId property is set internal bool IsSetSnapshotId() { return this._snapshotId != null; } /// /// Gets and sets the property StartTime. /// /// The time the task was started. /// /// public string StartTime { get { return this._startTime; } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime != null; } /// /// Gets and sets the property Tags. /// /// The tags assigned to the task. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property TaskState. /// /// The state of the task. The task can be in one of the following states: /// ///
  • /// /// pending - the replacement volume is being created. /// ///
  • /// /// in-progress - the original volume is being detached and the replacement /// volume is being attached. /// ///
  • /// /// succeeded - the replacement volume has been successfully attached to /// the instance and the instance is available. /// ///
  • /// /// failing - the replacement task is in the process of failing. /// ///
  • /// /// failed - the replacement task has failed but the original root volume /// is still attached. /// ///
  • /// /// failing-detached - the replacement task is in the process of failing. /// The instance might have no root volume attached. /// ///
  • /// /// failed-detached - the replacement task has failed and the instance has /// no root volume attached. /// ///
///
public ReplaceRootVolumeTaskState TaskState { get { return this._taskState; } set { this._taskState = value; } } // Check to see if TaskState property is set internal bool IsSetTaskState() { return this._taskState != null; } } }