/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Details about an EC2 volume.
///
public partial class AwsEc2VolumeDetails
{
private List _attachments = new List();
private string _createTime;
private string _deviceName;
private bool? _encrypted;
private string _kmsKeyId;
private int? _size;
private string _snapshotId;
private string _status;
private string _volumeId;
private string _volumeScanStatus;
private string _volumeType;
///
/// Gets and sets the property Attachments.
///
/// The volume attachments.
///
///
public List Attachments
{
get { return this._attachments; }
set { this._attachments = value; }
}
// Check to see if Attachments property is set
internal bool IsSetAttachments()
{
return this._attachments != null && this._attachments.Count > 0;
}
///
/// Gets and sets the property CreateTime.
///
/// Indicates when the volume was created.
///
///
///
/// Uses the date-time
format specified in RFC
/// 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces,
/// and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
///
///
public string CreateTime
{
get { return this._createTime; }
set { this._createTime = value; }
}
// Check to see if CreateTime property is set
internal bool IsSetCreateTime()
{
return this._createTime != null;
}
///
/// Gets and sets the property DeviceName.
///
/// The device name for the volume that is attached to the instance.
///
///
public string DeviceName
{
get { return this._deviceName; }
set { this._deviceName = value; }
}
// Check to see if DeviceName property is set
internal bool IsSetDeviceName()
{
return this._deviceName != null;
}
///
/// Gets and sets the property Encrypted.
///
/// Specifies whether the volume 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 KmsKeyId.
///
/// The ARN of the KMS key that was used to protect the volume encryption key for the
/// volume.
///
///
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 Size.
///
/// The size of the volume, in GiBs.
///
///
public int Size
{
get { return this._size.GetValueOrDefault(); }
set { this._size = value; }
}
// Check to see if Size property is set
internal bool IsSetSize()
{
return this._size.HasValue;
}
///
/// Gets and sets the property SnapshotId.
///
/// The snapshot from which the volume was created.
///
///
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.
///
/// The volume state. Valid values are as follows:
///
/// -
///
///
available
///
/// -
///
///
creating
///
/// -
///
///
deleted
///
/// -
///
///
deleting
///
/// -
///
///
error
///
/// -
///
///
in-use
///
///
///
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 VolumeId.
///
/// The ID of the volume.
///
///
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 VolumeScanStatus.
///
/// Indicates whether the volume was scanned or skipped.
///
///
public string VolumeScanStatus
{
get { return this._volumeScanStatus; }
set { this._volumeScanStatus = value; }
}
// Check to see if VolumeScanStatus property is set
internal bool IsSetVolumeScanStatus()
{
return this._volumeScanStatus != null;
}
///
/// Gets and sets the property VolumeType.
///
/// The volume type.
///
///
public string VolumeType
{
get { return this._volumeType; }
set { this._volumeType = value; }
}
// Check to see if VolumeType property is set
internal bool IsSetVolumeType()
{
return this._volumeType != null;
}
}
}