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 ImportImageRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetArchitecture()The architecture of the virtual machine.ClientDatagetClientData()The client-specific data.StringgetClientToken()The token to enable idempotency for VM import requests.StringgetDescription()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.StringgetHypervisor()The target hypervisor platform.StringgetLicenseType()The license type to be used for the Amazon Machine Image (AMI) after importing.StringgetPlatform()The operating system of the virtual machine.StringgetRoleName()The name of the role to use when not using the default role, 'vmimport'.inthashCode()voidsetArchitecture(String architecture)The architecture of the virtual machine.voidsetClientData(ClientData clientData)The client-specific data.voidsetClientToken(String clientToken)The token to enable idempotency for VM import requests.voidsetDescription(String description)A description string for the import image task.voidsetDiskContainers(Collection<ImageDiskContainer> diskContainers)Information about the disk containers.voidsetHypervisor(String hypervisor)The target hypervisor platform.voidsetLicenseType(String licenseType)The license type to be used for the Amazon Machine Image (AMI) after importing.voidsetPlatform(String platform)The operating system of the virtual machine.voidsetRoleName(String roleName)The name of the role to use when not using the default role, 'vmimport'.StringtoString()Returns a string representation of this object; useful for testing and debugging.ImportImageRequestwithArchitecture(String architecture)The architecture of the virtual machine.ImportImageRequestwithClientData(ClientData clientData)The client-specific data.ImportImageRequestwithClientToken(String clientToken)The token to enable idempotency for VM import requests.ImportImageRequestwithDescription(String description)A description string for the import image task.ImportImageRequestwithDiskContainers(ImageDiskContainer... diskContainers)Information about the disk containers.ImportImageRequestwithDiskContainers(Collection<ImageDiskContainer> diskContainers)Information about the disk containers.ImportImageRequestwithHypervisor(String hypervisor)The target hypervisor platform.ImportImageRequestwithLicenseType(String licenseType)The license type to be used for the Amazon Machine Image (AMI) after importing.ImportImageRequestwithPlatform(String platform)The operating system of the virtual machine.ImportImageRequestwithRoleName(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:
getDryRunRequestin interfaceDryRunSupportedRequest<ImportImageRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ImportImageRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-