public class ImportImageRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ImportImageRequest>
Contains the parameters for ImportImage.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
architecture
The architecture of the virtual machine.
|
private ClientData |
clientData
The client-specific data.
|
private java.lang.String |
clientToken
The token to enable idempotency for VM import requests.
|
private java.lang.String |
description
A description string for the import image task.
|
private SdkInternalList<ImageDiskContainer> |
diskContainers
Information about the disk containers.
|
private java.lang.String |
hypervisor
The target hypervisor platform.
|
private java.lang.String |
licenseType
The license type to be used for the Amazon Machine Image (AMI) after
importing.
|
private java.lang.String |
platform
The operating system of the virtual machine.
|
private java.lang.String |
roleName
The name of the role to use when not using the default role, 'vmimport'.
|
NOOP
Constructor and Description |
---|
ImportImageRequest() |
Modifier and Type | Method and Description |
---|---|
ImportImageRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArchitecture()
The architecture of the virtual machine.
|
ClientData |
getClientData()
The client-specific data.
|
java.lang.String |
getClientToken()
The token to enable idempotency for VM import requests.
|
java.lang.String |
getDescription()
A description string for the import image task.
|
java.util.List<ImageDiskContainer> |
getDiskContainers()
Information about the disk containers.
|
Request<ImportImageRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getHypervisor()
The target hypervisor platform.
|
java.lang.String |
getLicenseType()
The license type to be used for the Amazon Machine Image (AMI) after
importing.
|
java.lang.String |
getPlatform()
The operating system of the virtual machine.
|
java.lang.String |
getRoleName()
The name of the role to use when not using the default role, 'vmimport'.
|
int |
hashCode() |
void |
setArchitecture(java.lang.String architecture)
The architecture of the virtual machine.
|
void |
setClientData(ClientData clientData)
The client-specific data.
|
void |
setClientToken(java.lang.String clientToken)
The token to enable idempotency for VM import requests.
|
void |
setDescription(java.lang.String description)
A description string for the import image task.
|
void |
setDiskContainers(java.util.Collection<ImageDiskContainer> diskContainers)
Information about the disk containers.
|
void |
setHypervisor(java.lang.String hypervisor)
The target hypervisor platform.
|
void |
setLicenseType(java.lang.String licenseType)
The license type to be used for the Amazon Machine Image (AMI) after
importing.
|
void |
setPlatform(java.lang.String platform)
The operating system of the virtual machine.
|
void |
setRoleName(java.lang.String roleName)
The name of the role to use when not using the default role, 'vmimport'.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportImageRequest |
withArchitecture(java.lang.String architecture)
The architecture of the virtual machine.
|
ImportImageRequest |
withClientData(ClientData clientData)
The client-specific data.
|
ImportImageRequest |
withClientToken(java.lang.String clientToken)
The token to enable idempotency for VM import requests.
|
ImportImageRequest |
withDescription(java.lang.String description)
A description string for the import image task.
|
ImportImageRequest |
withDiskContainers(java.util.Collection<ImageDiskContainer> diskContainers)
Information about the disk containers.
|
ImportImageRequest |
withDiskContainers(ImageDiskContainer... diskContainers)
Information about the disk containers.
|
ImportImageRequest |
withHypervisor(java.lang.String hypervisor)
The target hypervisor platform.
|
ImportImageRequest |
withLicenseType(java.lang.String licenseType)
The license type to be used for the Amazon Machine Image (AMI) after
importing.
|
ImportImageRequest |
withPlatform(java.lang.String platform)
The operating system of the virtual machine.
|
ImportImageRequest |
withRoleName(java.lang.String roleName)
The name of the role to use when not using the default role, 'vmimport'.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String description
A description string for the import image task.
private SdkInternalList<ImageDiskContainer> diskContainers
Information about the disk containers.
private java.lang.String 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
private java.lang.String hypervisor
The target hypervisor platform.
Valid values: xen
private java.lang.String architecture
The architecture of the virtual machine.
Valid values: i386
| x86_64
private java.lang.String platform
The operating system of the virtual machine.
Valid values: Windows
| Linux
private ClientData clientData
The client-specific data.
private java.lang.String clientToken
The token to enable idempotency for VM import requests.
private java.lang.String roleName
The name of the role to use when not using the default role, 'vmimport'.
public void setDescription(java.lang.String description)
A description string for the import image task.
description
- A description string for the import image task.public java.lang.String getDescription()
A description string for the import image task.
public ImportImageRequest withDescription(java.lang.String description)
A description string for the import image task.
description
- A description string for the import image task.public java.util.List<ImageDiskContainer> getDiskContainers()
Information about the disk containers.
public void setDiskContainers(java.util.Collection<ImageDiskContainer> diskContainers)
Information about the disk containers.
diskContainers
- Information about the disk containers.public ImportImageRequest withDiskContainers(ImageDiskContainer... diskContainers)
Information about the disk containers.
NOTE: This method appends the values to the existing list (if
any). Use setDiskContainers(java.util.Collection)
or
withDiskContainers(java.util.Collection)
if you want to override
the existing values.
diskContainers
- Information about the disk containers.public ImportImageRequest withDiskContainers(java.util.Collection<ImageDiskContainer> diskContainers)
Information about the disk containers.
diskContainers
- Information about the disk containers.public void setLicenseType(java.lang.String 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
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 java.lang.String getLicenseType()
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
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(java.lang.String 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
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 void setHypervisor(java.lang.String hypervisor)
The target hypervisor platform.
Valid values: xen
hypervisor
- The target hypervisor platform.
Valid values: xen
public java.lang.String getHypervisor()
The target hypervisor platform.
Valid values: xen
Valid values: xen
public ImportImageRequest withHypervisor(java.lang.String hypervisor)
The target hypervisor platform.
Valid values: xen
hypervisor
- The target hypervisor platform.
Valid values: xen
public void setArchitecture(java.lang.String architecture)
The architecture of the virtual machine.
Valid values: i386
| x86_64
architecture
- The architecture of the virtual machine.
Valid values: i386
| x86_64
public java.lang.String getArchitecture()
The architecture of the virtual machine.
Valid values: i386
| x86_64
Valid values: i386
| x86_64
public ImportImageRequest withArchitecture(java.lang.String architecture)
The architecture of the virtual machine.
Valid values: i386
| x86_64
architecture
- The architecture of the virtual machine.
Valid values: i386
| x86_64
public void setPlatform(java.lang.String platform)
The operating system of the virtual machine.
Valid values: Windows
| Linux
platform
- The operating system of the virtual machine.
Valid values: Windows
| Linux
public java.lang.String getPlatform()
The operating system of the virtual machine.
Valid values: Windows
| Linux
Valid values: Windows
| Linux
public ImportImageRequest withPlatform(java.lang.String platform)
The operating system of the virtual machine.
Valid values: Windows
| Linux
platform
- The operating system of the virtual machine.
Valid values: Windows
| Linux
public void setClientData(ClientData clientData)
The client-specific data.
clientData
- The client-specific data.public ClientData getClientData()
The client-specific data.
public ImportImageRequest withClientData(ClientData clientData)
The client-specific data.
clientData
- The client-specific data.public void setClientToken(java.lang.String clientToken)
The token to enable idempotency for VM import requests.
clientToken
- The token to enable idempotency for VM import requests.public java.lang.String getClientToken()
The token to enable idempotency for VM import requests.
public ImportImageRequest withClientToken(java.lang.String clientToken)
The token to enable idempotency for VM import requests.
clientToken
- The token to enable idempotency for VM import requests.public void setRoleName(java.lang.String roleName)
The name of the role to use when not using the default role, 'vmimport'.
roleName
- The name of the role to use when not using the default role,
'vmimport'.public java.lang.String getRoleName()
The name of the role to use when not using the default role, 'vmimport'.
public ImportImageRequest withRoleName(java.lang.String roleName)
The name of the role to use when not using the default role, 'vmimport'.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ImportImageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()