/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Amazon EBS-specific block device mapping specifications.See
* Also:
AWS
* API Reference
Use to configure device encryption.
*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *Use to configure device encryption.
*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *Use to configure device encryption.
*/ inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; } /** *Use to configure device encryption.
*/ inline EbsInstanceBlockDeviceSpecification& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *Use to configure delete on termination of the associated device.
*/ inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; } /** *Use to configure delete on termination of the associated device.
*/ inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; } /** *Use to configure delete on termination of the associated device.
*/ inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; } /** *Use to configure delete on termination of the associated device.
*/ inline EbsInstanceBlockDeviceSpecification& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;} /** *Use to configure device IOPS.
*/ inline int GetIops() const{ return m_iops; } /** *Use to configure device IOPS.
*/ inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; } /** *Use to configure device IOPS.
*/ inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; } /** *Use to configure device IOPS.
*/ inline EbsInstanceBlockDeviceSpecification& WithIops(int value) { SetIops(value); return *this;} /** *Use to configure the KMS key to use when encrypting the device.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *Use to configure the KMS key to use when encrypting the device.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *Use to configure the KMS key to use when encrypting the device.
*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *Use to configure the KMS key to use when encrypting the device.
*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *Use to configure the KMS key to use when encrypting the device.
*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *Use to configure the KMS key to use when encrypting the device.
*/ inline EbsInstanceBlockDeviceSpecification& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *Use to configure the KMS key to use when encrypting the device.
*/ inline EbsInstanceBlockDeviceSpecification& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *Use to configure the KMS key to use when encrypting the device.
*/ inline EbsInstanceBlockDeviceSpecification& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *The snapshot that defines the device contents.
*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *The snapshot that defines the device contents.
*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *The snapshot that defines the device contents.
*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *The snapshot that defines the device contents.
*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *The snapshot that defines the device contents.
*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *The snapshot that defines the device contents.
*/ inline EbsInstanceBlockDeviceSpecification& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *The snapshot that defines the device contents.
*/ inline EbsInstanceBlockDeviceSpecification& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *The snapshot that defines the device contents.
*/ inline EbsInstanceBlockDeviceSpecification& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *Use to override the device's volume size.
*/ inline int GetVolumeSize() const{ return m_volumeSize; } /** *Use to override the device's volume size.
*/ inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; } /** *Use to override the device's volume size.
*/ inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; } /** *Use to override the device's volume size.
*/ inline EbsInstanceBlockDeviceSpecification& WithVolumeSize(int value) { SetVolumeSize(value); return *this;} /** *Use to override the device's volume type.
*/ inline const EbsVolumeType& GetVolumeType() const{ return m_volumeType; } /** *Use to override the device's volume type.
*/ inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; } /** *Use to override the device's volume type.
*/ inline void SetVolumeType(const EbsVolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; } /** *Use to override the device's volume type.
*/ inline void SetVolumeType(EbsVolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); } /** *Use to override the device's volume type.
*/ inline EbsInstanceBlockDeviceSpecification& WithVolumeType(const EbsVolumeType& value) { SetVolumeType(value); return *this;} /** *Use to override the device's volume type.
*/ inline EbsInstanceBlockDeviceSpecification& WithVolumeType(EbsVolumeType&& value) { SetVolumeType(std::move(value)); return *this;} /** *For GP3 volumes only – The throughput in MiB/s that the volume * supports.
*/ inline int GetThroughput() const{ return m_throughput; } /** *For GP3 volumes only – The throughput in MiB/s that the volume * supports.
*/ inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; } /** *For GP3 volumes only – The throughput in MiB/s that the volume * supports.
*/ inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; } /** *For GP3 volumes only – The throughput in MiB/s that the volume * supports.
*/ inline EbsInstanceBlockDeviceSpecification& WithThroughput(int value) { SetThroughput(value); return *this;} private: bool m_encrypted; bool m_encryptedHasBeenSet = false; bool m_deleteOnTermination; bool m_deleteOnTerminationHasBeenSet = 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_volumeSize; bool m_volumeSizeHasBeenSet = false; EbsVolumeType m_volumeType; bool m_volumeTypeHasBeenSet = false; int m_throughput; bool m_throughputHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws