/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.ImportImageRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ImportImageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest
* The architecture of the virtual machine.
*
* Valid values:
* The client-specific data.
*
* The token to enable idempotency for VM import requests.
*
* A description string for the import image task.
*
* Information about the disk containers.
*
* 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
* The target hypervisor platform.
*
* Valid values:
* 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
* 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 using key alias. The alias ARN contains the
* Amazon Web Services parses
* The specified KMS key must exist in the Region that the AMI is being copied to.
*
* Amazon EBS does not support asymmetric KMS keys.
*
* The license type to be used for the Amazon Machine Image (AMI) after importing.
*
* Specify
* To use
* 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:
* The name of the role to use when not using the default role, 'vmimport'.
*
* The ARNs of the license configurations.
*
* The tags to apply to the import image task during creation.
*
* The usage operation value. For more information, see Licensing
* options in the VM Import/Export User Guide.
*
* The boot mode of the virtual machine.
*
* The architecture of the virtual machine.
*
* Valid values: i386
| x86_64
* KmsKeyId
. For more information, see Amazon EBS Encryption in the
* Amazon Elastic Compute Cloud User Guide.
* xen
* KmsKeyId
is specified, the Encrypted
flag must also be set.
*
*
* 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: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.
* 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.
* 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.
* 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.
* Windows
| Linux
* i386
| x86_64
*
* Valid values: i386
| x86_64
*/
public void setArchitecture(String architecture) {
this.architecture = architecture;
}
/**
*
* The architecture of the virtual machine. *
*
* Valid values: i386
| x86_64
*
* Valid values: i386
| x86_64
*/
public String getArchitecture() {
return this.architecture;
}
/**
*
* The architecture of the virtual machine. *
*
* Valid values: i386
| x86_64
*
* Valid values: i386
| x86_64
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportImageRequest withArchitecture(String architecture) {
setArchitecture(architecture);
return this;
}
/**
*
* The client-specific data. *
* * @param clientData * The client-specific data. */ public void setClientData(ClientData clientData) { this.clientData = clientData; } /** ** The client-specific data. *
* * @return The client-specific data. */ public ClientData getClientData() { return this.clientData; } /** ** The client-specific data. *
* * @param clientData * The client-specific data. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withClientData(ClientData clientData) { setClientData(clientData); return this; } /** ** The token to enable idempotency for VM import requests. *
* * @param clientToken * The token to enable idempotency for VM import requests. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** The token to enable idempotency for VM import requests. *
* * @return The token to enable idempotency for VM import requests. */ public String getClientToken() { return this.clientToken; } /** ** The token to enable idempotency for VM import requests. *
* * @param clientToken * The token to enable idempotency for VM import requests. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** A description string for the import image task. *
* * @param description * A description string for the import image task. */ public void setDescription(String description) { this.description = description; } /** ** A description string for the import image task. *
* * @return A description string for the import image task. */ public String getDescription() { return this.description; } /** ** A description string for the import image task. *
* * @param description * A description string for the import image task. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withDescription(String description) { setDescription(description); return this; } /** ** Information about the disk containers. *
* * @return Information about the disk containers. */ public java.util.List* Information about the disk containers. *
* * @param diskContainers * Information about the disk containers. */ public void setDiskContainers(java.util.Collection* Information about the disk containers. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDiskContainers(java.util.Collection)} or {@link #withDiskContainers(java.util.Collection)} if you want * to override the existing values. *
* * @param diskContainers * Information about the disk containers. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withDiskContainers(ImageDiskContainer... diskContainers) { if (this.diskContainers == null) { setDiskContainers(new com.amazonaws.internal.SdkInternalList* Information about the disk containers. *
* * @param diskContainers * Information about the disk containers. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withDiskContainers(java.util.Collection
* 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.
*
KmsKeyId
. For more information,
* see Amazon EBS
* Encryption in the Amazon Elastic Compute Cloud User Guide.
*/
public void setEncrypted(Boolean encrypted) {
this.encrypted = 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.
*
KmsKeyId
. For more information,
* see Amazon EBS
* Encryption in the Amazon Elastic Compute Cloud User Guide.
*/
public Boolean getEncrypted() {
return this.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.
*
KmsKeyId
. For more information,
* see Amazon EBS
* Encryption in the Amazon Elastic Compute Cloud User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportImageRequest withEncrypted(Boolean encrypted) {
setEncrypted(encrypted);
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.
*
KmsKeyId
. For more information,
* see Amazon EBS
* Encryption in the Amazon Elastic Compute Cloud User Guide.
*/
public Boolean isEncrypted() {
return this.encrypted;
}
/**
* * The target hypervisor platform. *
*
* Valid values: xen
*
* Valid values: xen
*/
public void setHypervisor(String hypervisor) {
this.hypervisor = hypervisor;
}
/**
*
* The target hypervisor platform. *
*
* Valid values: xen
*
* Valid values: xen
*/
public String getHypervisor() {
return this.hypervisor;
}
/**
*
* The target hypervisor platform. *
*
* Valid values: xen
*
* Valid values: xen
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportImageRequest withHypervisor(String hypervisor) {
setHypervisor(hypervisor);
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. *
* * @param 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 aKmsKeyId
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. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = 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. *
* * @return 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 aKmsKeyId
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. */ public String getKmsKeyId() { return this.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. *
* * @param 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 aKmsKeyId
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. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); 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.
*
* 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.
*/
public void setLicenseType(String licenseType) {
this.licenseType = 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.
*
* 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.
*/
public String getLicenseType() {
return this.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.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportImageRequest withLicenseType(String licenseType) {
setLicenseType(licenseType);
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
*
* Valid values: Windows
| Linux
*/
public void setPlatform(String platform) {
this.platform = 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
*
* Valid values: Windows
| Linux
*/
public String getPlatform() {
return this.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
*
* Valid values: Windows
| Linux
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportImageRequest withPlatform(String platform) {
setPlatform(platform);
return this;
}
/**
*
* The name of the role to use when not using the default role, 'vmimport'. *
* * @param roleName * The name of the role to use when not using the default role, 'vmimport'. */ public void setRoleName(String roleName) { this.roleName = roleName; } /** ** The name of the role to use when not using the default role, 'vmimport'. *
* * @return The name of the role to use when not using the default role, 'vmimport'. */ public String getRoleName() { return this.roleName; } /** ** The name of the role to use when not using the default role, 'vmimport'. *
* * @param roleName * The name of the role to use when not using the default role, 'vmimport'. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withRoleName(String roleName) { setRoleName(roleName); return this; } /** ** The ARNs of the license configurations. *
* * @return The ARNs of the license configurations. */ public java.util.List* The ARNs of the license configurations. *
* * @param licenseSpecifications * The ARNs of the license configurations. */ public void setLicenseSpecifications(java.util.Collection* The ARNs of the license configurations. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLicenseSpecifications(java.util.Collection)} or * {@link #withLicenseSpecifications(java.util.Collection)} if you want to override the existing values. *
* * @param licenseSpecifications * The ARNs of the license configurations. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withLicenseSpecifications(ImportImageLicenseConfigurationRequest... licenseSpecifications) { if (this.licenseSpecifications == null) { setLicenseSpecifications(new com.amazonaws.internal.SdkInternalList* The ARNs of the license configurations. *
* * @param licenseSpecifications * The ARNs of the license configurations. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withLicenseSpecifications(java.util.Collection* The tags to apply to the import image task during creation. *
* * @return The tags to apply to the import image task during creation. */ public java.util.List* The tags to apply to the import image task during creation. *
* * @param tagSpecifications * The tags to apply to the import image task during creation. */ public void setTagSpecifications(java.util.Collection* The tags to apply to the import image task during creation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTagSpecifications(java.util.Collection)} or {@link #withTagSpecifications(java.util.Collection)} if * you want to override the existing values. *
* * @param tagSpecifications * The tags to apply to the import image task during creation. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withTagSpecifications(TagSpecification... tagSpecifications) { if (this.tagSpecifications == null) { setTagSpecifications(new com.amazonaws.internal.SdkInternalList* The tags to apply to the import image task during creation. *
* * @param tagSpecifications * The tags to apply to the import image task during creation. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withTagSpecifications(java.util.Collection* The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide. *
* * @param usageOperation * The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide. */ public void setUsageOperation(String usageOperation) { this.usageOperation = usageOperation; } /** ** The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide. *
* * @return The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide. */ public String getUsageOperation() { return this.usageOperation; } /** ** The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide. *
* * @param usageOperation * The usage operation value. For more information, see Licensing * options in the VM Import/Export User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportImageRequest withUsageOperation(String usageOperation) { setUsageOperation(usageOperation); return this; } /** ** The boot mode of the virtual machine. *
* * @param bootMode * The boot mode of the virtual machine. * @see BootModeValues */ public void setBootMode(String bootMode) { this.bootMode = bootMode; } /** ** The boot mode of the virtual machine. *
* * @return The boot mode of the virtual machine. * @see BootModeValues */ public String getBootMode() { return this.bootMode; } /** ** The boot mode of the virtual machine. *
* * @param bootMode * The boot mode of the virtual machine. * @return Returns a reference to this object so that method calls can be chained together. * @see BootModeValues */ public ImportImageRequest withBootMode(String bootMode) { setBootMode(bootMode); return this; } /** ** The boot mode of the virtual machine. *
* * @param bootMode * The boot mode of the virtual machine. * @return Returns a reference to this object so that method calls can be chained together. * @see BootModeValues */ public ImportImageRequest withBootMode(BootModeValues bootMode) { this.bootMode = bootMode.toString(); return this; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request