/* * 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 RestoreSnapshotFromRecycleBin operation. /// public partial class RestoreSnapshotFromRecycleBinResponse : AmazonWebServiceResponse { private string _description; private bool? _encrypted; private string _outpostArn; private string _ownerId; private string _progress; private string _snapshotId; private SSEType _sseType; private DateTime? _startTime; private SnapshotState _state; private string _volumeId; private int? _volumeSize; /// /// Gets and sets the property Description. /// /// The description for the snapshot. /// /// public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property Encrypted. /// /// Indicates whether the snapshot is encrypted. /// /// public bool Encrypted { get { return this._encrypted.GetValueOrDefault(); } set { this._encrypted = value; } } // Check to see if Encrypted property is set internal bool IsSetEncrypted() { return this._encrypted.HasValue; } /// /// Gets and sets the property OutpostArn. /// /// The ARN of the Outpost on which the snapshot is stored. For more information, see /// Amazon /// EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide. /// /// public string OutpostArn { get { return this._outpostArn; } set { this._outpostArn = value; } } // Check to see if OutpostArn property is set internal bool IsSetOutpostArn() { return this._outpostArn != null; } /// /// Gets and sets the property OwnerId. /// /// The ID of the Amazon Web Services account that owns the EBS 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 Progress. /// /// The progress of the snapshot, as a percentage. /// /// public string Progress { get { return this._progress; } set { this._progress = value; } } // Check to see if Progress property is set internal bool IsSetProgress() { return this._progress != 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 SseType. /// /// Reserved for future use. /// /// public SSEType SseType { get { return this._sseType; } set { this._sseType = value; } } // Check to see if SseType property is set internal bool IsSetSseType() { return this._sseType != null; } /// /// Gets and sets the property StartTime. /// /// The time stamp when the snapshot was initiated. /// /// public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// /// Gets and sets the property State. /// /// The state of the snapshot. /// /// public SnapshotState 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 VolumeId. /// /// The ID of the volume that was used to create the snapshot. /// /// public string VolumeId { get { return this._volumeId; } set { this._volumeId = value; } } // Check to see if VolumeId property is set internal bool IsSetVolumeId() { return this._volumeId != null; } /// /// Gets and sets the property VolumeSize. /// /// The size of the volume, in GiB. /// /// public int VolumeSize { get { return this._volumeSize.GetValueOrDefault(); } set { this._volumeSize = value; } } // Check to see if VolumeSize property is set internal bool IsSetVolumeSize() { return this._volumeSize.HasValue; } } }