/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about an EC2 volume.See Also:
AWS
* API Reference
Indicates when the volume was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the volume was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the volume was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the volume was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the volume was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the volume was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the volume was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the volume was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Whether the volume is encrypted.
*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *Whether the volume is encrypted.
*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *Whether the volume is encrypted.
*/ inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; } /** *Whether the volume is encrypted.
*/ inline AwsEc2VolumeDetails& WithEncrypted(bool value) { SetEncrypted(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 AwsEc2VolumeDetails& WithSize(int value) { SetSize(value); return *this;} /** *The snapshot from which the volume was created.
*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *The snapshot from which the volume was created.
*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *The snapshot from which the volume was created.
*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *The snapshot from which the volume was created.
*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *The snapshot from which the volume was created.
*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *The snapshot from which the volume was created.
*/ inline AwsEc2VolumeDetails& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *The snapshot from which the volume was created.
*/ inline AwsEc2VolumeDetails& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *The snapshot from which the volume was created.
*/ inline AwsEc2VolumeDetails& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *The volume state.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *The volume state.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The volume state.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *The volume state.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The volume state.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *The volume state.
*/ inline AwsEc2VolumeDetails& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *The volume state.
*/ inline AwsEc2VolumeDetails& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *The volume state.
*/ inline AwsEc2VolumeDetails& WithStatus(const char* value) { SetStatus(value); return *this;} /** *The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) * that was used to protect the volume encryption key for the volume.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) * that was used to protect the volume encryption key for the volume.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) * 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 ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) * 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 ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) * 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 ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) * that was used to protect the volume encryption key for the volume.
*/ inline AwsEc2VolumeDetails& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) * that was used to protect the volume encryption key for the volume.
*/ inline AwsEc2VolumeDetails& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) * that was used to protect the volume encryption key for the volume.
*/ inline AwsEc2VolumeDetails& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *The volume attachments.
*/ inline const Aws::VectorThe volume attachments.
*/ inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; } /** *The volume attachments.
*/ inline void SetAttachments(const Aws::VectorThe volume attachments.
*/ inline void SetAttachments(Aws::VectorThe volume attachments.
*/ inline AwsEc2VolumeDetails& WithAttachments(const Aws::VectorThe volume attachments.
*/ inline AwsEc2VolumeDetails& WithAttachments(Aws::VectorThe volume attachments.
*/ inline AwsEc2VolumeDetails& AddAttachments(const AwsEc2VolumeAttachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; } /** *The volume attachments.
*/ inline AwsEc2VolumeDetails& AddAttachments(AwsEc2VolumeAttachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; } private: Aws::String m_createTime; bool m_createTimeHasBeenSet; bool m_encrypted; bool m_encryptedHasBeenSet; int m_size; bool m_sizeHasBeenSet; Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet; Aws::String m_status; bool m_statusHasBeenSet; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet; Aws::Vector