/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an import image task.See Also:
AWS
* API Reference
The architecture of the virtual machine.
Valid values:
* i386
| x86_64
| arm64
The architecture of the virtual machine.
Valid values:
* i386
| x86_64
| arm64
The architecture of the virtual machine.
Valid values:
* i386
| x86_64
| arm64
The architecture of the virtual machine.
Valid values:
* i386
| x86_64
| arm64
The architecture of the virtual machine.
Valid values:
* i386
| x86_64
| arm64
The architecture of the virtual machine.
Valid values:
* i386
| x86_64
| arm64
The architecture of the virtual machine.
Valid values:
* i386
| x86_64
| arm64
The architecture of the virtual machine.
Valid values:
* i386
| x86_64
| arm64
A description of the import task.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description of the import task.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description of the import task.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description of the import task.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description of the import task.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description of the import task.
*/ inline ImportImageTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description of the import task.
*/ inline ImportImageTask& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description of the import task.
*/ inline ImportImageTask& WithDescription(const char* value) { SetDescription(value); return *this;} /** *Indicates whether the image is encrypted.
*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *Indicates whether the image is encrypted.
*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *Indicates whether the image is encrypted.
*/ inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; } /** *Indicates whether the image is encrypted.
*/ inline ImportImageTask& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *The target hypervisor for the import task.
Valid values:
* xen
The target hypervisor for the import task.
Valid values:
* xen
The target hypervisor for the import task.
Valid values:
* xen
The target hypervisor for the import task.
Valid values:
* xen
The target hypervisor for the import task.
Valid values:
* xen
The target hypervisor for the import task.
Valid values:
* xen
The target hypervisor for the import task.
Valid values:
* xen
The target hypervisor for the import task.
Valid values:
* xen
The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
*/ inline const Aws::String& GetImageId() const{ return m_imageId; } /** *The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
*/ inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; } /** *The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
*/ inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; } /** *The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
*/ inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); } /** *The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
*/ inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); } /** *The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
*/ inline ImportImageTask& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
*/ inline ImportImageTask& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
*/ inline ImportImageTask& WithImageId(const char* value) { SetImageId(value); return *this;} /** *The ID of the import image task.
*/ inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; } /** *The ID of the import image task.
*/ inline bool ImportTaskIdHasBeenSet() const { return m_importTaskIdHasBeenSet; } /** *The ID of the import image task.
*/ inline void SetImportTaskId(const Aws::String& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; } /** *The ID of the import image task.
*/ inline void SetImportTaskId(Aws::String&& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = std::move(value); } /** *The ID of the import image task.
*/ inline void SetImportTaskId(const char* value) { m_importTaskIdHasBeenSet = true; m_importTaskId.assign(value); } /** *The ID of the import image task.
*/ inline ImportImageTask& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;} /** *The ID of the import image task.
*/ inline ImportImageTask& WithImportTaskId(Aws::String&& value) { SetImportTaskId(std::move(value)); return *this;} /** *The ID of the import image task.
*/ inline ImportImageTask& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;} /** *The identifier for the KMS key that was used to create the encrypted * image.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *The identifier for the KMS key that was used to create the encrypted * image.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *The identifier for the KMS key that was used to create the encrypted * image.
*/ 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 * image.
*/ 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 * image.
*/ 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 * image.
*/ inline ImportImageTask& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *The identifier for the KMS key that was used to create the encrypted * image.
*/ inline ImportImageTask& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *The identifier for the KMS key that was used to create the encrypted * image.
*/ inline ImportImageTask& 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 bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; } /** *The license type of the virtual machine.
*/ inline void SetLicenseType(const Aws::String& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; } /** *The license type of the virtual machine.
*/ inline void SetLicenseType(Aws::String&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); } /** *The license type of the virtual machine.
*/ inline void SetLicenseType(const char* value) { m_licenseTypeHasBeenSet = true; m_licenseType.assign(value); } /** *The license type of the virtual machine.
*/ inline ImportImageTask& WithLicenseType(const Aws::String& value) { SetLicenseType(value); return *this;} /** *The license type of the virtual machine.
*/ inline ImportImageTask& WithLicenseType(Aws::String&& value) { SetLicenseType(std::move(value)); return *this;} /** *The license type of the virtual machine.
*/ inline ImportImageTask& WithLicenseType(const char* value) { SetLicenseType(value); return *this;} /** *The description string for the import image task.
*/ inline const Aws::String& GetPlatform() const{ return m_platform; } /** *The description string for the import image task.
*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *The description string for the import image task.
*/ inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; } /** *The description string for the import image task.
*/ inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *The description string for the import image task.
*/ inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); } /** *The description string for the import image task.
*/ inline ImportImageTask& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;} /** *The description string for the import image task.
*/ inline ImportImageTask& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;} /** *The description string for the import image task.
*/ inline ImportImageTask& WithPlatform(const char* value) { SetPlatform(value); return *this;} /** *The percentage of progress of the import image task.
*/ inline const Aws::String& GetProgress() const{ return m_progress; } /** *The percentage of progress of the import image task.
*/ inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; } /** *The percentage of progress of the import image task.
*/ inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; } /** *The percentage of progress of the import image task.
*/ inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); } /** *The percentage of progress of the import image task.
*/ inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); } /** *The percentage of progress of the import image task.
*/ inline ImportImageTask& WithProgress(const Aws::String& value) { SetProgress(value); return *this;} /** *The percentage of progress of the import image task.
*/ inline ImportImageTask& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;} /** *The percentage of progress of the import image task.
*/ inline ImportImageTask& WithProgress(const char* value) { SetProgress(value); return *this;} /** *Information about the snapshots.
*/ inline const Aws::VectorInformation about the snapshots.
*/ inline bool SnapshotDetailsHasBeenSet() const { return m_snapshotDetailsHasBeenSet; } /** *Information about the snapshots.
*/ inline void SetSnapshotDetails(const Aws::VectorInformation about the snapshots.
*/ inline void SetSnapshotDetails(Aws::VectorInformation about the snapshots.
*/ inline ImportImageTask& WithSnapshotDetails(const Aws::VectorInformation about the snapshots.
*/ inline ImportImageTask& WithSnapshotDetails(Aws::VectorInformation about the snapshots.
*/ inline ImportImageTask& AddSnapshotDetails(const SnapshotDetail& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails.push_back(value); return *this; } /** *Information about the snapshots.
*/ inline ImportImageTask& AddSnapshotDetails(SnapshotDetail&& value) { m_snapshotDetailsHasBeenSet = true; m_snapshotDetails.push_back(std::move(value)); return *this; } /** *A brief status for the import image task.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *A brief status for the import image task.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *A brief status for the import image task.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *A brief status for the import image task.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *A brief status for the import image task.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *A brief status for the import image task.
*/ inline ImportImageTask& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *A brief status for the import image task.
*/ inline ImportImageTask& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *A brief status for the import image task.
*/ inline ImportImageTask& WithStatus(const char* value) { SetStatus(value); return *this;} /** *A descriptive status message for the import image task.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *A descriptive status message for the import image task.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *A descriptive status message for the import image task.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *A descriptive status message for the import image task.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *A descriptive status message for the import image task.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *A descriptive status message for the import image task.
*/ inline ImportImageTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *A descriptive status message for the import image task.
*/ inline ImportImageTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *A descriptive status message for the import image task.
*/ inline ImportImageTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *The tags for the import image task.
*/ inline const Aws::VectorThe tags for the import image task.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags for the import image task.
*/ inline void SetTags(const Aws::VectorThe tags for the import image task.
*/ inline void SetTags(Aws::VectorThe tags for the import image task.
*/ inline ImportImageTask& WithTags(const Aws::VectorThe tags for the import image task.
*/ inline ImportImageTask& WithTags(Aws::VectorThe tags for the import image task.
*/ inline ImportImageTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The tags for the import image task.
*/ inline ImportImageTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *The ARNs of the license configurations that are associated with the import * image task.
*/ inline const Aws::VectorThe ARNs of the license configurations that are associated with the import * image task.
*/ inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; } /** *The ARNs of the license configurations that are associated with the import * image task.
*/ inline void SetLicenseSpecifications(const Aws::VectorThe ARNs of the license configurations that are associated with the import * image task.
*/ inline void SetLicenseSpecifications(Aws::VectorThe ARNs of the license configurations that are associated with the import * image task.
*/ inline ImportImageTask& WithLicenseSpecifications(const Aws::VectorThe ARNs of the license configurations that are associated with the import * image task.
*/ inline ImportImageTask& WithLicenseSpecifications(Aws::VectorThe ARNs of the license configurations that are associated with the import * image task.
*/ inline ImportImageTask& AddLicenseSpecifications(const ImportImageLicenseConfigurationResponse& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(value); return *this; } /** *The ARNs of the license configurations that are associated with the import * image task.
*/ inline ImportImageTask& AddLicenseSpecifications(ImportImageLicenseConfigurationResponse&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.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 bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; } /** *The usage operation value.
*/ inline void SetUsageOperation(const Aws::String& value) { m_usageOperationHasBeenSet = true; m_usageOperation = value; } /** *The usage operation value.
*/ inline void SetUsageOperation(Aws::String&& value) { m_usageOperationHasBeenSet = true; m_usageOperation = std::move(value); } /** *The usage operation value.
*/ inline void SetUsageOperation(const char* value) { m_usageOperationHasBeenSet = true; m_usageOperation.assign(value); } /** *The usage operation value.
*/ inline ImportImageTask& WithUsageOperation(const Aws::String& value) { SetUsageOperation(value); return *this;} /** *The usage operation value.
*/ inline ImportImageTask& WithUsageOperation(Aws::String&& value) { SetUsageOperation(std::move(value)); return *this;} /** *The usage operation value.
*/ inline ImportImageTask& WithUsageOperation(const char* value) { SetUsageOperation(value); return *this;} /** *The boot mode of the virtual machine.
*/ inline const BootModeValues& GetBootMode() const{ return m_bootMode; } /** *The boot mode of the virtual machine.
*/ inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; } /** *The boot mode of the virtual machine.
*/ inline void SetBootMode(const BootModeValues& value) { m_bootModeHasBeenSet = true; m_bootMode = value; } /** *The boot mode of the virtual machine.
*/ inline void SetBootMode(BootModeValues&& value) { m_bootModeHasBeenSet = true; m_bootMode = std::move(value); } /** *The boot mode of the virtual machine.
*/ inline ImportImageTask& WithBootMode(const BootModeValues& value) { SetBootMode(value); return *this;} /** *The boot mode of the virtual machine.
*/ inline ImportImageTask& WithBootMode(BootModeValues&& value) { SetBootMode(std::move(value)); return *this;} private: Aws::String m_architecture; bool m_architectureHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_encrypted; bool m_encryptedHasBeenSet = false; Aws::String m_hypervisor; bool m_hypervisorHasBeenSet = false; Aws::String m_imageId; bool m_imageIdHasBeenSet = false; Aws::String m_importTaskId; bool m_importTaskIdHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::String m_licenseType; bool m_licenseTypeHasBeenSet = false; Aws::String m_platform; bool m_platformHasBeenSet = false; Aws::String m_progress; bool m_progressHasBeenSet = false; Aws::Vector