/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class ExportImageResponse { public: AWS_EC2_API ExportImageResponse(); AWS_EC2_API ExportImageResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API ExportImageResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

A description of the image being exported.

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

A description of the image being exported.

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

A description of the image being exported.

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

A description of the image being exported.

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

A description of the image being exported.

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

A description of the image being exported.

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

A description of the image being exported.

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

The disk image format for the exported image.

*/ inline const DiskImageFormat& GetDiskImageFormat() const{ return m_diskImageFormat; } /** *

The disk image format for the exported image.

*/ inline void SetDiskImageFormat(const DiskImageFormat& value) { m_diskImageFormat = value; } /** *

The disk image format for the exported image.

*/ inline void SetDiskImageFormat(DiskImageFormat&& value) { m_diskImageFormat = std::move(value); } /** *

The disk image format for the exported image.

*/ inline ExportImageResponse& WithDiskImageFormat(const DiskImageFormat& value) { SetDiskImageFormat(value); return *this;} /** *

The disk image format for the exported image.

*/ inline ExportImageResponse& WithDiskImageFormat(DiskImageFormat&& value) { SetDiskImageFormat(std::move(value)); return *this;} /** *

The ID of the export image task.

*/ inline const Aws::String& GetExportImageTaskId() const{ return m_exportImageTaskId; } /** *

The ID of the export image task.

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

The ID of the export image task.

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

The ID of the export image task.

*/ inline void SetExportImageTaskId(const char* value) { m_exportImageTaskId.assign(value); } /** *

The ID of the export image task.

*/ inline ExportImageResponse& WithExportImageTaskId(const Aws::String& value) { SetExportImageTaskId(value); return *this;} /** *

The ID of the export image task.

*/ inline ExportImageResponse& WithExportImageTaskId(Aws::String&& value) { SetExportImageTaskId(std::move(value)); return *this;} /** *

The ID of the export image task.

*/ inline ExportImageResponse& WithExportImageTaskId(const char* value) { SetExportImageTaskId(value); return *this;} /** *

The ID of the image.

*/ inline const Aws::String& GetImageId() const{ return m_imageId; } /** *

The ID of the image.

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

The ID of the image.

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

The ID of the image.

*/ inline void SetImageId(const char* value) { m_imageId.assign(value); } /** *

The ID of the image.

*/ inline ExportImageResponse& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *

The ID of the image.

*/ inline ExportImageResponse& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *

The ID of the image.

*/ inline ExportImageResponse& WithImageId(const char* value) { SetImageId(value); return *this;} /** *

The name of the role that grants VM Import/Export permission to export images * to your Amazon S3 bucket.

*/ inline const Aws::String& GetRoleName() const{ return m_roleName; } /** *

The name of the role that grants VM Import/Export permission to export images * to your Amazon S3 bucket.

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

The name of the role that grants VM Import/Export permission to export images * to your Amazon S3 bucket.

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

The name of the role that grants VM Import/Export permission to export images * to your Amazon S3 bucket.

*/ inline void SetRoleName(const char* value) { m_roleName.assign(value); } /** *

The name of the role that grants VM Import/Export permission to export images * to your Amazon S3 bucket.

*/ inline ExportImageResponse& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;} /** *

The name of the role that grants VM Import/Export permission to export images * to your Amazon S3 bucket.

*/ inline ExportImageResponse& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;} /** *

The name of the role that grants VM Import/Export permission to export images * to your Amazon S3 bucket.

*/ inline ExportImageResponse& WithRoleName(const char* value) { SetRoleName(value); return *this;} /** *

The percent complete of the export image task.

*/ inline const Aws::String& GetProgress() const{ return m_progress; } /** *

The percent complete of the export image task.

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

The percent complete of the export image task.

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

The percent complete of the export image task.

*/ inline void SetProgress(const char* value) { m_progress.assign(value); } /** *

The percent complete of the export image task.

*/ inline ExportImageResponse& WithProgress(const Aws::String& value) { SetProgress(value); return *this;} /** *

The percent complete of the export image task.

*/ inline ExportImageResponse& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;} /** *

The percent complete of the export image task.

*/ inline ExportImageResponse& WithProgress(const char* value) { SetProgress(value); return *this;} /** *

Information about the destination Amazon S3 bucket.

*/ inline const ExportTaskS3Location& GetS3ExportLocation() const{ return m_s3ExportLocation; } /** *

Information about the destination Amazon S3 bucket.

*/ inline void SetS3ExportLocation(const ExportTaskS3Location& value) { m_s3ExportLocation = value; } /** *

Information about the destination Amazon S3 bucket.

*/ inline void SetS3ExportLocation(ExportTaskS3Location&& value) { m_s3ExportLocation = std::move(value); } /** *

Information about the destination Amazon S3 bucket.

*/ inline ExportImageResponse& WithS3ExportLocation(const ExportTaskS3Location& value) { SetS3ExportLocation(value); return *this;} /** *

Information about the destination Amazon S3 bucket.

*/ inline ExportImageResponse& WithS3ExportLocation(ExportTaskS3Location&& value) { SetS3ExportLocation(std::move(value)); return *this;} /** *

The status of the export image task. The possible values are * active, completed, deleting, and * deleted.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the export image task. The possible values are * active, completed, deleting, and * deleted.

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

The status of the export image task. The possible values are * active, completed, deleting, and * deleted.

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

The status of the export image task. The possible values are * active, completed, deleting, and * deleted.

*/ inline void SetStatus(const char* value) { m_status.assign(value); } /** *

The status of the export image task. The possible values are * active, completed, deleting, and * deleted.

*/ inline ExportImageResponse& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the export image task. The possible values are * active, completed, deleting, and * deleted.

*/ inline ExportImageResponse& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the export image task. The possible values are * active, completed, deleting, and * deleted.

*/ inline ExportImageResponse& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The status message for the export image task.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

The status message for the export image task.

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

The status message for the export image task.

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

The status message for the export image task.

*/ inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); } /** *

The status message for the export image task.

*/ inline ExportImageResponse& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

The status message for the export image task.

*/ inline ExportImageResponse& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

The status message for the export image task.

*/ inline ExportImageResponse& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

Any tags assigned to the export image task.

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

Any tags assigned to the export image task.

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

Any tags assigned to the export image task.

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

Any tags assigned to the export image task.

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

Any tags assigned to the export image task.

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

Any tags assigned to the export image task.

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

Any tags assigned to the export image task.

*/ inline ExportImageResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline ExportImageResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ExportImageResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_description; DiskImageFormat m_diskImageFormat; Aws::String m_exportImageTaskId; Aws::String m_imageId; Aws::String m_roleName; Aws::String m_progress; ExportTaskS3Location m_s3ExportLocation; Aws::String m_status; Aws::String m_statusMessage; Aws::Vector m_tags; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws