|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ImportInstanceRequest
public class ImportInstanceRequest
Container for the parameters to the 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.
AmazonEC2.importInstance(ImportInstanceRequest)
,
Serialized FormConstructor Summary | |
---|---|
ImportInstanceRequest()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImportInstanceRequest()
Method Detail |
---|
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 List<DiskImage> getDiskImages()
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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |