public class CancelImportTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CancelImportTaskRequest>
CancelImportTask operation.
Cancels an in-process import virtual machine or import snapshot task.
NOOP| Constructor and Description |
|---|
CancelImportTaskRequest() |
| Modifier and Type | Method and Description |
|---|---|
CancelImportTaskRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getCancelReason()
The reason for canceling the task.
|
Request<CancelImportTaskRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getImportTaskId()
The ID of the import image or import snapshot task to be canceled.
|
int |
hashCode() |
void |
setCancelReason(String cancelReason)
The reason for canceling the task.
|
void |
setImportTaskId(String importTaskId)
The ID of the import image or import snapshot task to be canceled.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelImportTaskRequest |
withCancelReason(String cancelReason)
The reason for canceling the task.
|
CancelImportTaskRequest |
withImportTaskId(String importTaskId)
The ID of the import image or import snapshot task to be canceled.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic String getImportTaskId()
public void setImportTaskId(String importTaskId)
importTaskId - The ID of the import image or import snapshot task to be canceled.public CancelImportTaskRequest withImportTaskId(String importTaskId)
Returns a reference to this object so that method calls can be chained together.
importTaskId - The ID of the import image or import snapshot task to be canceled.public String getCancelReason()
public void setCancelReason(String cancelReason)
cancelReason - The reason for canceling the task.public CancelImportTaskRequest withCancelReason(String cancelReason)
Returns a reference to this object so that method calls can be chained together.
cancelReason - The reason for canceling the task.public Request<CancelImportTaskRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CancelImportTaskRequest>public String toString()
toString in class ObjectObject.toString()public CancelImportTaskRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.