/* * 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 { /// /// This is the response object from the RestoreSnapshotTier operation. /// public partial class RestoreSnapshotTierResponse : AmazonWebServiceResponse { private bool? _isPermanentRestore; private int? _restoreDuration; private DateTime? _restoreStartTime; private string _snapshotId; /// /// Gets and sets the property IsPermanentRestore. /// /// Indicates whether the snapshot is permanently restored. true indicates /// a permanent restore. false indicates a temporary restore. /// /// public bool IsPermanentRestore { get { return this._isPermanentRestore.GetValueOrDefault(); } set { this._isPermanentRestore = value; } } // Check to see if IsPermanentRestore property is set internal bool IsSetIsPermanentRestore() { return this._isPermanentRestore.HasValue; } /// /// Gets and sets the property RestoreDuration. /// /// For temporary restores only. The number of days for which the archived snapshot is /// temporarily restored. /// /// public int RestoreDuration { get { return this._restoreDuration.GetValueOrDefault(); } set { this._restoreDuration = value; } } // Check to see if RestoreDuration property is set internal bool IsSetRestoreDuration() { return this._restoreDuration.HasValue; } /// /// Gets and sets the property RestoreStartTime. /// /// The date and time when the snapshot restore process started. /// /// public DateTime RestoreStartTime { get { return this._restoreStartTime.GetValueOrDefault(); } set { this._restoreStartTime = value; } } // Check to see if RestoreStartTime property is set internal bool IsSetRestoreStartTime() { return this._restoreStartTime.HasValue; } /// /// 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; } } }