public class ImportImageRequest extends AmazonWebServiceRequest implements java.io.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(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'.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- A description string for the import image task.public ImportImageRequest withDescription(java.lang.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 java.util.List<ImageDiskContainer> getDiskContainers()
public void setDiskContainers(java.util.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(java.util.Collection<ImageDiskContainer> diskContainers)
Returns a reference to this object so that method calls can be chained together.
diskContainers
- Information about the disk containers.public java.lang.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(java.lang.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(java.lang.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 java.lang.String getHypervisor()
Valid values: xen
Valid values: xen
public void setHypervisor(java.lang.String hypervisor)
Valid values: xen
hypervisor
- The target hypervisor platform. Valid values: xen
public ImportImageRequest withHypervisor(java.lang.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 java.lang.String getArchitecture()
Valid values:
i386
| x86_64
Valid values:
i386
| x86_64
public void setArchitecture(java.lang.String architecture)
Valid values:
i386
| x86_64
architecture
- The architecture of the virtual machine. Valid values:
i386
| x86_64
public ImportImageRequest withArchitecture(java.lang.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 java.lang.String getPlatform()
Valid values:
Windows
| Linux
Valid values:
Windows
| Linux
public void setPlatform(java.lang.String platform)
Valid values:
Windows
| Linux
platform
- The operating system of the virtual machine. Valid values:
Windows
| Linux
public ImportImageRequest withPlatform(java.lang.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 java.lang.String getClientToken()
public void setClientToken(java.lang.String clientToken)
clientToken
- The token to enable idempotency for VM import requests.public ImportImageRequest withClientToken(java.lang.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 java.lang.String getRoleName()
public void setRoleName(java.lang.String roleName)
roleName
- The name of the role to use when not using the default role,
'vmimport'.public ImportImageRequest withRoleName(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.