/** * 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 ImportImageResponse { public: AWS_EC2_API ImportImageResponse(); AWS_EC2_API ImportImageResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API ImportImageResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The architecture of the virtual machine.

*/ inline const Aws::String& GetArchitecture() const{ return m_architecture; } /** *

The architecture of the virtual machine.

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

The architecture of the virtual machine.

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

The architecture of the virtual machine.

*/ inline void SetArchitecture(const char* value) { m_architecture.assign(value); } /** *

The architecture of the virtual machine.

*/ inline ImportImageResponse& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;} /** *

The architecture of the virtual machine.

*/ inline ImportImageResponse& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;} /** *

The architecture of the virtual machine.

*/ inline ImportImageResponse& WithArchitecture(const char* value) { SetArchitecture(value); return *this;} /** *

A description of the import task.

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

A description of the import task.

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

A description of the import task.

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

A description of the import task.

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

A description of the import task.

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

A description of the import task.

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

A description of the import task.

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

Indicates whether the AMI is encrypted.

*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *

Indicates whether the AMI is encrypted.

*/ inline void SetEncrypted(bool value) { m_encrypted = value; } /** *

Indicates whether the AMI is encrypted.

*/ inline ImportImageResponse& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *

The target hypervisor of the import task.

*/ inline const Aws::String& GetHypervisor() const{ return m_hypervisor; } /** *

The target hypervisor of the import task.

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

The target hypervisor of the import task.

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

The target hypervisor of the import task.

*/ inline void SetHypervisor(const char* value) { m_hypervisor.assign(value); } /** *

The target hypervisor of the import task.

*/ inline ImportImageResponse& WithHypervisor(const Aws::String& value) { SetHypervisor(value); return *this;} /** *

The target hypervisor of the import task.

*/ inline ImportImageResponse& WithHypervisor(Aws::String&& value) { SetHypervisor(std::move(value)); return *this;} /** *

The target hypervisor of the import task.

*/ inline ImportImageResponse& WithHypervisor(const char* value) { SetHypervisor(value); return *this;} /** *

The ID of the Amazon Machine Image (AMI) created by the import task.

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

The ID of the Amazon Machine Image (AMI) created by the import task.

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

The ID of the Amazon Machine Image (AMI) created by the import task.

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

The ID of the Amazon Machine Image (AMI) created by the import task.

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

The ID of the Amazon Machine Image (AMI) created by the import task.

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

The ID of the Amazon Machine Image (AMI) created by the import task.

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

The ID of the Amazon Machine Image (AMI) created by the import task.

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

The task ID of the import image task.

*/ inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; } /** *

The task ID of the import image task.

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

The task ID of the import image task.

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

The task ID of the import image task.

*/ inline void SetImportTaskId(const char* value) { m_importTaskId.assign(value); } /** *

The task ID of the import image task.

*/ inline ImportImageResponse& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;} /** *

The task ID of the import image task.

*/ inline ImportImageResponse& WithImportTaskId(Aws::String&& value) { SetImportTaskId(std::move(value)); return *this;} /** *

The task ID of the import image task.

*/ inline ImportImageResponse& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;} /** *

The identifier for the symmetric KMS key that was used to create the * encrypted AMI.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The identifier for the symmetric KMS key that was used to create the * encrypted AMI.

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

The identifier for the symmetric KMS key that was used to create the * encrypted AMI.

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

The identifier for the symmetric KMS key that was used to create the * encrypted AMI.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyId.assign(value); } /** *

The identifier for the symmetric KMS key that was used to create the * encrypted AMI.

*/ inline ImportImageResponse& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The identifier for the symmetric KMS key that was used to create the * encrypted AMI.

*/ inline ImportImageResponse& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The identifier for the symmetric KMS key that was used to create the * encrypted AMI.

*/ inline ImportImageResponse& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The license type of the virtual machine.

*/ inline const Aws::String& GetLicenseType() const{ return m_licenseType; } /** *

The license type of the virtual machine.

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

The license type of the virtual machine.

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

The license type of the virtual machine.

*/ inline void SetLicenseType(const char* value) { m_licenseType.assign(value); } /** *

The license type of the virtual machine.

*/ inline ImportImageResponse& WithLicenseType(const Aws::String& value) { SetLicenseType(value); return *this;} /** *

The license type of the virtual machine.

*/ inline ImportImageResponse& WithLicenseType(Aws::String&& value) { SetLicenseType(std::move(value)); return *this;} /** *

The license type of the virtual machine.

*/ inline ImportImageResponse& WithLicenseType(const char* value) { SetLicenseType(value); return *this;} /** *

The operating system of the virtual machine.

*/ inline const Aws::String& GetPlatform() const{ return m_platform; } /** *

The operating system of the virtual machine.

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

The operating system of the virtual machine.

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

The operating system of the virtual machine.

*/ inline void SetPlatform(const char* value) { m_platform.assign(value); } /** *

The operating system of the virtual machine.

*/ inline ImportImageResponse& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;} /** *

The operating system of the virtual machine.

*/ inline ImportImageResponse& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;} /** *

The operating system of the virtual machine.

*/ inline ImportImageResponse& WithPlatform(const char* value) { SetPlatform(value); return *this;} /** *

The progress of the task.

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

The progress of the task.

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

The progress of the task.

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

The progress of the task.

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

The progress of the task.

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

The progress of the task.

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

The progress of the task.

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

Information about the snapshots.

*/ inline const Aws::Vector& GetSnapshotDetails() const{ return m_snapshotDetails; } /** *

Information about the snapshots.

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

Information about the snapshots.

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

Information about the snapshots.

*/ inline ImportImageResponse& WithSnapshotDetails(const Aws::Vector& value) { SetSnapshotDetails(value); return *this;} /** *

Information about the snapshots.

*/ inline ImportImageResponse& WithSnapshotDetails(Aws::Vector&& value) { SetSnapshotDetails(std::move(value)); return *this;} /** *

Information about the snapshots.

*/ inline ImportImageResponse& AddSnapshotDetails(const SnapshotDetail& value) { m_snapshotDetails.push_back(value); return *this; } /** *

Information about the snapshots.

*/ inline ImportImageResponse& AddSnapshotDetails(SnapshotDetail&& value) { m_snapshotDetails.push_back(std::move(value)); return *this; } /** *

A brief status of the task.

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

A brief status of the task.

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

A brief status of the task.

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

A brief status of the task.

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

A brief status of the task.

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

A brief status of the task.

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

A brief status of the task.

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

A detailed status message of the import task.

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

A detailed status message of the import task.

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

A detailed status message of the import task.

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

A detailed status message of the import task.

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

A detailed status message of the import task.

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

A detailed status message of the import task.

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

A detailed status message of the import task.

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

The ARNs of the license configurations.

*/ inline const Aws::Vector& GetLicenseSpecifications() const{ return m_licenseSpecifications; } /** *

The ARNs of the license configurations.

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

The ARNs of the license configurations.

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

The ARNs of the license configurations.

*/ inline ImportImageResponse& WithLicenseSpecifications(const Aws::Vector& value) { SetLicenseSpecifications(value); return *this;} /** *

The ARNs of the license configurations.

*/ inline ImportImageResponse& WithLicenseSpecifications(Aws::Vector&& value) { SetLicenseSpecifications(std::move(value)); return *this;} /** *

The ARNs of the license configurations.

*/ inline ImportImageResponse& AddLicenseSpecifications(const ImportImageLicenseConfigurationResponse& value) { m_licenseSpecifications.push_back(value); return *this; } /** *

The ARNs of the license configurations.

*/ inline ImportImageResponse& AddLicenseSpecifications(ImportImageLicenseConfigurationResponse&& value) { m_licenseSpecifications.push_back(std::move(value)); return *this; } /** *

Any tags assigned to the import image task.

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

Any tags assigned to the import image task.

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

Any tags assigned to the import image task.

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

Any tags assigned to the import image task.

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

Any tags assigned to the import image task.

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

Any tags assigned to the import image task.

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

Any tags assigned to the import image task.

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

The usage operation value.

*/ inline const Aws::String& GetUsageOperation() const{ return m_usageOperation; } /** *

The usage operation value.

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

The usage operation value.

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

The usage operation value.

*/ inline void SetUsageOperation(const char* value) { m_usageOperation.assign(value); } /** *

The usage operation value.

*/ inline ImportImageResponse& WithUsageOperation(const Aws::String& value) { SetUsageOperation(value); return *this;} /** *

The usage operation value.

*/ inline ImportImageResponse& WithUsageOperation(Aws::String&& value) { SetUsageOperation(std::move(value)); return *this;} /** *

The usage operation value.

*/ inline ImportImageResponse& WithUsageOperation(const char* value) { SetUsageOperation(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 ImportImageResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ImportImageResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_architecture; Aws::String m_description; bool m_encrypted; Aws::String m_hypervisor; Aws::String m_imageId; Aws::String m_importTaskId; Aws::String m_kmsKeyId; Aws::String m_licenseType; Aws::String m_platform; Aws::String m_progress; Aws::Vector m_snapshotDetails; Aws::String m_status; Aws::String m_statusMessage; Aws::Vector m_licenseSpecifications; Aws::Vector m_tags; Aws::String m_usageOperation; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws