/*
* 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
{
///
/// Details about the import snapshot task.
///
public partial class SnapshotTaskDetail
{
private string _description;
private double? _diskImageSize;
private bool? _encrypted;
private string _format;
private string _kmsKeyId;
private string _progress;
private string _snapshotId;
private string _status;
private string _statusMessage;
private string _url;
private UserBucketDetails _userBucket;
///
/// Gets and sets the property Description.
///
/// The description of 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 DiskImageSize.
///
/// The size of the disk in the snapshot, in GiB.
///
///
public double DiskImageSize
{
get { return this._diskImageSize.GetValueOrDefault(); }
set { this._diskImageSize = value; }
}
// Check to see if DiskImageSize property is set
internal bool IsSetDiskImageSize()
{
return this._diskImageSize.HasValue;
}
///
/// 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 Format.
///
/// The format of the disk image from which the snapshot is created.
///
///
public string Format
{
get { return this._format; }
set { this._format = value; }
}
// Check to see if Format property is set
internal bool IsSetFormat()
{
return this._format != null;
}
///
/// Gets and sets the property KmsKeyId.
///
/// The identifier for the KMS key that was used to create the encrypted snapshot.
///
///
public string KmsKeyId
{
get { return this._kmsKeyId; }
set { this._kmsKeyId = value; }
}
// Check to see if KmsKeyId property is set
internal bool IsSetKmsKeyId()
{
return this._kmsKeyId != null;
}
///
/// Gets and sets the property Progress.
///
/// The percentage of completion for the import snapshot task.
///
///
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 snapshot ID of the disk being imported.
///
///
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 Status.
///
/// A brief status for the import snapshot task.
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property StatusMessage.
///
/// A detailed status message for the import snapshot task.
///
///
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
///
/// Gets and sets the property Url.
///
/// The URL of the disk image from which the snapshot is created.
///
///
[AWSProperty(Sensitive=true)]
public string Url
{
get { return this._url; }
set { this._url = value; }
}
// Check to see if Url property is set
internal bool IsSetUrl()
{
return this._url != null;
}
///
/// Gets and sets the property UserBucket.
///
/// The Amazon S3 bucket for the disk image.
///
///
public UserBucketDetails UserBucket
{
get { return this._userBucket; }
set { this._userBucket = value; }
}
// Check to see if UserBucket property is set
internal bool IsSetUserBucket()
{
return this._userBucket != null;
}
}
}