/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about the import snapshot task.See Also:
AWS
* API Reference
The description of the snapshot.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the snapshot.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the snapshot.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the snapshot.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the snapshot.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the snapshot.
*/ inline SnapshotTaskDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the snapshot.
*/ inline SnapshotTaskDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the snapshot.
*/ inline SnapshotTaskDetail& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The size of the disk in the snapshot, in GiB.
*/ inline double GetDiskImageSize() const{ return m_diskImageSize; } /** *The size of the disk in the snapshot, in GiB.
*/ inline bool DiskImageSizeHasBeenSet() const { return m_diskImageSizeHasBeenSet; } /** *The size of the disk in the snapshot, in GiB.
*/ inline void SetDiskImageSize(double value) { m_diskImageSizeHasBeenSet = true; m_diskImageSize = value; } /** *The size of the disk in the snapshot, in GiB.
*/ inline SnapshotTaskDetail& WithDiskImageSize(double value) { SetDiskImageSize(value); return *this;} /** *Indicates whether the snapshot is encrypted.
*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *Indicates whether the snapshot is encrypted.
*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *Indicates whether the snapshot is encrypted.
*/ inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; } /** *Indicates whether the snapshot is encrypted.
*/ inline SnapshotTaskDetail& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *The format of the disk image from which the snapshot is created.
*/ inline const Aws::String& GetFormat() const{ return m_format; } /** *The format of the disk image from which the snapshot is created.
*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *The format of the disk image from which the snapshot is created.
*/ inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; } /** *The format of the disk image from which the snapshot is created.
*/ inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *The format of the disk image from which the snapshot is created.
*/ inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); } /** *The format of the disk image from which the snapshot is created.
*/ inline SnapshotTaskDetail& WithFormat(const Aws::String& value) { SetFormat(value); return *this;} /** *The format of the disk image from which the snapshot is created.
*/ inline SnapshotTaskDetail& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;} /** *The format of the disk image from which the snapshot is created.
*/ inline SnapshotTaskDetail& WithFormat(const char* value) { SetFormat(value); return *this;} /** *The identifier for the KMS key that was used to create the encrypted * snapshot.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *The identifier for the KMS key that was used to create the encrypted * snapshot.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *The identifier for the KMS key that was used to create the encrypted * snapshot.
*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *The identifier for the KMS key that was used to create the encrypted * snapshot.
*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *The identifier for the KMS key that was used to create the encrypted * snapshot.
*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *The identifier for the KMS key that was used to create the encrypted * snapshot.
*/ inline SnapshotTaskDetail& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *The identifier for the KMS key that was used to create the encrypted * snapshot.
*/ inline SnapshotTaskDetail& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *The identifier for the KMS key that was used to create the encrypted * snapshot.
*/ inline SnapshotTaskDetail& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *The percentage of completion for the import snapshot task.
*/ inline const Aws::String& GetProgress() const{ return m_progress; } /** *The percentage of completion for the import snapshot task.
*/ inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; } /** *The percentage of completion for the import snapshot task.
*/ inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; } /** *The percentage of completion for the import snapshot task.
*/ inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); } /** *The percentage of completion for the import snapshot task.
*/ inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); } /** *The percentage of completion for the import snapshot task.
*/ inline SnapshotTaskDetail& WithProgress(const Aws::String& value) { SetProgress(value); return *this;} /** *The percentage of completion for the import snapshot task.
*/ inline SnapshotTaskDetail& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;} /** *The percentage of completion for the import snapshot task.
*/ inline SnapshotTaskDetail& WithProgress(const char* value) { SetProgress(value); return *this;} /** *The snapshot ID of the disk being imported.
*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *The snapshot ID of the disk being imported.
*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *The snapshot ID of the disk being imported.
*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *The snapshot ID of the disk being imported.
*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *The snapshot ID of the disk being imported.
*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *The snapshot ID of the disk being imported.
*/ inline SnapshotTaskDetail& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *The snapshot ID of the disk being imported.
*/ inline SnapshotTaskDetail& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *The snapshot ID of the disk being imported.
*/ inline SnapshotTaskDetail& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *A brief status for the import snapshot task.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *A brief status for the import snapshot task.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *A brief status for the import snapshot task.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *A brief status for the import snapshot task.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *A brief status for the import snapshot task.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *A brief status for the import snapshot task.
*/ inline SnapshotTaskDetail& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *A brief status for the import snapshot task.
*/ inline SnapshotTaskDetail& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *A brief status for the import snapshot task.
*/ inline SnapshotTaskDetail& WithStatus(const char* value) { SetStatus(value); return *this;} /** *A detailed status message for the import snapshot task.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *A detailed status message for the import snapshot task.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *A detailed status message for the import snapshot task.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *A detailed status message for the import snapshot task.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *A detailed status message for the import snapshot task.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *A detailed status message for the import snapshot task.
*/ inline SnapshotTaskDetail& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *A detailed status message for the import snapshot task.
*/ inline SnapshotTaskDetail& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *A detailed status message for the import snapshot task.
*/ inline SnapshotTaskDetail& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *The URL of the disk image from which the snapshot is created.
*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *The URL of the disk image from which the snapshot is created.
*/ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** *The URL of the disk image from which the snapshot is created.
*/ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** *The URL of the disk image from which the snapshot is created.
*/ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** *The URL of the disk image from which the snapshot is created.
*/ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** *The URL of the disk image from which the snapshot is created.
*/ inline SnapshotTaskDetail& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *The URL of the disk image from which the snapshot is created.
*/ inline SnapshotTaskDetail& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *The URL of the disk image from which the snapshot is created.
*/ inline SnapshotTaskDetail& WithUrl(const char* value) { SetUrl(value); return *this;} /** *The Amazon S3 bucket for the disk image.
*/ inline const UserBucketDetails& GetUserBucket() const{ return m_userBucket; } /** *The Amazon S3 bucket for the disk image.
*/ inline bool UserBucketHasBeenSet() const { return m_userBucketHasBeenSet; } /** *The Amazon S3 bucket for the disk image.
*/ inline void SetUserBucket(const UserBucketDetails& value) { m_userBucketHasBeenSet = true; m_userBucket = value; } /** *The Amazon S3 bucket for the disk image.
*/ inline void SetUserBucket(UserBucketDetails&& value) { m_userBucketHasBeenSet = true; m_userBucket = std::move(value); } /** *The Amazon S3 bucket for the disk image.
*/ inline SnapshotTaskDetail& WithUserBucket(const UserBucketDetails& value) { SetUserBucket(value); return *this;} /** *The Amazon S3 bucket for the disk image.
*/ inline SnapshotTaskDetail& WithUserBucket(UserBucketDetails&& value) { SetUserBucket(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; double m_diskImageSize; bool m_diskImageSizeHasBeenSet = false; bool m_encrypted; bool m_encryptedHasBeenSet = false; Aws::String m_format; bool m_formatHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::String m_progress; bool m_progressHasBeenSet = false; Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::String m_url; bool m_urlHasBeenSet = false; UserBucketDetails m_userBucket; bool m_userBucketHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws