public class CancelImportTaskRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CancelImportTaskRequest>
Contains the parameters for CancelImportTask.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cancelReason
The reason for canceling the task.
|
private java.lang.String |
importTaskId
The ID of the import image or import snapshot task to be canceled.
|
NOOP
Constructor and Description |
---|
CancelImportTaskRequest() |
Modifier and Type | Method and Description |
---|---|
CancelImportTaskRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String importTaskId
The ID of the import image or import snapshot task to be canceled.
private java.lang.String cancelReason
The reason for canceling the task.
public void setImportTaskId(java.lang.String importTaskId)
The ID of the import image or import snapshot task to be canceled.
importTaskId
- The ID of the import image or import snapshot task to be canceled.public java.lang.String getImportTaskId()
The ID of the import image or import snapshot task to be canceled.
public CancelImportTaskRequest withImportTaskId(java.lang.String importTaskId)
The ID of the import image or import snapshot task to be canceled.
importTaskId
- The ID of the import image or import snapshot task to be canceled.public void setCancelReason(java.lang.String cancelReason)
The reason for canceling the task.
cancelReason
- The reason for canceling the task.public java.lang.String getCancelReason()
The reason for canceling the task.
public CancelImportTaskRequest withCancelReason(java.lang.String cancelReason)
The reason for canceling the task.
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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CancelImportTaskRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()