/** * 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 for a block device for an Amazon Elastic Block Store (Amazon EBS) * volume in an Amazon EC2 launch template.

See Also:

AWS * API Reference

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

Indicates whether the EBS volume is deleted on instance termination.

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

Indicates whether the EBS volume is deleted on instance termination.

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

Indicates whether the EBS volume is deleted on instance termination.

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

Indicates whether the EBS volume is deleted on instance termination.

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

Indicates whether the EBS volume is encrypted. Encrypted volumes can only be * attached to instances that support Amazon EBS encryption. If you're creating a * volume from a snapshot, you can't specify an encryption value.

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

Indicates whether the EBS volume is encrypted. Encrypted volumes can only be * attached to instances that support Amazon EBS encryption. If you're creating a * volume from a snapshot, you can't specify an encryption value.

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

Indicates whether the EBS volume is encrypted. Encrypted volumes can only be * attached to instances that support Amazon EBS encryption. If you're creating a * volume from a snapshot, you can't specify an encryption value.

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

Indicates whether the EBS volume is encrypted. Encrypted volumes can only be * attached to instances that support Amazon EBS encryption. If you're creating a * volume from a snapshot, you can't specify an encryption value.

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

The number of I/O operations per second (IOPS).

*/ inline int GetIops() const{ return m_iops; } /** *

The number of I/O operations per second (IOPS).

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

The number of I/O operations per second (IOPS).

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

The number of I/O operations per second (IOPS).

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

The Amazon Resource Name (ARN) of the symmetric Key Management Service (KMS) * customer managed key used for encryption.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The Amazon Resource Name (ARN) of the symmetric Key Management Service (KMS) * customer managed key used for encryption.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the symmetric Key Management Service (KMS) * customer managed key used for encryption.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The Amazon Resource Name (ARN) of the symmetric Key Management Service (KMS) * customer managed key used for encryption.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The Amazon Resource Name (ARN) of the symmetric Key Management Service (KMS) * customer managed key used for encryption.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The Amazon Resource Name (ARN) of the symmetric Key Management Service (KMS) * customer managed key used for encryption.

*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the symmetric Key Management Service (KMS) * customer managed key used for encryption.

*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the symmetric Key Management Service (KMS) * customer managed key used for encryption.

*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The ID of the EBS snapshot.

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

The ID of the EBS snapshot.

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

The ID of the EBS snapshot.

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

The ID of the EBS snapshot.

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

The ID of the EBS snapshot.

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

The ID of the EBS snapshot.

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

The ID of the EBS snapshot.

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

The ID of the EBS snapshot.

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

The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s. *

*/ inline int GetThroughput() const{ return m_throughput; } /** *

The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s. *

*/ inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; } /** *

The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s. *

*/ inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; } /** *

The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s. *

*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails& WithThroughput(int value) { SetThroughput(value); return *this;} /** *

The size of the volume, in GiBs. You must specify either a snapshot ID or a * volume size.

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

The size of the volume, in GiBs. You must specify either a snapshot ID or a * volume size.

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

The size of the volume, in GiBs. You must specify either a snapshot ID or a * volume size.

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

The size of the volume, in GiBs. You must specify either a snapshot ID or a * volume size.

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

The volume type.

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

The volume type.

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

The volume type.

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

The volume type.

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

The volume type.

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

The volume type.

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

The volume type.

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

The volume type.

*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails& 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_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; int m_throughput; bool m_throughputHasBeenSet = false; int m_volumeSize; bool m_volumeSizeHasBeenSet = false; Aws::String m_volumeType; bool m_volumeTypeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws