/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Parameters that are used to automatically set up EBS volumes when an instance * is launched.

See Also:

AWS * API Reference

*/ class AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails { public: AWS_SECURITYHUB_API AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails(); AWS_SECURITYHUB_API AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Whether to delete the volume when the instance is terminated.

*/ inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; } /** *

Whether to delete the volume when the instance is terminated.

*/ inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; } /** *

Whether to delete the volume when the instance is terminated.

*/ inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; } /** *

Whether to delete the volume when the instance is terminated.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;} /** *

Whether to encrypt the volume.

*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *

Whether to encrypt the volume.

*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *

Whether to encrypt the volume.

*/ inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; } /** *

Whether to encrypt the volume.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *

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.

*/ inline int GetIops() const{ return m_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.

*/ inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; } /** *

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.

*/ inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; } /** *

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.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& WithIops(int value) { SetIops(value); return *this;} /** *

The snapshot ID of the volume to use.

You must specify either * VolumeSize or SnapshotId.

*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *

The snapshot ID of the volume to use.

You must specify either * VolumeSize or SnapshotId.

*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *

The snapshot ID of the volume to use.

You must specify either * VolumeSize or SnapshotId.

*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *

The snapshot ID of the volume to use.

You must specify either * VolumeSize or SnapshotId.

*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *

The snapshot ID of the volume to use.

You must specify either * VolumeSize or SnapshotId.

*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *

The snapshot ID of the volume to use.

You must specify either * VolumeSize or SnapshotId.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *

The snapshot ID of the volume to use.

You must specify either * VolumeSize or SnapshotId.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *

The snapshot ID of the volume to use.

You must specify either * VolumeSize or SnapshotId.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *

The volume size, in GiBs. The following are the supported volumes sizes for * each volume type:

  • gp2 and gp3: 1-16,384

  • io1: * 4-16,384

  • st1 and sc1: 125-16,384

  • standard: * 1-1,024

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.

*/ inline int GetVolumeSize() const{ return m_volumeSize; } /** *

The volume size, in GiBs. The following are the supported volumes sizes for * each volume type:

  • gp2 and gp3: 1-16,384

  • io1: * 4-16,384

  • st1 and sc1: 125-16,384

  • standard: * 1-1,024

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.

*/ inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; } /** *

The volume size, in GiBs. The following are the supported volumes sizes for * each volume type:

  • gp2 and gp3: 1-16,384

  • io1: * 4-16,384

  • st1 and sc1: 125-16,384

  • standard: * 1-1,024

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.

*/ inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; } /** *

The volume size, in GiBs. The following are the supported volumes sizes for * each volume type:

  • gp2 and gp3: 1-16,384

  • io1: * 4-16,384

  • st1 and sc1: 125-16,384

  • standard: * 1-1,024

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.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& WithVolumeSize(int value) { SetVolumeSize(value); return *this;} /** *

The volume type. Valid values are as follows:

  • * gp2

  • gp3

  • * io1

  • sc1

  • * st1

  • standard

*/ inline const Aws::String& GetVolumeType() const{ return m_volumeType; } /** *

The volume type. Valid values are as follows:

  • * gp2

  • gp3

  • * io1

  • sc1

  • * st1

  • standard

*/ inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; } /** *

The volume type. Valid values are as follows:

  • * gp2

  • gp3

  • * io1

  • sc1

  • * st1

  • standard

*/ inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; } /** *

The volume type. Valid values are as follows:

  • * gp2

  • gp3

  • * io1

  • sc1

  • * st1

  • standard

*/ inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); } /** *

The volume type. Valid values are as follows:

  • * gp2

  • gp3

  • * io1

  • sc1

  • * st1

  • standard

*/ inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); } /** *

The volume type. Valid values are as follows:

  • * gp2

  • gp3

  • * io1

  • sc1

  • * st1

  • standard

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;} /** *

The volume type. Valid values are as follows:

  • * gp2

  • gp3

  • * io1

  • sc1

  • * st1

  • standard

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;} /** *

The volume type. Valid values are as follows:

  • * gp2

  • gp3

  • * io1

  • sc1

  • * st1

  • standard

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& WithVolumeType(const char* value) { SetVolumeType(value); return *this;} private: bool m_deleteOnTermination; bool m_deleteOnTerminationHasBeenSet = false; bool m_encrypted; bool m_encryptedHasBeenSet = false; int m_iops; bool m_iopsHasBeenSet = false; Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; int m_volumeSize; bool m_volumeSizeHasBeenSet = false; Aws::String m_volumeType; bool m_volumeTypeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws