Class ImportImageRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.ImportImageRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ImportImageRequest>
,Serializable
,Cloneable
public class ImportImageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ImportImageRequest>
Contains the parameters for ImportImage.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ImportImageRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportImageRequest
clone()
Creates a shallow clone of this request.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(ImageDiskContainer... diskContainers)
Information about the disk containers.ImportImageRequest
withDiskContainers(Collection<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'.-
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
-
-
-
-
Method Detail
-
setDescription
public void setDescription(String description)
A description string for the import image task.
- Parameters:
description
- A description string for the import image task.
-
getDescription
public String getDescription()
A description string for the import image task.
- Returns:
- A description string for the import image task.
-
withDescription
public ImportImageRequest withDescription(String description)
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
public List<ImageDiskContainer> getDiskContainers()
Information about the disk containers.
- Returns:
- Information about the disk containers.
-
setDiskContainers
public void setDiskContainers(Collection<ImageDiskContainer> diskContainers)
Information about the disk containers.
- Parameters:
diskContainers
- Information about the disk containers.
-
withDiskContainers
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)
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
public ImportImageRequest withDiskContainers(Collection<ImageDiskContainer> diskContainers)
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
public void setLicenseType(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
- 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
public 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
- 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
public ImportImageRequest withLicenseType(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
- 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
public void setHypervisor(String hypervisor)
The target hypervisor platform.
Valid values:
xen
- Parameters:
hypervisor
- The target hypervisor platform.Valid values:
xen
-
getHypervisor
public String getHypervisor()
The target hypervisor platform.
Valid values:
xen
- Returns:
- The target hypervisor platform.
Valid values:
xen
-
withHypervisor
public ImportImageRequest withHypervisor(String hypervisor)
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
public void setArchitecture(String architecture)
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
public String 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
public ImportImageRequest withArchitecture(String architecture)
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
public void setPlatform(String platform)
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
public String 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
public ImportImageRequest withPlatform(String platform)
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
public void setClientData(ClientData clientData)
The client-specific data.
- Parameters:
clientData
- The client-specific data.
-
getClientData
public ClientData getClientData()
The client-specific data.
- Returns:
- The client-specific data.
-
withClientData
public ImportImageRequest withClientData(ClientData clientData)
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
public void setClientToken(String clientToken)
The token to enable idempotency for VM import requests.
- Parameters:
clientToken
- The token to enable idempotency for VM import requests.
-
getClientToken
public String getClientToken()
The token to enable idempotency for VM import requests.
- Returns:
- The token to enable idempotency for VM import requests.
-
withClientToken
public ImportImageRequest withClientToken(String clientToken)
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
public void setRoleName(String roleName)
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
public String 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
public ImportImageRequest withRoleName(String roleName)
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
public Request<ImportImageRequest> 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImportImageRequest 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:
Object.clone()
-
-