public class CancelConversionTaskRequest extends AmazonWebServiceRequest implements Serializable, 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 |
---|---|
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() |
int |
hashCode() |
void |
setConversionTaskId(String conversionTaskId)
The ID of the conversion task.
|
void |
setReasonMessage(String reasonMessage) |
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)
Returns a reference to this object so that method calls can be chained together.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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
- public CancelConversionTaskRequest withReasonMessage(String reasonMessage)
Returns a reference to this object so that method calls can be chained together.
reasonMessage
- public Request<CancelConversionTaskRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CancelConversionTaskRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.