/** * 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 #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class ImportImageRequest : public EC2Request { public: AWS_EC2_API ImportImageRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ImportImage"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The architecture of the virtual machine.

Valid values: * i386 | x86_64

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

The architecture of the virtual machine.

Valid values: * i386 | x86_64

*/ inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; } /** *

The architecture of the virtual machine.

Valid values: * i386 | x86_64

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

The architecture of the virtual machine.

Valid values: * i386 | x86_64

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

The architecture of the virtual machine.

Valid values: * i386 | x86_64

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

The architecture of the virtual machine.

Valid values: * i386 | x86_64

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

The architecture of the virtual machine.

Valid values: * i386 | x86_64

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

The architecture of the virtual machine.

Valid values: * i386 | x86_64

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

The client-specific data.

*/ inline const ClientData& GetClientData() const{ return m_clientData; } /** *

The client-specific data.

*/ inline bool ClientDataHasBeenSet() const { return m_clientDataHasBeenSet; } /** *

The client-specific data.

*/ inline void SetClientData(const ClientData& value) { m_clientDataHasBeenSet = true; m_clientData = value; } /** *

The client-specific data.

*/ inline void SetClientData(ClientData&& value) { m_clientDataHasBeenSet = true; m_clientData = std::move(value); } /** *

The client-specific data.

*/ inline ImportImageRequest& WithClientData(const ClientData& value) { SetClientData(value); return *this;} /** *

The client-specific data.

*/ inline ImportImageRequest& WithClientData(ClientData&& value) { SetClientData(std::move(value)); return *this;} /** *

The token to enable idempotency for VM import requests.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The token to enable idempotency for VM import requests.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The token to enable idempotency for VM import requests.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The token to enable idempotency for VM import requests.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The token to enable idempotency for VM import requests.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The token to enable idempotency for VM import requests.

*/ inline ImportImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The token to enable idempotency for VM import requests.

*/ inline ImportImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The token to enable idempotency for VM import requests.

*/ inline ImportImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A description string for the import image task.

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

A description string for the import image task.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description string for the import image task.

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

A description string for the import image task.

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

A description string for the import image task.

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

A description string for the import image task.

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

A description string for the import image task.

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

A description string for the import image task.

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

Information about the disk containers.

*/ inline const Aws::Vector& GetDiskContainers() const{ return m_diskContainers; } /** *

Information about the disk containers.

*/ inline bool DiskContainersHasBeenSet() const { return m_diskContainersHasBeenSet; } /** *

Information about the disk containers.

*/ inline void SetDiskContainers(const Aws::Vector& value) { m_diskContainersHasBeenSet = true; m_diskContainers = value; } /** *

Information about the disk containers.

*/ inline void SetDiskContainers(Aws::Vector&& value) { m_diskContainersHasBeenSet = true; m_diskContainers = std::move(value); } /** *

Information about the disk containers.

*/ inline ImportImageRequest& WithDiskContainers(const Aws::Vector& value) { SetDiskContainers(value); return *this;} /** *

Information about the disk containers.

*/ inline ImportImageRequest& WithDiskContainers(Aws::Vector&& value) { SetDiskContainers(std::move(value)); return *this;} /** *

Information about the disk containers.

*/ inline ImportImageRequest& AddDiskContainers(const ImageDiskContainer& value) { m_diskContainersHasBeenSet = true; m_diskContainers.push_back(value); return *this; } /** *

Information about the disk containers.

*/ inline ImportImageRequest& AddDiskContainers(ImageDiskContainer&& value) { m_diskContainersHasBeenSet = true; m_diskContainers.push_back(std::move(value)); return *this; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline ImportImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

Specifies whether the destination AMI of the imported image should be * encrypted. The default KMS key for EBS is used unless you specify a non-default * KMS key using KmsKeyId. For more information, see Amazon * EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

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

Specifies whether the destination AMI of the imported image should be * encrypted. The default KMS key for EBS is used unless you specify a non-default * KMS key using KmsKeyId. For more information, see Amazon * EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *

Specifies whether the destination AMI of the imported image should be * encrypted. The default KMS key for EBS is used unless you specify a non-default * KMS key using KmsKeyId. For more information, see Amazon * EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

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

Specifies whether the destination AMI of the imported image should be * encrypted. The default KMS key for EBS is used unless you specify a non-default * KMS key using KmsKeyId. For more information, see Amazon * EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

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

The target hypervisor platform.

Valid values: xen

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

The target hypervisor platform.

Valid values: xen

*/ inline bool HypervisorHasBeenSet() const { return m_hypervisorHasBeenSet; } /** *

The target hypervisor platform.

Valid values: xen

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

The target hypervisor platform.

Valid values: xen

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

The target hypervisor platform.

Valid values: xen

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

The target hypervisor platform.

Valid values: xen

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

The target hypervisor platform.

Valid values: xen

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

The target hypervisor platform.

Valid values: xen

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

An identifier for the symmetric KMS key to use when creating the encrypted * AMI. This parameter is only required if you want to use a non-default KMS key; * if this parameter is not specified, the default KMS key for EBS is used. If a * KmsKeyId is specified, the Encrypted flag must also be * set.

The KMS key identifier may be provided in any of the following * formats:

  • Key ID

  • Key alias

  • *

    ARN using key ID. The ID ARN contains the arn:aws:kms namespace, * followed by the Region of the key, the Amazon Web Services account ID of the key * owner, the key namespace, and then the key ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.

    *
  • ARN using key alias. The alias ARN contains the * arn:aws:kms namespace, followed by the Region of the key, the * Amazon Web Services account ID of the key owner, the alias * namespace, and then the key alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

    *

Amazon Web Services parses KmsKeyId asynchronously, * meaning that the action you call may appear to complete even though you provided * an invalid identifier. This action will eventually report failure.

The * specified KMS key must exist in the Region that the AMI is being copied to.

*

Amazon EBS does not support asymmetric KMS keys.

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

An identifier for the symmetric KMS key to use when creating the encrypted * AMI. This parameter is only required if you want to use a non-default KMS key; * if this parameter is not specified, the default KMS key for EBS is used. If a * KmsKeyId is specified, the Encrypted flag must also be * set.

The KMS key identifier may be provided in any of the following * formats:

  • Key ID

  • Key alias

  • *

    ARN using key ID. The ID ARN contains the arn:aws:kms namespace, * followed by the Region of the key, the Amazon Web Services account ID of the key * owner, the key namespace, and then the key ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.

    *
  • ARN using key alias. The alias ARN contains the * arn:aws:kms namespace, followed by the Region of the key, the * Amazon Web Services account ID of the key owner, the alias * namespace, and then the key alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

    *

Amazon Web Services parses KmsKeyId asynchronously, * meaning that the action you call may appear to complete even though you provided * an invalid identifier. This action will eventually report failure.

The * specified KMS key must exist in the Region that the AMI is being copied to.

*

Amazon EBS does not support asymmetric KMS keys.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

An identifier for the symmetric KMS key to use when creating the encrypted * AMI. This parameter is only required if you want to use a non-default KMS key; * if this parameter is not specified, the default KMS key for EBS is used. If a * KmsKeyId is specified, the Encrypted flag must also be * set.

The KMS key identifier may be provided in any of the following * formats:

  • Key ID

  • Key alias

  • *

    ARN using key ID. The ID ARN contains the arn:aws:kms namespace, * followed by the Region of the key, the Amazon Web Services account ID of the key * owner, the key namespace, and then the key ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.

    *
  • ARN using key alias. The alias ARN contains the * arn:aws:kms namespace, followed by the Region of the key, the * Amazon Web Services account ID of the key owner, the alias * namespace, and then the key alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

    *

Amazon Web Services parses KmsKeyId asynchronously, * meaning that the action you call may appear to complete even though you provided * an invalid identifier. This action will eventually report failure.

The * specified KMS key must exist in the Region that the AMI is being copied to.

*

Amazon EBS does not support asymmetric KMS keys.

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

An identifier for the symmetric KMS key to use when creating the encrypted * AMI. This parameter is only required if you want to use a non-default KMS key; * if this parameter is not specified, the default KMS key for EBS is used. If a * KmsKeyId is specified, the Encrypted flag must also be * set.

The KMS key identifier may be provided in any of the following * formats:

  • Key ID

  • Key alias

  • *

    ARN using key ID. The ID ARN contains the arn:aws:kms namespace, * followed by the Region of the key, the Amazon Web Services account ID of the key * owner, the key namespace, and then the key ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.

    *
  • ARN using key alias. The alias ARN contains the * arn:aws:kms namespace, followed by the Region of the key, the * Amazon Web Services account ID of the key owner, the alias * namespace, and then the key alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

    *

Amazon Web Services parses KmsKeyId asynchronously, * meaning that the action you call may appear to complete even though you provided * an invalid identifier. This action will eventually report failure.

The * specified KMS key must exist in the Region that the AMI is being copied to.

*

Amazon EBS does not support asymmetric KMS keys.

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

An identifier for the symmetric KMS key to use when creating the encrypted * AMI. This parameter is only required if you want to use a non-default KMS key; * if this parameter is not specified, the default KMS key for EBS is used. If a * KmsKeyId is specified, the Encrypted flag must also be * set.

The KMS key identifier may be provided in any of the following * formats:

  • Key ID

  • Key alias

  • *

    ARN using key ID. The ID ARN contains the arn:aws:kms namespace, * followed by the Region of the key, the Amazon Web Services account ID of the key * owner, the key namespace, and then the key ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.

    *
  • ARN using key alias. The alias ARN contains the * arn:aws:kms namespace, followed by the Region of the key, the * Amazon Web Services account ID of the key owner, the alias * namespace, and then the key alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

    *

Amazon Web Services parses KmsKeyId asynchronously, * meaning that the action you call may appear to complete even though you provided * an invalid identifier. This action will eventually report failure.

The * specified KMS key must exist in the Region that the AMI is being copied to.

*

Amazon EBS does not support asymmetric KMS keys.

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

An identifier for the symmetric KMS key to use when creating the encrypted * AMI. This parameter is only required if you want to use a non-default KMS key; * if this parameter is not specified, the default KMS key for EBS is used. If a * KmsKeyId is specified, the Encrypted flag must also be * set.

The KMS key identifier may be provided in any of the following * formats:

  • Key ID

  • Key alias

  • *

    ARN using key ID. The ID ARN contains the arn:aws:kms namespace, * followed by the Region of the key, the Amazon Web Services account ID of the key * owner, the key namespace, and then the key ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.

    *
  • ARN using key alias. The alias ARN contains the * arn:aws:kms namespace, followed by the Region of the key, the * Amazon Web Services account ID of the key owner, the alias * namespace, and then the key alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

    *

Amazon Web Services parses KmsKeyId asynchronously, * meaning that the action you call may appear to complete even though you provided * an invalid identifier. This action will eventually report failure.

The * specified KMS key must exist in the Region that the AMI is being copied to.

*

Amazon EBS does not support asymmetric KMS keys.

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

An identifier for the symmetric KMS key to use when creating the encrypted * AMI. This parameter is only required if you want to use a non-default KMS key; * if this parameter is not specified, the default KMS key for EBS is used. If a * KmsKeyId is specified, the Encrypted flag must also be * set.

The KMS key identifier may be provided in any of the following * formats:

  • Key ID

  • Key alias

  • *

    ARN using key ID. The ID ARN contains the arn:aws:kms namespace, * followed by the Region of the key, the Amazon Web Services account ID of the key * owner, the key namespace, and then the key ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.

    *
  • ARN using key alias. The alias ARN contains the * arn:aws:kms namespace, followed by the Region of the key, the * Amazon Web Services account ID of the key owner, the alias * namespace, and then the key alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

    *

Amazon Web Services parses KmsKeyId asynchronously, * meaning that the action you call may appear to complete even though you provided * an invalid identifier. This action will eventually report failure.

The * specified KMS key must exist in the Region that the AMI is being copied to.

*

Amazon EBS does not support asymmetric KMS keys.

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

An identifier for the symmetric KMS key to use when creating the encrypted * AMI. This parameter is only required if you want to use a non-default KMS key; * if this parameter is not specified, the default KMS key for EBS is used. If a * KmsKeyId is specified, the Encrypted flag must also be * set.

The KMS key identifier may be provided in any of the following * formats:

  • Key ID

  • Key alias

  • *

    ARN using key ID. The ID ARN contains the arn:aws:kms namespace, * followed by the Region of the key, the Amazon Web Services account ID of the key * owner, the key namespace, and then the key ID. For example, * arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.

    *
  • ARN using key alias. The alias ARN contains the * arn:aws:kms namespace, followed by the Region of the key, the * Amazon Web Services account ID of the key owner, the alias * namespace, and then the key alias. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

    *

Amazon Web Services parses KmsKeyId asynchronously, * meaning that the action you call may appear to complete even though you provided * an invalid identifier. This action will eventually report failure.

The * specified KMS key must exist in the Region that the AMI is being copied to.

*

Amazon EBS does not support asymmetric KMS keys.

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

The license type to be used for the Amazon Machine Image (AMI) after * importing.

Specify AWS to replace the source-system license * with an Amazon Web Services license or BYOL to retain the * source-system license. Leaving this parameter undefined is the same as choosing * AWS when importing a Windows Server operating system, and the same * as choosing BYOL when importing a Windows client operating system * (such as Windows 10) or a Linux operating system.

To use * BYOL, you must have existing licenses with rights to use these * licenses in a third party cloud, such as Amazon Web Services. For more * information, see Prerequisites * in the VM Import/Export User Guide.

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

The license type to be used for the Amazon Machine Image (AMI) after * importing.

Specify AWS to replace the source-system license * with an Amazon Web Services license or BYOL to retain the * source-system license. Leaving this parameter undefined is the same as choosing * AWS when importing a Windows Server operating system, and the same * as choosing BYOL when importing a Windows client operating system * (such as Windows 10) or a Linux operating system.

To use * BYOL, you must have existing licenses with rights to use these * licenses in a third party cloud, such as Amazon Web Services. For more * information, see Prerequisites * in the VM Import/Export User Guide.

*/ inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; } /** *

The license type to be used for the Amazon Machine Image (AMI) after * importing.

Specify AWS to replace the source-system license * with an Amazon Web Services license or BYOL to retain the * source-system license. Leaving this parameter undefined is the same as choosing * AWS when importing a Windows Server operating system, and the same * as choosing BYOL when importing a Windows client operating system * (such as Windows 10) or a Linux operating system.

To use * BYOL, you must have existing licenses with rights to use these * licenses in a third party cloud, such as Amazon Web Services. For more * information, see Prerequisites * in the VM Import/Export User Guide.

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

The license type to be used for the Amazon Machine Image (AMI) after * importing.

Specify AWS to replace the source-system license * with an Amazon Web Services license or BYOL to retain the * source-system license. Leaving this parameter undefined is the same as choosing * AWS when importing a Windows Server operating system, and the same * as choosing BYOL when importing a Windows client operating system * (such as Windows 10) or a Linux operating system.

To use * BYOL, you must have existing licenses with rights to use these * licenses in a third party cloud, such as Amazon Web Services. For more * information, see Prerequisites * in the VM Import/Export User Guide.

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

The license type to be used for the Amazon Machine Image (AMI) after * importing.

Specify AWS to replace the source-system license * with an Amazon Web Services license or BYOL to retain the * source-system license. Leaving this parameter undefined is the same as choosing * AWS when importing a Windows Server operating system, and the same * as choosing BYOL when importing a Windows client operating system * (such as Windows 10) or a Linux operating system.

To use * BYOL, you must have existing licenses with rights to use these * licenses in a third party cloud, such as Amazon Web Services. For more * information, see Prerequisites * in the VM Import/Export User Guide.

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

The license type to be used for the Amazon Machine Image (AMI) after * importing.

Specify AWS to replace the source-system license * with an Amazon Web Services license or BYOL to retain the * source-system license. Leaving this parameter undefined is the same as choosing * AWS when importing a Windows Server operating system, and the same * as choosing BYOL when importing a Windows client operating system * (such as Windows 10) or a Linux operating system.

To use * BYOL, you must have existing licenses with rights to use these * licenses in a third party cloud, such as Amazon Web Services. For more * information, see Prerequisites * in the VM Import/Export User Guide.

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

The license type to be used for the Amazon Machine Image (AMI) after * importing.

Specify AWS to replace the source-system license * with an Amazon Web Services license or BYOL to retain the * source-system license. Leaving this parameter undefined is the same as choosing * AWS when importing a Windows Server operating system, and the same * as choosing BYOL when importing a Windows client operating system * (such as Windows 10) or a Linux operating system.

To use * BYOL, you must have existing licenses with rights to use these * licenses in a third party cloud, such as Amazon Web Services. For more * information, see Prerequisites * in the VM Import/Export User Guide.

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

The license type to be used for the Amazon Machine Image (AMI) after * importing.

Specify AWS to replace the source-system license * with an Amazon Web Services license or BYOL to retain the * source-system license. Leaving this parameter undefined is the same as choosing * AWS when importing a Windows Server operating system, and the same * as choosing BYOL when importing a Windows client operating system * (such as Windows 10) or a Linux operating system.

To use * BYOL, you must have existing licenses with rights to use these * licenses in a third party cloud, such as Amazon Web Services. For more * information, see Prerequisites * in the VM Import/Export User Guide.

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

The operating system of the virtual machine. If you import a VM that is * compatible with Unified Extensible Firmware Interface (UEFI) using an EBS * snapshot, you must specify a value for the platform.

Valid values: * Windows | Linux

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

The operating system of the virtual machine. If you import a VM that is * compatible with Unified Extensible Firmware Interface (UEFI) using an EBS * snapshot, you must specify a value for the platform.

Valid values: * Windows | Linux

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The operating system of the virtual machine. If you import a VM that is * compatible with Unified Extensible Firmware Interface (UEFI) using an EBS * snapshot, you must specify a value for the platform.

Valid values: * Windows | Linux

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

The operating system of the virtual machine. If you import a VM that is * compatible with Unified Extensible Firmware Interface (UEFI) using an EBS * snapshot, you must specify a value for the platform.

Valid values: * Windows | Linux

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

The operating system of the virtual machine. If you import a VM that is * compatible with Unified Extensible Firmware Interface (UEFI) using an EBS * snapshot, you must specify a value for the platform.

Valid values: * Windows | Linux

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

The operating system of the virtual machine. If you import a VM that is * compatible with Unified Extensible Firmware Interface (UEFI) using an EBS * snapshot, you must specify a value for the platform.

Valid values: * Windows | Linux

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

The operating system of the virtual machine. If you import a VM that is * compatible with Unified Extensible Firmware Interface (UEFI) using an EBS * snapshot, you must specify a value for the platform.

Valid values: * Windows | Linux

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

The operating system of the virtual machine. If you import a VM that is * compatible with Unified Extensible Firmware Interface (UEFI) using an EBS * snapshot, you must specify a value for the platform.

Valid values: * Windows | Linux

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

The name of the role to use when not using the default role, 'vmimport'.

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

The name of the role to use when not using the default role, 'vmimport'.

*/ inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; } /** *

The name of the role to use when not using the default role, 'vmimport'.

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

The name of the role to use when not using the default role, 'vmimport'.

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

The name of the role to use when not using the default role, 'vmimport'.

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

The name of the role to use when not using the default role, 'vmimport'.

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

The name of the role to use when not using the default role, 'vmimport'.

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

The name of the role to use when not using the default role, 'vmimport'.

*/ inline ImportImageRequest& WithRoleName(const char* value) { SetRoleName(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 bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; } /** *

The ARNs of the license configurations.

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

The ARNs of the license configurations.

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

The ARNs of the license configurations.

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

The ARNs of the license configurations.

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

The ARNs of the license configurations.

*/ inline ImportImageRequest& AddLicenseSpecifications(const ImportImageLicenseConfigurationRequest& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(value); return *this; } /** *

The ARNs of the license configurations.

*/ inline ImportImageRequest& AddLicenseSpecifications(ImportImageLicenseConfigurationRequest&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(std::move(value)); return *this; } /** *

The tags to apply to the import image task during creation.

*/ inline const Aws::Vector& GetTagSpecifications() const{ return m_tagSpecifications; } /** *

The tags to apply to the import image task during creation.

*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *

The tags to apply to the import image task during creation.

*/ inline void SetTagSpecifications(const Aws::Vector& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; } /** *

The tags to apply to the import image task during creation.

*/ inline void SetTagSpecifications(Aws::Vector&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); } /** *

The tags to apply to the import image task during creation.

*/ inline ImportImageRequest& WithTagSpecifications(const Aws::Vector& value) { SetTagSpecifications(value); return *this;} /** *

The tags to apply to the import image task during creation.

*/ inline ImportImageRequest& WithTagSpecifications(Aws::Vector&& value) { SetTagSpecifications(std::move(value)); return *this;} /** *

The tags to apply to the import image task during creation.

*/ inline ImportImageRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *

The tags to apply to the import image task during creation.

*/ inline ImportImageRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *

The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide.

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

The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide.

*/ inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; } /** *

The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide.

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

The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide.

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

The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide.

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

The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide.

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

The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide.

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

The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide.

*/ inline ImportImageRequest& 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 ImportImageRequest& WithBootMode(const BootModeValues& value) { SetBootMode(value); return *this;} /** *

The boot mode of the virtual machine.

*/ inline ImportImageRequest& WithBootMode(BootModeValues&& value) { SetBootMode(std::move(value)); return *this;} private: Aws::String m_architecture; bool m_architectureHasBeenSet = false; ClientData m_clientData; bool m_clientDataHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_diskContainers; bool m_diskContainersHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; bool m_encrypted; bool m_encryptedHasBeenSet = false; Aws::String m_hypervisor; bool m_hypervisorHasBeenSet = 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_roleName; bool m_roleNameHasBeenSet = false; Aws::Vector m_licenseSpecifications; bool m_licenseSpecificationsHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; Aws::String m_usageOperation; bool m_usageOperationHasBeenSet = false; BootModeValues m_bootMode; bool m_bootModeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws