@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CancelImportTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CancelImportTaskRequest>
NOOP| Constructor and Description |
|---|
CancelImportTaskRequest() |
| Modifier and Type | Method and Description |
|---|---|
CancelImportTaskRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setCancelReason(String cancelReason)
The reason for canceling the task.
cancelReason - The reason for canceling the task.public String getCancelReason()
The reason for canceling the task.
public CancelImportTaskRequest withCancelReason(String cancelReason)
The reason for canceling the task.
cancelReason - The reason for canceling the task.public void setImportTaskId(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 String getImportTaskId()
The ID of the import image or import snapshot task to be canceled.
public CancelImportTaskRequest withImportTaskId(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 Request<CancelImportTaskRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CancelImportTaskRequest>public String toString()
toString in class ObjectObject.toString()public CancelImportTaskRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()