/*
* 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 ebs-2019-11-02.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.EBS.Model
{
///
/// This is the response object from the StartSnapshot operation.
///
public partial class StartSnapshotResponse : AmazonWebServiceResponse
{
private int? _blockSize;
private string _description;
private string _kmsKeyArn;
private string _ownerId;
private string _parentSnapshotId;
private string _snapshotId;
private SSEType _sseType;
private DateTime? _startTime;
private Status _status;
private List _tags = new List();
private long? _volumeSize;
///
/// Gets and sets the property BlockSize.
///
/// The size of the blocks in the snapshot, in bytes.
///
///
public int BlockSize
{
get { return this._blockSize.GetValueOrDefault(); }
set { this._blockSize = value; }
}
// Check to see if BlockSize property is set
internal bool IsSetBlockSize()
{
return this._blockSize.HasValue;
}
///
/// Gets and sets the property Description.
///
/// The description of the snapshot.
///
///
[AWSProperty(Max=255)]
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 KmsKeyArn.
///
/// The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to encrypt
/// the snapshot.
///
///
[AWSProperty(Sensitive=true, Min=1, Max=2048)]
public string KmsKeyArn
{
get { return this._kmsKeyArn; }
set { this._kmsKeyArn = value; }
}
// Check to see if KmsKeyArn property is set
internal bool IsSetKmsKeyArn()
{
return this._kmsKeyArn != null;
}
///
/// Gets and sets the property OwnerId.
///
/// The Amazon Web Services account ID of the snapshot owner.
///
///
[AWSProperty(Min=1, Max=24)]
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 ParentSnapshotId.
///
/// The ID of the parent snapshot.
///
///
[AWSProperty(Min=1, Max=64)]
public string ParentSnapshotId
{
get { return this._parentSnapshotId; }
set { this._parentSnapshotId = value; }
}
// Check to see if ParentSnapshotId property is set
internal bool IsSetParentSnapshotId()
{
return this._parentSnapshotId != null;
}
///
/// Gets and sets the property SnapshotId.
///
/// The ID of the snapshot.
///
///
[AWSProperty(Min=1, Max=64)]
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 timestamp when the snapshot was created.
///
///
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 Status.
///
/// The status of the snapshot.
///
///
[AWSProperty(Max=32)]
public Status 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 Tags.
///
/// The tags applied to the snapshot. You can specify up to 50 tags per snapshot. For
/// more information, see
/// Tagging your Amazon EC2 resources in the Amazon Elastic Compute Cloud User
/// Guide.
///
///
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 VolumeSize.
///
/// The size of the volume, in GiB.
///
///
[AWSProperty(Min=1)]
public long 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;
}
}
}