/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EBS { namespace Model { class StartSnapshotResult { public: AWS_EBS_API StartSnapshotResult(); AWS_EBS_API StartSnapshotResult(const Aws::AmazonWebServiceResult& result); AWS_EBS_API StartSnapshotResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The description of the snapshot.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the snapshot.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description of the snapshot.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The description of the snapshot.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description of the snapshot.

*/ inline StartSnapshotResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the snapshot.

*/ inline StartSnapshotResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the snapshot.

*/ inline StartSnapshotResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ID of the snapshot.

*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *

The ID of the snapshot.

*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; } /** *

The ID of the snapshot.

*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); } /** *

The ID of the snapshot.

*/ inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); } /** *

The ID of the snapshot.

*/ inline StartSnapshotResult& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *

The ID of the snapshot.

*/ inline StartSnapshotResult& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *

The ID of the snapshot.

*/ inline StartSnapshotResult& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *

The Amazon Web Services account ID of the snapshot owner.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The Amazon Web Services account ID of the snapshot owner.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerId = value; } /** *

The Amazon Web Services account ID of the snapshot owner.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerId = std::move(value); } /** *

The Amazon Web Services account ID of the snapshot owner.

*/ inline void SetOwnerId(const char* value) { m_ownerId.assign(value); } /** *

The Amazon Web Services account ID of the snapshot owner.

*/ inline StartSnapshotResult& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The Amazon Web Services account ID of the snapshot owner.

*/ inline StartSnapshotResult& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID of the snapshot owner.

*/ inline StartSnapshotResult& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *

The status of the snapshot.

*/ inline const Status& GetStatus() const{ return m_status; } /** *

The status of the snapshot.

*/ inline void SetStatus(const Status& value) { m_status = value; } /** *

The status of the snapshot.

*/ inline void SetStatus(Status&& value) { m_status = std::move(value); } /** *

The status of the snapshot.

*/ inline StartSnapshotResult& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *

The status of the snapshot.

*/ inline StartSnapshotResult& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} /** *

The timestamp when the snapshot was created.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The timestamp when the snapshot was created.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** *

The timestamp when the snapshot was created.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** *

The timestamp when the snapshot was created.

*/ inline StartSnapshotResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The timestamp when the snapshot was created.

*/ inline StartSnapshotResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The size of the volume, in GiB.

*/ inline long long GetVolumeSize() const{ return m_volumeSize; } /** *

The size of the volume, in GiB.

*/ inline void SetVolumeSize(long long value) { m_volumeSize = value; } /** *

The size of the volume, in GiB.

*/ inline StartSnapshotResult& WithVolumeSize(long long value) { SetVolumeSize(value); return *this;} /** *

The size of the blocks in the snapshot, in bytes.

*/ inline int GetBlockSize() const{ return m_blockSize; } /** *

The size of the blocks in the snapshot, in bytes.

*/ inline void SetBlockSize(int value) { m_blockSize = value; } /** *

The size of the blocks in the snapshot, in bytes.

*/ inline StartSnapshotResult& WithBlockSize(int value) { SetBlockSize(value); return *this;} /** *

The tags applied to the snapshot. You can specify up to 50 tags per snapshot. * For more information, see * Tagging your Amazon EC2 resources in the Amazon Elastic Compute Cloud * User Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags applied to the snapshot. You can specify up to 50 tags per snapshot. * For more information, see * Tagging your Amazon EC2 resources in the Amazon Elastic Compute Cloud * User Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tags = value; } /** *

The tags applied to the snapshot. You can specify up to 50 tags per snapshot. * For more information, see * Tagging your Amazon EC2 resources in the Amazon Elastic Compute Cloud * User Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tags = std::move(value); } /** *

The tags applied to the snapshot. You can specify up to 50 tags per snapshot. * For more information, see * Tagging your Amazon EC2 resources in the Amazon Elastic Compute Cloud * User Guide.

*/ inline StartSnapshotResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags applied to the snapshot. You can specify up to 50 tags per snapshot. * For more information, see * Tagging your Amazon EC2 resources in the Amazon Elastic Compute Cloud * User Guide.

*/ inline StartSnapshotResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags applied to the snapshot. You can specify up to 50 tags per snapshot. * For more information, see * Tagging your Amazon EC2 resources in the Amazon Elastic Compute Cloud * User Guide.

*/ inline StartSnapshotResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

The tags applied to the snapshot. You can specify up to 50 tags per snapshot. * For more information, see * Tagging your Amazon EC2 resources in the Amazon Elastic Compute Cloud * User Guide.

*/ inline StartSnapshotResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } /** *

The ID of the parent snapshot.

*/ inline const Aws::String& GetParentSnapshotId() const{ return m_parentSnapshotId; } /** *

The ID of the parent snapshot.

*/ inline void SetParentSnapshotId(const Aws::String& value) { m_parentSnapshotId = value; } /** *

The ID of the parent snapshot.

*/ inline void SetParentSnapshotId(Aws::String&& value) { m_parentSnapshotId = std::move(value); } /** *

The ID of the parent snapshot.

*/ inline void SetParentSnapshotId(const char* value) { m_parentSnapshotId.assign(value); } /** *

The ID of the parent snapshot.

*/ inline StartSnapshotResult& WithParentSnapshotId(const Aws::String& value) { SetParentSnapshotId(value); return *this;} /** *

The ID of the parent snapshot.

*/ inline StartSnapshotResult& WithParentSnapshotId(Aws::String&& value) { SetParentSnapshotId(std::move(value)); return *this;} /** *

The ID of the parent snapshot.

*/ inline StartSnapshotResult& WithParentSnapshotId(const char* value) { SetParentSnapshotId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used * to encrypt the snapshot.

*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used * to encrypt the snapshot.

*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArn = value; } /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used * to encrypt the snapshot.

*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used * to encrypt the snapshot.

*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used * to encrypt the snapshot.

*/ inline StartSnapshotResult& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used * to encrypt the snapshot.

*/ inline StartSnapshotResult& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used * to encrypt the snapshot.

*/ inline StartSnapshotResult& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} /** *

Reserved for future use.

*/ inline const SSEType& GetSseType() const{ return m_sseType; } /** *

Reserved for future use.

*/ inline void SetSseType(const SSEType& value) { m_sseType = value; } /** *

Reserved for future use.

*/ inline void SetSseType(SSEType&& value) { m_sseType = std::move(value); } /** *

Reserved for future use.

*/ inline StartSnapshotResult& WithSseType(const SSEType& value) { SetSseType(value); return *this;} /** *

Reserved for future use.

*/ inline StartSnapshotResult& WithSseType(SSEType&& value) { SetSseType(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline StartSnapshotResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline StartSnapshotResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline StartSnapshotResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_description; Aws::String m_snapshotId; Aws::String m_ownerId; Status m_status; Aws::Utils::DateTime m_startTime; long long m_volumeSize; int m_blockSize; Aws::Vector m_tags; Aws::String m_parentSnapshotId; Aws::String m_kmsKeyArn; SSEType m_sseType; Aws::String m_requestId; }; } // namespace Model } // namespace EBS } // namespace Aws