/*
* 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 opsworks-2013-02-18.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.OpsWorks.Model
{
///
/// Describes an instance's Amazon EBS volume.
///
public partial class Volume
{
private string _availabilityZone;
private string _device;
private string _ec2VolumeId;
private bool? _encrypted;
private string _instanceId;
private int? _iops;
private string _mountPoint;
private string _name;
private string _raidArrayId;
private string _region;
private int? _size;
private string _status;
private string _volumeId;
private string _volumeType;
///
/// Gets and sets the property AvailabilityZone.
///
/// The volume Availability Zone. For more information, see Regions
/// and Endpoints.
///
///
public string AvailabilityZone
{
get { return this._availabilityZone; }
set { this._availabilityZone = value; }
}
// Check to see if AvailabilityZone property is set
internal bool IsSetAvailabilityZone()
{
return this._availabilityZone != null;
}
///
/// Gets and sets the property Device.
///
/// The device name.
///
///
public string Device
{
get { return this._device; }
set { this._device = value; }
}
// Check to see if Device property is set
internal bool IsSetDevice()
{
return this._device != null;
}
///
/// Gets and sets the property Ec2VolumeId.
///
/// The Amazon EC2 volume ID.
///
///
public string Ec2VolumeId
{
get { return this._ec2VolumeId; }
set { this._ec2VolumeId = value; }
}
// Check to see if Ec2VolumeId property is set
internal bool IsSetEc2VolumeId()
{
return this._ec2VolumeId != null;
}
///
/// Gets and sets the property Encrypted.
///
/// Specifies whether an Amazon EBS volume is encrypted. For more information, see Amazon
/// EBS Encryption.
///
///
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 InstanceId.
///
/// The instance ID.
///
///
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
///
/// Gets and sets the property Iops.
///
/// For PIOPS volumes, the IOPS per disk.
///
///
public int Iops
{
get { return this._iops.GetValueOrDefault(); }
set { this._iops = value; }
}
// Check to see if Iops property is set
internal bool IsSetIops()
{
return this._iops.HasValue;
}
///
/// Gets and sets the property MountPoint.
///
/// The volume mount point. For example, "/mnt/disk1".
///
///
public string MountPoint
{
get { return this._mountPoint; }
set { this._mountPoint = value; }
}
// Check to see if MountPoint property is set
internal bool IsSetMountPoint()
{
return this._mountPoint != null;
}
///
/// Gets and sets the property Name.
///
/// The volume name.
///
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property RaidArrayId.
///
/// The RAID array ID.
///
///
public string RaidArrayId
{
get { return this._raidArrayId; }
set { this._raidArrayId = value; }
}
// Check to see if RaidArrayId property is set
internal bool IsSetRaidArrayId()
{
return this._raidArrayId != null;
}
///
/// Gets and sets the property Region.
///
/// The AWS region. For more information about AWS regions, see Regions
/// and Endpoints.
///
///
public string Region
{
get { return this._region; }
set { this._region = value; }
}
// Check to see if Region property is set
internal bool IsSetRegion()
{
return this._region != null;
}
///
/// Gets and sets the property Size.
///
/// The volume size.
///
///
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 Status.
///
/// The value returned by DescribeVolumes.
///
///
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 volume ID.
///
///
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 VolumeType.
///
/// The volume type. For more information, see
/// Amazon EBS Volume Types.
///
/// -
///
///
standard
- Magnetic. Magnetic volumes must have a minimum size of 1
/// GiB and a maximum size of 1024 GiB.
///
/// -
///
///
io1
- Provisioned IOPS (SSD). PIOPS volumes must have a minimum size
/// of 4 GiB and a maximum size of 16384 GiB.
///
/// -
///
///
gp2
- General Purpose (SSD). General purpose volumes must have a minimum
/// size of 1 GiB and a maximum size of 16384 GiB.
///
/// -
///
///
st1
- Throughput Optimized hard disk drive (HDD). Throughput optimized
/// HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384 GiB.
///
/// -
///
///
sc1
- Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB
/// and a maximum size of 16384 GiB.
///
///
///
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;
}
}
}