/*
* 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 snapshot.
///
public partial class SnapshotInfo
{
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 List _tags = new List();
private string _volumeId;
private int? _volumeSize;
///
/// Gets and sets the property Description.
///
/// Description specified by the CreateSnapshotRequest that has been applied to all snapshots.
///
///
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.
///
/// Account id used when creating this 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.
///
/// Progress this snapshot has made towards completing.
///
///
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.
///
/// Snapshot id that can be used to describe this 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.
///
/// Time this snapshot was started. This is the same for all snapshots initiated by the
/// same request.
///
///
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.
///
/// Current 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 Tags.
///
/// Tags associated with this snapshot.
///
///
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 VolumeId.
///
/// Source volume from which this snapshot was created.
///
///
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.
///
/// Size of the volume from which this snapshot was created.
///
///
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;
}
}
}