public class CancelImportTaskRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<CancelImportTaskRequest>
CancelImportTask operation
.
Cancels an in-process import virtual machine or import snapshot task.
Constructor and Description |
---|
CancelImportTaskRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCancelReason()
The reason for canceling the task.
|
Request<CancelImportTaskRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getImportTaskId()
The ID of the import image or import snapshot task to be canceled.
|
int |
hashCode() |
void |
setCancelReason(java.lang.String cancelReason)
The reason for canceling the task.
|
void |
setImportTaskId(java.lang.String importTaskId)
The ID of the import image or import snapshot task to be canceled.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelImportTaskRequest |
withCancelReason(java.lang.String cancelReason)
The reason for canceling the task.
|
CancelImportTaskRequest |
withImportTaskId(java.lang.String importTaskId)
The ID of the import image or import snapshot task to be canceled.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getImportTaskId()
public void setImportTaskId(java.lang.String importTaskId)
importTaskId
- The ID of the import image or import snapshot task to be canceled.public CancelImportTaskRequest withImportTaskId(java.lang.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 java.lang.String getCancelReason()
public void setCancelReason(java.lang.String cancelReason)
cancelReason
- The reason for canceling the task.public CancelImportTaskRequest withCancelReason(java.lang.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 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.