/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a volume.See Also:
AWS API
* Reference
Information about the volume attachments.
*/ inline const Aws::VectorInformation about the volume attachments.
*/ inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; } /** *Information about the volume attachments.
*/ inline void SetAttachments(const Aws::VectorInformation about the volume attachments.
*/ inline void SetAttachments(Aws::VectorInformation about the volume attachments.
*/ inline Volume& WithAttachments(const Aws::VectorInformation about the volume attachments.
*/ inline Volume& WithAttachments(Aws::VectorInformation about the volume attachments.
*/ inline Volume& AddAttachments(const VolumeAttachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; } /** *Information about the volume attachments.
*/ inline Volume& AddAttachments(VolumeAttachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; } /** *The Availability Zone for the volume.
*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *The Availability Zone for the volume.
*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *The Availability Zone for the volume.
*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *The Availability Zone for the volume.
*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *The Availability Zone for the volume.
*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *The Availability Zone for the volume.
*/ inline Volume& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The Availability Zone for the volume.
*/ inline Volume& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The Availability Zone for the volume.
*/ inline Volume& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *The time stamp when volume creation was initiated.
*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *The time stamp when volume creation was initiated.
*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *The time stamp when volume creation was initiated.
*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *The time stamp when volume creation was initiated.
*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *The time stamp when volume creation was initiated.
*/ inline Volume& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *The time stamp when volume creation was initiated.
*/ inline Volume& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *Indicates whether the volume is encrypted.
*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *Indicates whether the volume is encrypted.
*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *Indicates whether the volume is encrypted.
*/ inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; } /** *Indicates whether the volume is encrypted.
*/ inline Volume& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key * that was used to protect the volume encryption key for the volume.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key * that was used to protect the volume encryption key for the volume.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key * that was used to protect the volume encryption key for the volume.
*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key * that was used to protect the volume encryption key for the volume.
*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key * that was used to protect the volume encryption key for the volume.
*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key * that was used to protect the volume encryption key for the volume.
*/ inline Volume& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key * that was used to protect the volume encryption key for the volume.
*/ inline Volume& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key * that was used to protect the volume encryption key for the volume.
*/ inline Volume& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *The Amazon Resource Name (ARN) of the Outpost.
*/ inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; } /** *The Amazon Resource Name (ARN) of the Outpost.
*/ inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the Outpost.
*/ inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; } /** *The Amazon Resource Name (ARN) of the Outpost.
*/ inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the Outpost.
*/ inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); } /** *The Amazon Resource Name (ARN) of the Outpost.
*/ inline Volume& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the Outpost.
*/ inline Volume& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the Outpost.
*/ inline Volume& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;} /** *The size of the volume, in GiBs.
*/ inline int GetSize() const{ return m_size; } /** *The size of the volume, in GiBs.
*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *The size of the volume, in GiBs.
*/ inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; } /** *The size of the volume, in GiBs.
*/ inline Volume& WithSize(int value) { SetSize(value); return *this;} /** *The snapshot from which the volume was created, if applicable.
*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *The snapshot from which the volume was created, if applicable.
*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *The snapshot from which the volume was created, if applicable.
*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *The snapshot from which the volume was created, if applicable.
*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *The snapshot from which the volume was created, if applicable.
*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *The snapshot from which the volume was created, if applicable.
*/ inline Volume& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *The snapshot from which the volume was created, if applicable.
*/ inline Volume& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *The snapshot from which the volume was created, if applicable.
*/ inline Volume& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *The volume state.
*/ inline const VolumeState& GetState() const{ return m_state; } /** *The volume state.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The volume state.
*/ inline void SetState(const VolumeState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The volume state.
*/ inline void SetState(VolumeState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The volume state.
*/ inline Volume& WithState(const VolumeState& value) { SetState(value); return *this;} /** *The volume state.
*/ inline Volume& WithState(VolumeState&& value) { SetState(std::move(value)); return *this;} /** *The ID of the volume.
*/ inline const Aws::String& GetVolumeId() const{ return m_volumeId; } /** *The ID of the volume.
*/ inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; } /** *The ID of the volume.
*/ inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; } /** *The ID of the volume.
*/ inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); } /** *The ID of the volume.
*/ inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); } /** *The ID of the volume.
*/ inline Volume& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;} /** *The ID of the volume.
*/ inline Volume& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;} /** *The ID of the volume.
*/ inline Volume& WithVolumeId(const char* value) { SetVolumeId(value); return *this;} /** *The number of I/O operations per second (IOPS). For gp3
,
* io1
, and io2
volumes, this represents the number of
* IOPS that are provisioned for the volume. For gp2
volumes, this
* represents the baseline performance of the volume and the rate at which the
* volume accumulates I/O credits for bursting.
The number of I/O operations per second (IOPS). For gp3
,
* io1
, and io2
volumes, this represents the number of
* IOPS that are provisioned for the volume. For gp2
volumes, this
* represents the baseline performance of the volume and the rate at which the
* volume accumulates I/O credits for bursting.
The number of I/O operations per second (IOPS). For gp3
,
* io1
, and io2
volumes, this represents the number of
* IOPS that are provisioned for the volume. For gp2
volumes, this
* represents the baseline performance of the volume and the rate at which the
* volume accumulates I/O credits for bursting.
The number of I/O operations per second (IOPS). For gp3
,
* io1
, and io2
volumes, this represents the number of
* IOPS that are provisioned for the volume. For gp2
volumes, this
* represents the baseline performance of the volume and the rate at which the
* volume accumulates I/O credits for bursting.
Any tags assigned to the volume.
*/ inline const Aws::VectorAny tags assigned to the volume.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Any tags assigned to the volume.
*/ inline void SetTags(const Aws::VectorAny tags assigned to the volume.
*/ inline void SetTags(Aws::VectorAny tags assigned to the volume.
*/ inline Volume& WithTags(const Aws::VectorAny tags assigned to the volume.
*/ inline Volume& WithTags(Aws::VectorAny tags assigned to the volume.
*/ inline Volume& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Any tags assigned to the volume.
*/ inline Volume& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(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 Volume& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;} /** *The volume type.
*/ inline Volume& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;} /** *Indicates whether the volume was created using fast snapshot restore.
*/ inline bool GetFastRestored() const{ return m_fastRestored; } /** *Indicates whether the volume was created using fast snapshot restore.
*/ inline bool FastRestoredHasBeenSet() const { return m_fastRestoredHasBeenSet; } /** *Indicates whether the volume was created using fast snapshot restore.
*/ inline void SetFastRestored(bool value) { m_fastRestoredHasBeenSet = true; m_fastRestored = value; } /** *Indicates whether the volume was created using fast snapshot restore.
*/ inline Volume& WithFastRestored(bool value) { SetFastRestored(value); return *this;} /** *Indicates whether Amazon EBS Multi-Attach is enabled.
*/ inline bool GetMultiAttachEnabled() const{ return m_multiAttachEnabled; } /** *Indicates whether Amazon EBS Multi-Attach is enabled.
*/ inline bool MultiAttachEnabledHasBeenSet() const { return m_multiAttachEnabledHasBeenSet; } /** *Indicates whether Amazon EBS Multi-Attach is enabled.
*/ inline void SetMultiAttachEnabled(bool value) { m_multiAttachEnabledHasBeenSet = true; m_multiAttachEnabled = value; } /** *Indicates whether Amazon EBS Multi-Attach is enabled.
*/ inline Volume& WithMultiAttachEnabled(bool value) { SetMultiAttachEnabled(value); return *this;} /** *The throughput that the volume supports, in MiB/s.
*/ inline int GetThroughput() const{ return m_throughput; } /** *The throughput that the volume supports, in MiB/s.
*/ inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; } /** *The throughput that the volume supports, in MiB/s.
*/ inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; } /** *The throughput that the volume supports, in MiB/s.
*/ inline Volume& WithThroughput(int value) { SetThroughput(value); return *this;} /** *Reserved for future use.
*/ inline const SSEType& GetSseType() const{ return m_sseType; } /** *Reserved for future use.
*/ inline bool SseTypeHasBeenSet() const { return m_sseTypeHasBeenSet; } /** *Reserved for future use.
*/ inline void SetSseType(const SSEType& value) { m_sseTypeHasBeenSet = true; m_sseType = value; } /** *Reserved for future use.
*/ inline void SetSseType(SSEType&& value) { m_sseTypeHasBeenSet = true; m_sseType = std::move(value); } /** *Reserved for future use.
*/ inline Volume& WithSseType(const SSEType& value) { SetSseType(value); return *this;} /** *Reserved for future use.
*/ inline Volume& WithSseType(SSEType&& value) { SetSseType(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline Volume& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline Volume& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector