com.amazonaws.services.ec2.model
Class CreateInstanceExportTaskRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateInstanceExportTaskRequest
All Implemented Interfaces:
java.io.Serializable

public class CreateInstanceExportTaskRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the CreateInstanceExportTask operation.

Exports a running or stopped instance to an Amazon S3 bucket.

For information about the supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting EC2 Instances in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.createInstanceExportTask(CreateInstanceExportTaskRequest), Serialized Form

Constructor Summary
CreateInstanceExportTaskRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          A description for the conversion task or the resource being exported.
 ExportToS3TaskSpecification getExportToS3Task()
           
 java.lang.String getInstanceId()
          The ID of the instance.
 java.lang.String getTargetEnvironment()
          The target virtualization environment.
 int hashCode()
           
 void setDescription(java.lang.String description)
          A description for the conversion task or the resource being exported.
 void setExportToS3Task(ExportToS3TaskSpecification exportToS3Task)
           
 void setInstanceId(java.lang.String instanceId)
          The ID of the instance.
 void setTargetEnvironment(ExportEnvironment targetEnvironment)
          The target virtualization environment.
 void setTargetEnvironment(java.lang.String targetEnvironment)
          The target virtualization environment.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateInstanceExportTaskRequest withDescription(java.lang.String description)
          A description for the conversion task or the resource being exported.
 CreateInstanceExportTaskRequest withExportToS3Task(ExportToS3TaskSpecification exportToS3Task)
           Returns a reference to this object so that method calls can be chained together.
 CreateInstanceExportTaskRequest withInstanceId(java.lang.String instanceId)
          The ID of the instance.
 CreateInstanceExportTaskRequest withTargetEnvironment(ExportEnvironment targetEnvironment)
          The target virtualization environment.
 CreateInstanceExportTaskRequest withTargetEnvironment(java.lang.String targetEnvironment)
          The target virtualization environment.
 
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

CreateInstanceExportTaskRequest

public CreateInstanceExportTaskRequest()
Method Detail

getDescription

public java.lang.String getDescription()
A description for the conversion task or the resource being exported. The maximum length is 255 bytes.

Returns:
A description for the conversion task or the resource being exported. The maximum length is 255 bytes.

setDescription

public void setDescription(java.lang.String description)
A description for the conversion task or the resource being exported. The maximum length is 255 bytes.

Parameters:
description - A description for the conversion task or the resource being exported. The maximum length is 255 bytes.

withDescription

public CreateInstanceExportTaskRequest withDescription(java.lang.String description)
A description for the conversion task or the resource being exported. The maximum length is 255 bytes.

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

Parameters:
description - A description for the conversion task or the resource being exported. The maximum length is 255 bytes.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceId

public java.lang.String getInstanceId()
The ID of the instance.

Returns:
The ID of the instance.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the instance.

Parameters:
instanceId - The ID of the instance.

withInstanceId

public CreateInstanceExportTaskRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.

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

Parameters:
instanceId - The ID of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getTargetEnvironment

public java.lang.String getTargetEnvironment()
The target virtualization environment.

Constraints:
Allowed Values: citrix, vmware, microsoft

Returns:
The target virtualization environment.
See Also:
ExportEnvironment

setTargetEnvironment

public void setTargetEnvironment(java.lang.String targetEnvironment)
The target virtualization environment.

Constraints:
Allowed Values: citrix, vmware, microsoft

Parameters:
targetEnvironment - The target virtualization environment.
See Also:
ExportEnvironment

withTargetEnvironment

public CreateInstanceExportTaskRequest withTargetEnvironment(java.lang.String targetEnvironment)
The target virtualization environment.

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

Constraints:
Allowed Values: citrix, vmware, microsoft

Parameters:
targetEnvironment - The target virtualization environment.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ExportEnvironment

setTargetEnvironment

public void setTargetEnvironment(ExportEnvironment targetEnvironment)
The target virtualization environment.

Constraints:
Allowed Values: citrix, vmware, microsoft

Parameters:
targetEnvironment - The target virtualization environment.
See Also:
ExportEnvironment

withTargetEnvironment

public CreateInstanceExportTaskRequest withTargetEnvironment(ExportEnvironment targetEnvironment)
The target virtualization environment.

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

Constraints:
Allowed Values: citrix, vmware, microsoft

Parameters:
targetEnvironment - The target virtualization environment.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ExportEnvironment

getExportToS3Task

public ExportToS3TaskSpecification getExportToS3Task()
Returns:

setExportToS3Task

public void setExportToS3Task(ExportToS3TaskSpecification exportToS3Task)
Parameters:
exportToS3Task -

withExportToS3Task

public CreateInstanceExportTaskRequest withExportToS3Task(ExportToS3TaskSpecification exportToS3Task)

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

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

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.