|
|||||||
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(java.lang.Object obj)
|
java.lang.String |
getDescription()
A description for the instance being imported. |
java.util.List<DiskImage> |
getDiskImages()
|
Request<ImportInstanceRequest> |
getDryRunRequest()
This method is intended for internal use only. |
ImportInstanceLaunchSpecification |
getLaunchSpecification()
|
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)
|
void |
setLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)
|
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)
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(java.lang.String platform)
The instance operating system. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImportInstanceRequest()
Method Detail |
---|
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
- public ImportInstanceRequest withLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)
Returns a reference to this object so that method calls can be chained together.
launchSpecification
-
public java.util.List<DiskImage> getDiskImages()
public void setDiskImages(java.util.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(java.util.Collection<DiskImage> diskImages)
Returns a reference to this object so that method calls can be chained together.
diskImages
-
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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |