/* * 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 elasticmapreduce-2009-03-31.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.ElasticMapReduce.Model { /// /// EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) /// that are requested for the EBS volume attached to an Amazon EC2 instance in the cluster. /// public partial class VolumeSpecification { private int? _iops; private int? _sizeInGB; private int? _throughput; private string _volumeType; /// /// Gets and sets the property Iops. /// /// The number of I/O operations per second (IOPS) that the volume supports. /// /// 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 SizeInGB. /// /// The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume /// type is EBS-optimized, the minimum value is 10. /// /// [AWSProperty(Required=true)] public int SizeInGB { get { return this._sizeInGB.GetValueOrDefault(); } set { this._sizeInGB = value; } } // Check to see if SizeInGB property is set internal bool IsSetSizeInGB() { return this._sizeInGB.HasValue; } /// /// Gets and sets the property Throughput. /// /// The throughput, in mebibyte per second (MiB/s). This optional parameter can be a number /// from 125 - 1000 and is valid only for gp3 volumes. /// /// [AWSProperty(Min=0)] public int Throughput { get { return this._throughput.GetValueOrDefault(); } set { this._throughput = value; } } // Check to see if Throughput property is set internal bool IsSetThroughput() { return this._throughput.HasValue; } /// /// Gets and sets the property VolumeType. /// /// The volume type. Volume types supported are gp3, gp2, io1, st1, sc1, and standard. /// /// [AWSProperty(Required=true)] 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; } } }