Class ImportImageRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ImportImageRequest>
,Serializable
,Cloneable
Contains the parameters for ImportImage.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The architecture of the virtual machine.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.This method is intended for internal use only.The target hypervisor platform.The license type to be used for the Amazon Machine Image (AMI) after importing.The operating system of the virtual machine.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'.toString()
Returns a string representation of this object; useful for testing and debugging.withArchitecture
(String architecture) The architecture of the virtual machine.withClientData
(ClientData clientData) The client-specific data.withClientToken
(String clientToken) The token to enable idempotency for VM import requests.withDescription
(String description) A description string for the import image task.withDiskContainers
(ImageDiskContainer... diskContainers) Information about the disk containers.withDiskContainers
(Collection<ImageDiskContainer> diskContainers) Information about the disk containers.withHypervisor
(String hypervisor) The target hypervisor platform.withLicenseType
(String licenseType) The license type to be used for the Amazon Machine Image (AMI) after importing.withPlatform
(String platform) The operating system of the virtual machine.withRoleName
(String roleName) The name of the role to use when not using the default role, 'vmimport'.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
ImportImageRequest
public ImportImageRequest()
-
-
Method Details
-
setDescription
A description string for the import image task.
- Parameters:
description
- A description string for the import image task.
-
getDescription
A description string for the import image task.
- Returns:
- A description string for the import image task.
-
withDescription
A description string for the import image task.
- Parameters:
description
- A description string for the import image task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDiskContainers
Information about the disk containers.
- Returns:
- Information about the disk containers.
-
setDiskContainers
Information about the disk containers.
- Parameters:
diskContainers
- Information about the disk containers.
-
withDiskContainers
Information about the disk containers.
NOTE: This method appends the values to the existing list (if any). Use
setDiskContainers(java.util.Collection)
orwithDiskContainers(java.util.Collection)
if you want to override the existing values.- Parameters:
diskContainers
- Information about the disk containers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDiskContainers
Information about the disk containers.
- Parameters:
diskContainers
- Information about the disk containers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLicenseType
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
- Parameters:
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
-
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
- Returns:
- 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
-
withLicenseType
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
- Parameters:
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
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHypervisor
The target hypervisor platform.
Valid values:
xen
- Parameters:
hypervisor
- The target hypervisor platform.Valid values:
xen
-
getHypervisor
The target hypervisor platform.
Valid values:
xen
- Returns:
- The target hypervisor platform.
Valid values:
xen
-
withHypervisor
The target hypervisor platform.
Valid values:
xen
- Parameters:
hypervisor
- The target hypervisor platform.Valid values:
xen
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArchitecture
The architecture of the virtual machine.
Valid values:
i386
|x86_64
- Parameters:
architecture
- The architecture of the virtual machine.Valid values:
i386
|x86_64
-
getArchitecture
The architecture of the virtual machine.
Valid values:
i386
|x86_64
- Returns:
- The architecture of the virtual machine.
Valid values:
i386
|x86_64
-
withArchitecture
The architecture of the virtual machine.
Valid values:
i386
|x86_64
- Parameters:
architecture
- The architecture of the virtual machine.Valid values:
i386
|x86_64
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlatform
The operating system of the virtual machine.
Valid values:
Windows
|Linux
- Parameters:
platform
- The operating system of the virtual machine.Valid values:
Windows
|Linux
-
getPlatform
The operating system of the virtual machine.
Valid values:
Windows
|Linux
- Returns:
- The operating system of the virtual machine.
Valid values:
Windows
|Linux
-
withPlatform
The operating system of the virtual machine.
Valid values:
Windows
|Linux
- Parameters:
platform
- The operating system of the virtual machine.Valid values:
Windows
|Linux
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClientData
The client-specific data.
- Parameters:
clientData
- The client-specific data.
-
getClientData
The client-specific data.
- Returns:
- The client-specific data.
-
withClientData
The client-specific data.
- Parameters:
clientData
- The client-specific data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClientToken
The token to enable idempotency for VM import requests.
- Parameters:
clientToken
- The token to enable idempotency for VM import requests.
-
getClientToken
The token to enable idempotency for VM import requests.
- Returns:
- The token to enable idempotency for VM import requests.
-
withClientToken
The token to enable idempotency for VM import requests.
- Parameters:
clientToken
- The token to enable idempotency for VM import requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleName
The name of the role to use when not using the default role, 'vmimport'.
- Parameters:
roleName
- The name of the role to use when not using the default role, 'vmimport'.
-
getRoleName
The name of the role to use when not using the default role, 'vmimport'.
- Returns:
- The name of the role to use when not using the default role, 'vmimport'.
-
withRoleName
The name of the role to use when not using the default role, 'vmimport'.
- Parameters:
roleName
- The name of the role to use when not using the default role, 'vmimport'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ImportImageRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-