/* * 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 { /// /// Describes fast snapshot restores that were successfully enabled. /// public partial class EnableFastSnapshotRestoreSuccessItem { private string _availabilityZone; private DateTime? _disabledTime; private DateTime? _disablingTime; private DateTime? _enabledTime; private DateTime? _enablingTime; private DateTime? _optimizingTime; private string _ownerAlias; private string _ownerId; private string _snapshotId; private FastSnapshotRestoreStateCode _state; private string _stateTransitionReason; /// /// Gets and sets the property AvailabilityZone. /// /// The Availability Zone. /// /// public string AvailabilityZone { get { return this._availabilityZone; } set { this._availabilityZone = value; } } // Check to see if AvailabilityZone property is set internal bool IsSetAvailabilityZone() { return this._availabilityZone != null; } /// /// Gets and sets the property DisabledTime. /// /// The time at which fast snapshot restores entered the disabled state. /// /// public DateTime DisabledTime { get { return this._disabledTime.GetValueOrDefault(); } set { this._disabledTime = value; } } // Check to see if DisabledTime property is set internal bool IsSetDisabledTime() { return this._disabledTime.HasValue; } /// /// Gets and sets the property DisablingTime. /// /// The time at which fast snapshot restores entered the disabling state. /// /// public DateTime DisablingTime { get { return this._disablingTime.GetValueOrDefault(); } set { this._disablingTime = value; } } // Check to see if DisablingTime property is set internal bool IsSetDisablingTime() { return this._disablingTime.HasValue; } /// /// Gets and sets the property EnabledTime. /// /// The time at which fast snapshot restores entered the enabled state. /// /// public DateTime EnabledTime { get { return this._enabledTime.GetValueOrDefault(); } set { this._enabledTime = value; } } // Check to see if EnabledTime property is set internal bool IsSetEnabledTime() { return this._enabledTime.HasValue; } /// /// Gets and sets the property EnablingTime. /// /// The time at which fast snapshot restores entered the enabling state. /// /// public DateTime EnablingTime { get { return this._enablingTime.GetValueOrDefault(); } set { this._enablingTime = value; } } // Check to see if EnablingTime property is set internal bool IsSetEnablingTime() { return this._enablingTime.HasValue; } /// /// Gets and sets the property OptimizingTime. /// /// The time at which fast snapshot restores entered the optimizing state. /// /// public DateTime OptimizingTime { get { return this._optimizingTime.GetValueOrDefault(); } set { this._optimizingTime = value; } } // Check to see if OptimizingTime property is set internal bool IsSetOptimizingTime() { return this._optimizingTime.HasValue; } /// /// Gets and sets the property OwnerAlias. /// /// The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. /// This is intended for future use. /// /// public string OwnerAlias { get { return this._ownerAlias; } set { this._ownerAlias = value; } } // Check to see if OwnerAlias property is set internal bool IsSetOwnerAlias() { return this._ownerAlias != null; } /// /// Gets and sets the property OwnerId. /// /// The ID of the Amazon Web Services account that enabled fast snapshot restores on the /// snapshot. /// /// public string OwnerId { get { return this._ownerId; } set { this._ownerId = value; } } // Check to see if OwnerId property is set internal bool IsSetOwnerId() { return this._ownerId != null; } /// /// Gets and sets the property SnapshotId. /// /// The ID of the snapshot. /// /// 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 State. /// /// The state of fast snapshot restores. /// /// public FastSnapshotRestoreStateCode State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property StateTransitionReason. /// /// The reason for the state transition. The possible values are as follows: /// /// /// public string StateTransitionReason { get { return this._stateTransitionReason; } set { this._stateTransitionReason = value; } } // Check to see if StateTransitionReason property is set internal bool IsSetStateTransitionReason() { return this._stateTransitionReason != null; } } }