public class CancelAuditTaskRequest extends AmazonWebServiceRequest implements Serializable
Cancels an audit that is in progress. The audit can be either scheduled or on-demand. If the audit is not in progress, an "InvalidRequestException" occurs.
| Constructor and Description |
|---|
CancelAuditTaskRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getTaskId()
The ID of the audit you want to cancel.
|
int |
hashCode() |
void |
setTaskId(String taskId)
The ID of the audit you want to cancel.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelAuditTaskRequest |
withTaskId(String taskId)
The ID of the audit you want to cancel.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getTaskId()
The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".
Constraints:
Length: 1 - 40
Pattern: [a-zA-Z0-9\-]+
The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".
public void setTaskId(String taskId)
The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".
Constraints:
Length: 1 - 40
Pattern: [a-zA-Z0-9\-]+
taskId - The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".
public CancelAuditTaskRequest withTaskId(String taskId)
The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 40
Pattern: [a-zA-Z0-9\-]+
taskId - The ID of the audit you want to cancel. You can only cancel an audit that is "IN_PROGRESS".
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.