/*
* 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 compute-optimizer-2019-11-01.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.ComputeOptimizer.Model
{
///
/// Describes the configuration of an Amazon Elastic Block Store (Amazon EBS) volume.
///
public partial class VolumeConfiguration
{
private bool? _rootVolume;
private int? _volumeBaselineIOPS;
private int? _volumeBaselineThroughput;
private int? _volumeBurstIOPS;
private int? _volumeBurstThroughput;
private int? _volumeSize;
private string _volumeType;
///
/// Gets and sets the property RootVolume.
///
/// Contains the image used to boot the instance during launch.
///
///
public bool RootVolume
{
get { return this._rootVolume.GetValueOrDefault(); }
set { this._rootVolume = value; }
}
// Check to see if RootVolume property is set
internal bool IsSetRootVolume()
{
return this._rootVolume.HasValue;
}
///
/// Gets and sets the property VolumeBaselineIOPS.
///
/// The baseline IOPS of the volume.
///
///
public int VolumeBaselineIOPS
{
get { return this._volumeBaselineIOPS.GetValueOrDefault(); }
set { this._volumeBaselineIOPS = value; }
}
// Check to see if VolumeBaselineIOPS property is set
internal bool IsSetVolumeBaselineIOPS()
{
return this._volumeBaselineIOPS.HasValue;
}
///
/// Gets and sets the property VolumeBaselineThroughput.
///
/// The baseline throughput of the volume.
///
///
public int VolumeBaselineThroughput
{
get { return this._volumeBaselineThroughput.GetValueOrDefault(); }
set { this._volumeBaselineThroughput = value; }
}
// Check to see if VolumeBaselineThroughput property is set
internal bool IsSetVolumeBaselineThroughput()
{
return this._volumeBaselineThroughput.HasValue;
}
///
/// Gets and sets the property VolumeBurstIOPS.
///
/// The burst IOPS of the volume.
///
///
public int VolumeBurstIOPS
{
get { return this._volumeBurstIOPS.GetValueOrDefault(); }
set { this._volumeBurstIOPS = value; }
}
// Check to see if VolumeBurstIOPS property is set
internal bool IsSetVolumeBurstIOPS()
{
return this._volumeBurstIOPS.HasValue;
}
///
/// Gets and sets the property VolumeBurstThroughput.
///
/// The burst throughput of the volume.
///
///
public int VolumeBurstThroughput
{
get { return this._volumeBurstThroughput.GetValueOrDefault(); }
set { this._volumeBurstThroughput = value; }
}
// Check to see if VolumeBurstThroughput property is set
internal bool IsSetVolumeBurstThroughput()
{
return this._volumeBurstThroughput.HasValue;
}
///
/// Gets and sets the property VolumeSize.
///
/// The size of the volume, in GiB.
///
///
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;
}
///
/// Gets and sets the property VolumeType.
///
/// The volume type.
///
///
///
/// This can be gp2
for General Purpose SSD, io1
or io2
/// for Provisioned IOPS SSD, st1
for Throughput Optimized HDD, sc1
/// for Cold HDD, or standard
for Magnetic volumes.
///
///
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;
}
}
}