public class ImportInstanceRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<ImportInstanceRequest>
ImportInstance operation
.
Creates an import instance task using metadata from the specified disk
image. ImportInstance
only supports single-volume VMs. To
import multi-volume VMs, use ImportImage. After importing the image,
you then upload it using the ec2-import-volume
command in
the EC2 command line tools. For more information, see
Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2
in the Amazon Elastic Compute Cloud User Guide .
For information about the import manifest referenced by this API action, see VM Import Manifest .
Constructor and Description |
---|
ImportInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A description for the instance being imported.
|
java.util.List<DiskImage> |
getDiskImages()
The disk image.
|
Request<ImportInstanceRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
ImportInstanceLaunchSpecification |
getLaunchSpecification()
The launch specification.
|
java.lang.String |
getPlatform()
The instance operating system.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
A description for the instance being imported.
|
void |
setDiskImages(java.util.Collection<DiskImage> diskImages)
The disk image.
|
void |
setLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)
The launch specification.
|
void |
setPlatform(PlatformValues platform)
The instance operating system.
|
void |
setPlatform(java.lang.String platform)
The instance operating system.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportInstanceRequest |
withDescription(java.lang.String description)
A description for the instance being imported.
|
ImportInstanceRequest |
withDiskImages(java.util.Collection<DiskImage> diskImages)
The disk image.
|
ImportInstanceRequest |
withDiskImages(DiskImage... diskImages)
The disk image.
|
ImportInstanceRequest |
withLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)
The launch specification.
|
ImportInstanceRequest |
withPlatform(PlatformValues platform)
The instance operating system.
|
ImportInstanceRequest |
withPlatform(java.lang.String platform)
The instance operating system.
|
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 for the instance being imported.public ImportInstanceRequest withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description for the instance being imported.public ImportInstanceLaunchSpecification getLaunchSpecification()
public void setLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)
launchSpecification
- The launch specification.public ImportInstanceRequest withLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)
Returns a reference to this object so that method calls can be chained together.
launchSpecification
- The launch specification.public java.util.List<DiskImage> getDiskImages()
public void setDiskImages(java.util.Collection<DiskImage> diskImages)
diskImages
- The disk image.public ImportInstanceRequest withDiskImages(DiskImage... diskImages)
Returns a reference to this object so that method calls can be chained together.
diskImages
- The disk image.public ImportInstanceRequest withDiskImages(java.util.Collection<DiskImage> diskImages)
Returns a reference to this object so that method calls can be chained together.
diskImages
- The disk image.public java.lang.String getPlatform()
Constraints:
Allowed Values: Windows
PlatformValues
public void setPlatform(java.lang.String platform)
Constraints:
Allowed Values: Windows
platform
- The instance operating system.PlatformValues
public ImportInstanceRequest withPlatform(java.lang.String platform)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Windows
platform
- The instance operating system.PlatformValues
public void setPlatform(PlatformValues platform)
Constraints:
Allowed Values: Windows
platform
- The instance operating system.PlatformValues
public ImportInstanceRequest withPlatform(PlatformValues platform)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Windows
platform
- The instance operating system.PlatformValues
public Request<ImportInstanceRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ImportInstanceRequest>
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.