355 lines
12 KiB
C++
355 lines
12 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/securityhub/SecurityHub_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/securityhub/model/AwsEc2VolumeAttachment.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SecurityHub
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Details about an EC2 volume.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsEc2VolumeDetails">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_SECURITYHUB_API AwsEc2VolumeDetails
|
|
{
|
|
public:
|
|
AwsEc2VolumeDetails();
|
|
AwsEc2VolumeDetails(Aws::Utils::Json::JsonView jsonValue);
|
|
AwsEc2VolumeDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>Indicates when the volume was created.</p> <p>Uses the <code>date-time</code>
|
|
* format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetCreateTime() const{ return m_createTime; }
|
|
|
|
/**
|
|
* <p>Indicates when the volume was created.</p> <p>Uses the <code>date-time</code>
|
|
* format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates when the volume was created.</p> <p>Uses the <code>date-time</code>
|
|
* format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline void SetCreateTime(const Aws::String& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
|
|
|
|
/**
|
|
* <p>Indicates when the volume was created.</p> <p>Uses the <code>date-time</code>
|
|
* format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline void SetCreateTime(Aws::String&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
|
|
|
|
/**
|
|
* <p>Indicates when the volume was created.</p> <p>Uses the <code>date-time</code>
|
|
* format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline void SetCreateTime(const char* value) { m_createTimeHasBeenSet = true; m_createTime.assign(value); }
|
|
|
|
/**
|
|
* <p>Indicates when the volume was created.</p> <p>Uses the <code>date-time</code>
|
|
* format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithCreateTime(const Aws::String& value) { SetCreateTime(value); return *this;}
|
|
|
|
/**
|
|
* <p>Indicates when the volume was created.</p> <p>Uses the <code>date-time</code>
|
|
* format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithCreateTime(Aws::String&& value) { SetCreateTime(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Indicates when the volume was created.</p> <p>Uses the <code>date-time</code>
|
|
* format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithCreateTime(const char* value) { SetCreateTime(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Whether the volume is encrypted.</p>
|
|
*/
|
|
inline bool GetEncrypted() const{ return m_encrypted; }
|
|
|
|
/**
|
|
* <p>Whether the volume is encrypted.</p>
|
|
*/
|
|
inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Whether the volume is encrypted.</p>
|
|
*/
|
|
inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
|
|
|
|
/**
|
|
* <p>Whether the volume is encrypted.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The size of the volume, in GiBs.</p>
|
|
*/
|
|
inline int GetSize() const{ return m_size; }
|
|
|
|
/**
|
|
* <p>The size of the volume, in GiBs.</p>
|
|
*/
|
|
inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The size of the volume, in GiBs.</p>
|
|
*/
|
|
inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
|
|
|
|
/**
|
|
* <p>The size of the volume, in GiBs.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithSize(int value) { SetSize(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The snapshot from which the volume was created.</p>
|
|
*/
|
|
inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
|
|
|
|
/**
|
|
* <p>The snapshot from which the volume was created.</p>
|
|
*/
|
|
inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The snapshot from which the volume was created.</p>
|
|
*/
|
|
inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
|
|
|
|
/**
|
|
* <p>The snapshot from which the volume was created.</p>
|
|
*/
|
|
inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The snapshot from which the volume was created.</p>
|
|
*/
|
|
inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
|
|
|
|
/**
|
|
* <p>The snapshot from which the volume was created.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The snapshot from which the volume was created.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The snapshot from which the volume was created.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The volume state.</p>
|
|
*/
|
|
inline const Aws::String& GetStatus() const{ return m_status; }
|
|
|
|
/**
|
|
* <p>The volume state.</p>
|
|
*/
|
|
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The volume state.</p>
|
|
*/
|
|
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
|
|
|
|
/**
|
|
* <p>The volume state.</p>
|
|
*/
|
|
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
|
|
|
|
/**
|
|
* <p>The volume state.</p>
|
|
*/
|
|
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
|
|
|
|
/**
|
|
* <p>The volume state.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
|
|
|
|
/**
|
|
* <p>The volume state.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The volume state.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithStatus(const char* value) { SetStatus(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The volume attachments.</p>
|
|
*/
|
|
inline const Aws::Vector<AwsEc2VolumeAttachment>& GetAttachments() const{ return m_attachments; }
|
|
|
|
/**
|
|
* <p>The volume attachments.</p>
|
|
*/
|
|
inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The volume attachments.</p>
|
|
*/
|
|
inline void SetAttachments(const Aws::Vector<AwsEc2VolumeAttachment>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
|
|
|
|
/**
|
|
* <p>The volume attachments.</p>
|
|
*/
|
|
inline void SetAttachments(Aws::Vector<AwsEc2VolumeAttachment>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
|
|
|
|
/**
|
|
* <p>The volume attachments.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithAttachments(const Aws::Vector<AwsEc2VolumeAttachment>& value) { SetAttachments(value); return *this;}
|
|
|
|
/**
|
|
* <p>The volume attachments.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& WithAttachments(Aws::Vector<AwsEc2VolumeAttachment>&& value) { SetAttachments(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The volume attachments.</p>
|
|
*/
|
|
inline AwsEc2VolumeDetails& AddAttachments(const AwsEc2VolumeAttachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The volume attachments.</p>
|
|
*/
|
|
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<AwsEc2VolumeAttachment> m_attachments;
|
|
bool m_attachmentsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SecurityHub
|
|
} // namespace Aws
|