/* * 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 { /// /// Parameters that are used to automatically set up EBS volumes when an instance is launched. /// public partial class AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails { private bool? _deleteOnTermination; private bool? _encrypted; private int? _iops; private string _snapshotId; private int? _volumeSize; private string _volumeType; /// /// Gets and sets the property DeleteOnTermination. /// /// Whether to delete the volume when the instance is terminated. /// /// public bool DeleteOnTermination { get { return this._deleteOnTermination.GetValueOrDefault(); } set { this._deleteOnTermination = value; } } // Check to see if DeleteOnTermination property is set internal bool IsSetDeleteOnTermination() { return this._deleteOnTermination.HasValue; } /// /// Gets and sets the property Encrypted. /// /// Whether to encrypt the volume. /// /// 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 Iops. /// /// The number of input/output (I/O) operations per second (IOPS) to provision for the /// volume. /// /// /// /// Only supported for gp3 or io1 volumes. Required for io1 /// volumes. Not used with standard, gp2, st1, /// or sc1 volumes. /// /// 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 SnapshotId. /// /// The snapshot ID of the volume to use. /// /// /// /// You must specify either VolumeSize or SnapshotId. /// /// 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 VolumeSize. /// /// The volume size, in GiBs. The following are the supported volumes sizes for each volume /// type: /// /// /// /// You must specify either SnapshotId or VolumeSize. If you /// specify both SnapshotId and VolumeSize, the volume size /// must be equal or greater than the size of the snapshot. /// /// 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. Valid values are as follows: /// /// /// 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; } } }