public class CancelAuditTaskRequest extends AmazonWebServiceRequest implements java.io.Serializable
Cancels an audit that is in progress. The audit can be either scheduled or on demand. If the audit isn't in progress, an "InvalidRequestException" occurs.
| Constructor and Description | 
|---|
| CancelAuditTaskRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object obj) | 
| java.lang.String | getTaskId()
 The ID of the audit you want to cancel. | 
| int | hashCode() | 
| void | setTaskId(java.lang.String taskId)
 The ID of the audit you want to cancel. | 
| java.lang.String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| CancelAuditTaskRequest | withTaskId(java.lang.String taskId)
 The ID of the audit you want to cancel. | 
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.