public class ImportInstanceRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ImportInstanceRequest>
ImportInstance operation
.
Creates an import instance task using metadata from the specified disk image. 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.
NOOP
Constructor and Description |
---|
ImportInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
A description for the instance being imported.
|
List<DiskImage> |
getDiskImages() |
Request<ImportInstanceRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
ImportInstanceLaunchSpecification |
getLaunchSpecification()
|
String |
getPlatform()
The instance operating system.
|
int |
hashCode() |
void |
setDescription(String description)
A description for the instance being imported.
|
void |
setDiskImages(Collection<DiskImage> diskImages) |
void |
setLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)
|
void |
setPlatform(PlatformValues platform)
The instance operating system.
|
void |
setPlatform(String platform)
The instance operating system.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportInstanceRequest |
withDescription(String description)
A description for the instance being imported.
|
ImportInstanceRequest |
withDiskImages(Collection<DiskImage> diskImages)
Returns a reference to this object so that method calls can be chained together.
|
ImportInstanceRequest |
withDiskImages(DiskImage... diskImages)
Returns a reference to this object so that method calls can be chained together.
|
ImportInstanceRequest |
withLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)
|
ImportInstanceRequest |
withPlatform(PlatformValues platform)
The instance operating system.
|
ImportInstanceRequest |
withPlatform(String platform)
The instance operating system.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getDescription()
public void setDescription(String description)
description
- A description for the instance being imported.public ImportInstanceRequest withDescription(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
- public ImportInstanceRequest withLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)
Returns a reference to this object so that method calls can be chained together.
launchSpecification
- public void setDiskImages(Collection<DiskImage> diskImages)
diskImages
- public ImportInstanceRequest withDiskImages(DiskImage... diskImages)
Returns a reference to this object so that method calls can be chained together.
diskImages
- public ImportInstanceRequest withDiskImages(Collection<DiskImage> diskImages)
Returns a reference to this object so that method calls can be chained together.
diskImages
- public String getPlatform()
Constraints:
Allowed Values: Windows
PlatformValues
public void setPlatform(String platform)
Constraints:
Allowed Values: Windows
platform
- The instance operating system.PlatformValues
public ImportInstanceRequest withPlatform(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.