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.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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 Object
Object.toString()
public CancelImportTaskRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.