/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The parameters for a block device for an EBS volume.See Also:
* AWS
* API Reference
Indicates whether the EBS volume is encrypted. Encrypted volumes can only be * attached to instances that support Amazon EBS encryption. If you are 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 are 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 are 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 are creating a * volume from a snapshot, you can't specify an encryption value.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *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 LaunchTemplateEbsBlockDeviceRequest& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;} /** *The number of I/O operations per second (IOPS) to provision for an
* io1 or io2 volume, with a maximum ratio of 50 IOPS/GiB
* for io1, and 500 IOPS/GiB for io2. Range is 100 to
* 64,000 IOPS for volumes in most Regions. Maximum IOPS of 64,000 is guaranteed
* only on Nitro-based
* instances. Other instance families guarantee performance up to 32,000 IOPS.
* For more information, see Amazon
* EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
This parameter is valid only for Provisioned IOPS SSD (io1 and
* io2) volumes.
The number of I/O operations per second (IOPS) to provision for an
* io1 or io2 volume, with a maximum ratio of 50 IOPS/GiB
* for io1, and 500 IOPS/GiB for io2. Range is 100 to
* 64,000 IOPS for volumes in most Regions. Maximum IOPS of 64,000 is guaranteed
* only on Nitro-based
* instances. Other instance families guarantee performance up to 32,000 IOPS.
* For more information, see Amazon
* EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
This parameter is valid only for Provisioned IOPS SSD (io1 and
* io2) volumes.
The number of I/O operations per second (IOPS) to provision for an
* io1 or io2 volume, with a maximum ratio of 50 IOPS/GiB
* for io1, and 500 IOPS/GiB for io2. Range is 100 to
* 64,000 IOPS for volumes in most Regions. Maximum IOPS of 64,000 is guaranteed
* only on Nitro-based
* instances. Other instance families guarantee performance up to 32,000 IOPS.
* For more information, see Amazon
* EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
This parameter is valid only for Provisioned IOPS SSD (io1 and
* io2) volumes.
The number of I/O operations per second (IOPS) to provision for an
* io1 or io2 volume, with a maximum ratio of 50 IOPS/GiB
* for io1, and 500 IOPS/GiB for io2. Range is 100 to
* 64,000 IOPS for volumes in most Regions. Maximum IOPS of 64,000 is guaranteed
* only on Nitro-based
* instances. Other instance families guarantee performance up to 32,000 IOPS.
* For more information, see Amazon
* EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.
This parameter is valid only for Provisioned IOPS SSD (io1 and
* io2) volumes.
The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for * encryption.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for * encryption.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for * encryption.
*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for * encryption.
*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for * encryption.
*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for * encryption.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for * encryption.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for * encryption.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *The ID of the snapshot.
*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *The ID of the snapshot.
*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *The ID of the snapshot.
*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *The ID of the snapshot.
*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *The ID of the snapshot.
*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *The ID of the snapshot.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *The ID of the snapshot.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *The ID of the snapshot.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *The size of the volume, in GiB.
Default: If you're creating the volume * from a snapshot and don't specify a volume size, the default is the snapshot * size.
*/ inline int GetVolumeSize() const{ return m_volumeSize; } /** *The size of the volume, in GiB.
Default: If you're creating the volume * from a snapshot and don't specify a volume size, the default is the snapshot * size.
*/ inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; } /** *The size of the volume, in GiB.
Default: If you're creating the volume * from a snapshot and don't specify a volume size, the default is the snapshot * size.
*/ inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; } /** *The size of the volume, in GiB.
Default: If you're creating the volume * from a snapshot and don't specify a volume size, the default is the snapshot * size.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeSize(int value) { SetVolumeSize(value); return *this;} /** *The volume type.
*/ inline const VolumeType& GetVolumeType() const{ return m_volumeType; } /** *The volume type.
*/ inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; } /** *The volume type.
*/ inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; } /** *The volume type.
*/ inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); } /** *The volume type.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;} /** *The volume type.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;} private: bool m_encrypted; bool m_encryptedHasBeenSet; bool m_deleteOnTermination; bool m_deleteOnTerminationHasBeenSet; int m_iops; bool m_iopsHasBeenSet; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet; Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet; int m_volumeSize; bool m_volumeSizeHasBeenSet; VolumeType m_volumeType; bool m_volumeTypeHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws