public class CancelConversionTaskRequest extends AmazonWebServiceRequest implements java.io.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 .
Constructor and Description |
---|
CancelConversionTaskRequest() |
Modifier and Type | Method and Description |
---|---|
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()
The reason for canceling the conversion task.
|
int |
hashCode() |
void |
setConversionTaskId(java.lang.String conversionTaskId)
The ID of the conversion task.
|
void |
setReasonMessage(java.lang.String reasonMessage)
The reason for canceling the conversion task.
|
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)
The reason for canceling the conversion task.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getConversionTaskId()
public void setConversionTaskId(java.lang.String conversionTaskId)
conversionTaskId
- The ID of the conversion task.public CancelConversionTaskRequest withConversionTaskId(java.lang.String conversionTaskId)
Returns a reference to this object so that method calls can be chained together.
conversionTaskId
- The ID of the conversion task.public java.lang.String getReasonMessage()
public void setReasonMessage(java.lang.String reasonMessage)
reasonMessage
- The reason for canceling the conversion task.public CancelConversionTaskRequest withReasonMessage(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.