/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the snapshot created from the imported disk.See
* Also:
AWS
* API Reference
A description for the snapshot.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description for the snapshot.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description for the snapshot.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description for the snapshot.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description for the snapshot.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description for the snapshot.
*/ inline SnapshotDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description for the snapshot.
*/ inline SnapshotDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description for the snapshot.
*/ inline SnapshotDetail& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The block device mapping for the snapshot.
*/ inline const Aws::String& GetDeviceName() const{ return m_deviceName; } /** *The block device mapping for the snapshot.
*/ inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; } /** *The block device mapping for the snapshot.
*/ inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; } /** *The block device mapping for the snapshot.
*/ inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); } /** *The block device mapping for the snapshot.
*/ inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); } /** *The block device mapping for the snapshot.
*/ inline SnapshotDetail& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;} /** *The block device mapping for the snapshot.
*/ inline SnapshotDetail& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;} /** *The block device mapping for the snapshot.
*/ inline SnapshotDetail& WithDeviceName(const char* value) { SetDeviceName(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 SnapshotDetail& WithDiskImageSize(double value) { SetDiskImageSize(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 SnapshotDetail& WithFormat(const Aws::String& value) { SetFormat(value); return *this;} /** *The format of the disk image from which the snapshot is created.
*/ inline SnapshotDetail& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;} /** *The format of the disk image from which the snapshot is created.
*/ inline SnapshotDetail& WithFormat(const char* value) { SetFormat(value); return *this;} /** *The percentage of progress for the task.
*/ inline const Aws::String& GetProgress() const{ return m_progress; } /** *The percentage of progress for the task.
*/ inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; } /** *The percentage of progress for the task.
*/ inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; } /** *The percentage of progress for the task.
*/ inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); } /** *The percentage of progress for the task.
*/ inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); } /** *The percentage of progress for the task.
*/ inline SnapshotDetail& WithProgress(const Aws::String& value) { SetProgress(value); return *this;} /** *The percentage of progress for the task.
*/ inline SnapshotDetail& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;} /** *The percentage of progress for the task.
*/ inline SnapshotDetail& 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 SnapshotDetail& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *The snapshot ID of the disk being imported.
*/ inline SnapshotDetail& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *The snapshot ID of the disk being imported.
*/ inline SnapshotDetail& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *A brief status of the snapshot creation.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *A brief status of the snapshot creation.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *A brief status of the snapshot creation.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *A brief status of the snapshot creation.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *A brief status of the snapshot creation.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *A brief status of the snapshot creation.
*/ inline SnapshotDetail& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *A brief status of the snapshot creation.
*/ inline SnapshotDetail& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *A brief status of the snapshot creation.
*/ inline SnapshotDetail& WithStatus(const char* value) { SetStatus(value); return *this;} /** *A detailed status message for the snapshot creation.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *A detailed status message for the snapshot creation.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *A detailed status message for the snapshot creation.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *A detailed status message for the snapshot creation.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *A detailed status message for the snapshot creation.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *A detailed status message for the snapshot creation.
*/ inline SnapshotDetail& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *A detailed status message for the snapshot creation.
*/ inline SnapshotDetail& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *A detailed status message for the snapshot creation.
*/ inline SnapshotDetail& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *The URL used to access the disk image.
*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *The URL used to access the disk image.
*/ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** *The URL used to access the disk image.
*/ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** *The URL used to access the disk image.
*/ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** *The URL used to access the disk image.
*/ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** *The URL used to access the disk image.
*/ inline SnapshotDetail& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *The URL used to access the disk image.
*/ inline SnapshotDetail& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *The URL used to access the disk image.
*/ inline SnapshotDetail& 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 SnapshotDetail& WithUserBucket(const UserBucketDetails& value) { SetUserBucket(value); return *this;} /** *The Amazon S3 bucket for the disk image.
*/ inline SnapshotDetail& WithUserBucket(UserBucketDetails&& value) { SetUserBucket(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; double m_diskImageSize; bool m_diskImageSizeHasBeenSet = false; Aws::String m_format; bool m_formatHasBeenSet = 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