com.amazonaws.services.ec2.model
Class CancelConversionTaskRequest

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

public class CancelConversionTaskRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<CancelConversionTaskRequest>

Container for the parameters to the CancelConversionTask operation.

Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.

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.cancelConversionTask(CancelConversionTaskRequest), Serialized Form

Constructor Summary
CancelConversionTaskRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getConversionTaskId()
          The ID of the conversion task.
 Request<CancelConversionTaskRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getReasonMessage()
           
 int hashCode()
           
 void setConversionTaskId(java.lang.String conversionTaskId)
          The ID of the conversion task.
 void setReasonMessage(java.lang.String reasonMessage)
           
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CancelConversionTaskRequest withConversionTaskId(java.lang.String conversionTaskId)
          The ID of the conversion task.
 CancelConversionTaskRequest withReasonMessage(java.lang.String reasonMessage)
           Returns a reference to this object so that method calls can be chained together.
 
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

CancelConversionTaskRequest

public CancelConversionTaskRequest()
Method Detail

getConversionTaskId

public java.lang.String getConversionTaskId()
The ID of the conversion task.

Returns:
The ID of the conversion task.

setConversionTaskId

public void setConversionTaskId(java.lang.String conversionTaskId)
The ID of the conversion task.

Parameters:
conversionTaskId - The ID of the conversion task.

withConversionTaskId

public CancelConversionTaskRequest withConversionTaskId(java.lang.String conversionTaskId)
The ID of the conversion task.

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

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

getReasonMessage

public java.lang.String getReasonMessage()
Returns:

setReasonMessage

public void setReasonMessage(java.lang.String reasonMessage)
Parameters:
reasonMessage -

withReasonMessage

public CancelConversionTaskRequest withReasonMessage(java.lang.String reasonMessage)

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

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

getDryRunRequest

public Request<CancelConversionTaskRequest> 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<CancelConversionTaskRequest>

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.