@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CancelImportTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CancelImportTaskRequest>
Contains the parameters for CancelImportTask.
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; 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.
|
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, withSdkRequestTimeout
public 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 Object
Object.toString()
public CancelImportTaskRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.