com.amazonaws.services.ec2.model
Class ImportInstanceRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.ImportInstanceRequest
All Implemented Interfaces:
DryRunSupportedRequest<ImportInstanceRequest>, java.io.Serializable

public class ImportInstanceRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<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.

See Also:
AmazonEC2.importInstance(ImportInstanceRequest), Serialized Form

Constructor 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

ImportInstanceRequest

public ImportInstanceRequest()
Method Detail

getDescription

public java.lang.String getDescription()
A description for the instance being imported.

Returns:
A description for the instance being imported.

setDescription

public void setDescription(java.lang.String description)
A description for the instance being imported.

Parameters:
description - A description for the instance being imported.

withDescription

public ImportInstanceRequest withDescription(java.lang.String description)
A description for the instance being imported.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - A description for the instance being imported.
Returns:
A reference to this updated object so that method calls can be chained together.

getLaunchSpecification

public ImportInstanceLaunchSpecification getLaunchSpecification()

Returns:


setLaunchSpecification

public void setLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)

Parameters:
launchSpecification -


withLaunchSpecification

public ImportInstanceRequest withLaunchSpecification(ImportInstanceLaunchSpecification launchSpecification)

Returns a reference to this object so that method calls can be chained together.

Parameters:
launchSpecification -

Returns:
A reference to this updated object so that method calls can be chained together.

getDiskImages

public java.util.List<DiskImage> getDiskImages()
Returns:

setDiskImages

public void setDiskImages(java.util.Collection<DiskImage> diskImages)
Parameters:
diskImages -

withDiskImages

public ImportInstanceRequest withDiskImages(DiskImage... diskImages)

Returns a reference to this object so that method calls can be chained together.

Parameters:
diskImages -
Returns:
A reference to this updated object so that method calls can be chained together.

withDiskImages

public ImportInstanceRequest withDiskImages(java.util.Collection<DiskImage> diskImages)

Returns a reference to this object so that method calls can be chained together.

Parameters:
diskImages -
Returns:
A reference to this updated object so that method calls can be chained together.

getPlatform

public java.lang.String getPlatform()
The instance operating system.

Constraints:
Allowed Values: Windows

Returns:
The instance operating system.
See Also:
PlatformValues

setPlatform

public void setPlatform(java.lang.String platform)
The instance operating system.

Constraints:
Allowed Values: Windows

Parameters:
platform - The instance operating system.
See Also:
PlatformValues

withPlatform

public ImportInstanceRequest withPlatform(java.lang.String platform)
The instance operating system.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Windows

Parameters:
platform - The instance operating system.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PlatformValues

setPlatform

public void setPlatform(PlatformValues platform)
The instance operating system.

Constraints:
Allowed Values: Windows

Parameters:
platform - The instance operating system.
See Also:
PlatformValues

withPlatform

public ImportInstanceRequest withPlatform(PlatformValues platform)
The instance operating system.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Windows

Parameters:
platform - The instance operating system.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PlatformValues

getDryRunRequest

public Request<ImportInstanceRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<ImportInstanceRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.