public class CancelConversionTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CancelConversionTaskRequest>
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 .
NOOP| Constructor and Description |
|---|
CancelConversionTaskRequest() |
| Modifier and Type | Method and Description |
|---|---|
CancelConversionTaskRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getConversionTaskId()
The ID of the conversion task.
|
Request<CancelConversionTaskRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getReasonMessage()
The reason for canceling the conversion task.
|
int |
hashCode() |
void |
setConversionTaskId(String conversionTaskId)
The ID of the conversion task.
|
void |
setReasonMessage(String reasonMessage)
The reason for canceling the conversion task.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelConversionTaskRequest |
withConversionTaskId(String conversionTaskId)
The ID of the conversion task.
|
CancelConversionTaskRequest |
withReasonMessage(String reasonMessage)
The reason for canceling the conversion task.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic String getConversionTaskId()
public void setConversionTaskId(String conversionTaskId)
conversionTaskId - The ID of the conversion task.public CancelConversionTaskRequest withConversionTaskId(String conversionTaskId)
Returns a reference to this object so that method calls can be chained together.
conversionTaskId - The ID of the conversion task.public String getReasonMessage()
public void setReasonMessage(String reasonMessage)
reasonMessage - The reason for canceling the conversion task.public CancelConversionTaskRequest withReasonMessage(String reasonMessage)
Returns a reference to this object so that method calls can be chained together.
reasonMessage - The reason for canceling the conversion task.public Request<CancelConversionTaskRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CancelConversionTaskRequest>public String toString()
toString in class ObjectObject.toString()public CancelConversionTaskRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.