public class ImportImageRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ImportImageRequest>
ImportImage operation.
 Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).
| Constructor and Description | 
|---|
| ImportImageRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| String | getArchitecture()The architecture of the virtual machine. | 
| ClientData | getClientData()The client-specific data. | 
| String | getClientToken()The token to enable idempotency for VM import requests. | 
| String | getDescription()A description string for the import image task. | 
| List<ImageDiskContainer> | getDiskContainers()Information about the disk containers. | 
| Request<ImportImageRequest> | getDryRunRequest()This method is intended for internal use only. | 
| String | getHypervisor()The target hypervisor platform. | 
| String | getLicenseType()The license type to be used for the Amazon Machine Image (AMI) after
 importing. | 
| String | getPlatform()The operating system of the virtual machine. | 
| String | getRoleName()The name of the role to use when not using the default role,
 'vmimport'. | 
| int | hashCode() | 
| void | setArchitecture(String architecture)The architecture of the virtual machine. | 
| void | setClientData(ClientData clientData)The client-specific data. | 
| void | setClientToken(String clientToken)The token to enable idempotency for VM import requests. | 
| void | setDescription(String description)A description string for the import image task. | 
| void | setDiskContainers(Collection<ImageDiskContainer> diskContainers)Information about the disk containers. | 
| void | setHypervisor(String hypervisor)The target hypervisor platform. | 
| void | setLicenseType(String licenseType)The license type to be used for the Amazon Machine Image (AMI) after
 importing. | 
| void | setPlatform(String platform)The operating system of the virtual machine. | 
| void | setRoleName(String roleName)The name of the role to use when not using the default role,
 'vmimport'. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| ImportImageRequest | withArchitecture(String architecture)The architecture of the virtual machine. | 
| ImportImageRequest | withClientData(ClientData clientData)The client-specific data. | 
| ImportImageRequest | withClientToken(String clientToken)The token to enable idempotency for VM import requests. | 
| ImportImageRequest | withDescription(String description)A description string for the import image task. | 
| ImportImageRequest | withDiskContainers(Collection<ImageDiskContainer> diskContainers)Information about the disk containers. | 
| ImportImageRequest | withDiskContainers(ImageDiskContainer... diskContainers)Information about the disk containers. | 
| ImportImageRequest | withHypervisor(String hypervisor)The target hypervisor platform. | 
| ImportImageRequest | withLicenseType(String licenseType)The license type to be used for the Amazon Machine Image (AMI) after
 importing. | 
| ImportImageRequest | withPlatform(String platform)The operating system of the virtual machine. | 
| ImportImageRequest | withRoleName(String roleName)The name of the role to use when not using the default role,
 'vmimport'. | 
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getDescription()
public void setDescription(String description)
description - A description string for the import image task.public ImportImageRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description - A description string for the import image task.public List<ImageDiskContainer> getDiskContainers()
public void setDiskContainers(Collection<ImageDiskContainer> diskContainers)
diskContainers - Information about the disk containers.public ImportImageRequest withDiskContainers(ImageDiskContainer... diskContainers)
Returns a reference to this object so that method calls can be chained together.
diskContainers - Information about the disk containers.public ImportImageRequest withDiskContainers(Collection<ImageDiskContainer> diskContainers)
Returns a reference to this object so that method calls can be chained together.
diskContainers - Information about the disk containers.public String getLicenseType()
Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.
Valid values: AWS | BYOL
Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.
Valid values: AWS | BYOL
public void setLicenseType(String licenseType)
Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.
Valid values: AWS | BYOL
licenseType - The license type to be used for the Amazon Machine Image (AMI) after
         importing. Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.
Valid values: AWS | BYOL
public ImportImageRequest withLicenseType(String licenseType)
Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.
Valid values: AWS | BYOL
 
Returns a reference to this object so that method calls can be chained together.
licenseType - The license type to be used for the Amazon Machine Image (AMI) after
         importing. Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.
Valid values: AWS | BYOL
public String getHypervisor()
Valid values: xen
Valid values: xen
public void setHypervisor(String hypervisor)
Valid values: xen
hypervisor - The target hypervisor platform. Valid values: xen
public ImportImageRequest withHypervisor(String hypervisor)
Valid values: xen
 
Returns a reference to this object so that method calls can be chained together.
hypervisor - The target hypervisor platform. Valid values: xen
public String getArchitecture()
Valid values:
 i386 | x86_64
Valid values:
         i386 | x86_64
public void setArchitecture(String architecture)
Valid values:
 i386 | x86_64
architecture - The architecture of the virtual machine. Valid values:
         i386 | x86_64
public ImportImageRequest withArchitecture(String architecture)
Valid values:
 i386 | x86_64
 
Returns a reference to this object so that method calls can be chained together.
architecture - The architecture of the virtual machine. Valid values:
         i386 | x86_64
public String getPlatform()
Valid values:
 Windows | Linux
Valid values:
         Windows | Linux
public void setPlatform(String platform)
Valid values:
 Windows | Linux
platform - The operating system of the virtual machine. Valid values:
         Windows | Linux
public ImportImageRequest withPlatform(String platform)
Valid values:
 Windows | Linux
 
Returns a reference to this object so that method calls can be chained together.
platform - The operating system of the virtual machine. Valid values:
         Windows | Linux
public ClientData getClientData()
public void setClientData(ClientData clientData)
clientData - The client-specific data.public ImportImageRequest withClientData(ClientData clientData)
Returns a reference to this object so that method calls can be chained together.
clientData - The client-specific data.public String getClientToken()
public void setClientToken(String clientToken)
clientToken - The token to enable idempotency for VM import requests.public ImportImageRequest withClientToken(String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken - The token to enable idempotency for VM import requests.public String getRoleName()
public void setRoleName(String roleName)
roleName - The name of the role to use when not using the default role,
         'vmimport'.public ImportImageRequest withRoleName(String roleName)
Returns a reference to this object so that method calls can be chained together.
roleName - The name of the role to use when not using the default role,
         'vmimport'.public Request<ImportImageRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ImportImageRequest>public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.