public class AuditMitigationActionExecutionMetadata
extends java.lang.Object
implements java.io.Serializable
Returned by ListAuditMitigationActionsTask, this object contains information that describes a mitigation action that has been started.
Constructor and Description |
---|
AuditMitigationActionExecutionMetadata() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActionId()
The unique identifier for the mitigation action being applied by the
task.
|
java.lang.String |
getActionName()
The friendly name of the mitigation action being applied by the task.
|
java.util.Date |
getEndTime()
The date and time when the task was completed or canceled.
|
java.lang.String |
getErrorCode()
If an error occurred, the code that indicates which type of error
occurred.
|
java.lang.String |
getFindingId()
The unique identifier for the findings to which the task and associated
mitigation action are applied.
|
java.lang.String |
getMessage()
If an error occurred, a message that describes the error.
|
java.util.Date |
getStartTime()
The date and time when the task was started.
|
java.lang.String |
getStatus()
The current status of the task being executed.
|
java.lang.String |
getTaskId()
The unique identifier for the task that applies the mitigation action.
|
int |
hashCode() |
void |
setActionId(java.lang.String actionId)
The unique identifier for the mitigation action being applied by the
task.
|
void |
setActionName(java.lang.String actionName)
The friendly name of the mitigation action being applied by the task.
|
void |
setEndTime(java.util.Date endTime)
The date and time when the task was completed or canceled.
|
void |
setErrorCode(java.lang.String errorCode)
If an error occurred, the code that indicates which type of error
occurred.
|
void |
setFindingId(java.lang.String findingId)
The unique identifier for the findings to which the task and associated
mitigation action are applied.
|
void |
setMessage(java.lang.String message)
If an error occurred, a message that describes the error.
|
void |
setStartTime(java.util.Date startTime)
The date and time when the task was started.
|
void |
setStatus(AuditMitigationActionsExecutionStatus status)
The current status of the task being executed.
|
void |
setStatus(java.lang.String status)
The current status of the task being executed.
|
void |
setTaskId(java.lang.String taskId)
The unique identifier for the task that applies the mitigation action.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AuditMitigationActionExecutionMetadata |
withActionId(java.lang.String actionId)
The unique identifier for the mitigation action being applied by the
task.
|
AuditMitigationActionExecutionMetadata |
withActionName(java.lang.String actionName)
The friendly name of the mitigation action being applied by the task.
|
AuditMitigationActionExecutionMetadata |
withEndTime(java.util.Date endTime)
The date and time when the task was completed or canceled.
|
AuditMitigationActionExecutionMetadata |
withErrorCode(java.lang.String errorCode)
If an error occurred, the code that indicates which type of error
occurred.
|
AuditMitigationActionExecutionMetadata |
withFindingId(java.lang.String findingId)
The unique identifier for the findings to which the task and associated
mitigation action are applied.
|
AuditMitigationActionExecutionMetadata |
withMessage(java.lang.String message)
If an error occurred, a message that describes the error.
|
AuditMitigationActionExecutionMetadata |
withStartTime(java.util.Date startTime)
The date and time when the task was started.
|
AuditMitigationActionExecutionMetadata |
withStatus(AuditMitigationActionsExecutionStatus status)
The current status of the task being executed.
|
AuditMitigationActionExecutionMetadata |
withStatus(java.lang.String status)
The current status of the task being executed.
|
AuditMitigationActionExecutionMetadata |
withTaskId(java.lang.String taskId)
The unique identifier for the task that applies the mitigation action.
|
public AuditMitigationActionExecutionMetadata()
public java.lang.String getTaskId()
The unique identifier for the task that applies the mitigation action.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
The unique identifier for the task that applies the mitigation action.
public void setTaskId(java.lang.String taskId)
The unique identifier for the task that applies the mitigation action.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
taskId
- The unique identifier for the task that applies the mitigation action.
public AuditMitigationActionExecutionMetadata withTaskId(java.lang.String taskId)
The unique identifier for the task that applies the mitigation action.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
taskId
- The unique identifier for the task that applies the mitigation action.
public java.lang.String getFindingId()
The unique identifier for the findings to which the task and associated mitigation action are applied.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
The unique identifier for the findings to which the task and associated mitigation action are applied.
public void setFindingId(java.lang.String findingId)
The unique identifier for the findings to which the task and associated mitigation action are applied.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
findingId
- The unique identifier for the findings to which the task and associated mitigation action are applied.
public AuditMitigationActionExecutionMetadata withFindingId(java.lang.String findingId)
The unique identifier for the findings to which the task and associated mitigation action are applied.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
findingId
- The unique identifier for the findings to which the task and associated mitigation action are applied.
public java.lang.String getActionName()
The friendly name of the mitigation action being applied by the task.
Constraints:
Length: - 128
Pattern: [a-zA-Z0-9_-]+
The friendly name of the mitigation action being applied by the task.
public void setActionName(java.lang.String actionName)
The friendly name of the mitigation action being applied by the task.
Constraints:
Length: - 128
Pattern: [a-zA-Z0-9_-]+
actionName
- The friendly name of the mitigation action being applied by the task.
public AuditMitigationActionExecutionMetadata withActionName(java.lang.String actionName)
The friendly name of the mitigation action being applied by the task.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 128
Pattern: [a-zA-Z0-9_-]+
actionName
- The friendly name of the mitigation action being applied by the task.
public java.lang.String getActionId()
The unique identifier for the mitigation action being applied by the task.
The unique identifier for the mitigation action being applied by the task.
public void setActionId(java.lang.String actionId)
The unique identifier for the mitigation action being applied by the task.
actionId
- The unique identifier for the mitigation action being applied by the task.
public AuditMitigationActionExecutionMetadata withActionId(java.lang.String actionId)
The unique identifier for the mitigation action being applied by the task.
Returns a reference to this object so that method calls can be chained together.
actionId
- The unique identifier for the mitigation action being applied by the task.
public java.lang.String getStatus()
The current status of the task being executed.
Constraints:
Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED, SKIPPED,
PENDING
The current status of the task being executed.
AuditMitigationActionsExecutionStatus
public void setStatus(java.lang.String status)
The current status of the task being executed.
Constraints:
Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED, SKIPPED,
PENDING
status
- The current status of the task being executed.
AuditMitigationActionsExecutionStatus
public AuditMitigationActionExecutionMetadata withStatus(java.lang.String status)
The current status of the task being executed.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED, SKIPPED,
PENDING
status
- The current status of the task being executed.
AuditMitigationActionsExecutionStatus
public void setStatus(AuditMitigationActionsExecutionStatus status)
The current status of the task being executed.
Constraints:
Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED, SKIPPED,
PENDING
status
- The current status of the task being executed.
AuditMitigationActionsExecutionStatus
public AuditMitigationActionExecutionMetadata withStatus(AuditMitigationActionsExecutionStatus status)
The current status of the task being executed.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED, SKIPPED,
PENDING
status
- The current status of the task being executed.
AuditMitigationActionsExecutionStatus
public java.util.Date getStartTime()
The date and time when the task was started.
The date and time when the task was started.
public void setStartTime(java.util.Date startTime)
The date and time when the task was started.
startTime
- The date and time when the task was started.
public AuditMitigationActionExecutionMetadata withStartTime(java.util.Date startTime)
The date and time when the task was started.
Returns a reference to this object so that method calls can be chained together.
startTime
- The date and time when the task was started.
public java.util.Date getEndTime()
The date and time when the task was completed or canceled. Blank if the task is still running.
The date and time when the task was completed or canceled. Blank if the task is still running.
public void setEndTime(java.util.Date endTime)
The date and time when the task was completed or canceled. Blank if the task is still running.
endTime
- The date and time when the task was completed or canceled. Blank if the task is still running.
public AuditMitigationActionExecutionMetadata withEndTime(java.util.Date endTime)
The date and time when the task was completed or canceled. Blank if the task is still running.
Returns a reference to this object so that method calls can be chained together.
endTime
- The date and time when the task was completed or canceled. Blank if the task is still running.
public java.lang.String getErrorCode()
If an error occurred, the code that indicates which type of error occurred.
If an error occurred, the code that indicates which type of error occurred.
public void setErrorCode(java.lang.String errorCode)
If an error occurred, the code that indicates which type of error occurred.
errorCode
- If an error occurred, the code that indicates which type of error occurred.
public AuditMitigationActionExecutionMetadata withErrorCode(java.lang.String errorCode)
If an error occurred, the code that indicates which type of error occurred.
Returns a reference to this object so that method calls can be chained together.
errorCode
- If an error occurred, the code that indicates which type of error occurred.
public java.lang.String getMessage()
If an error occurred, a message that describes the error.
Constraints:
Length: - 2048
If an error occurred, a message that describes the error.
public void setMessage(java.lang.String message)
If an error occurred, a message that describes the error.
Constraints:
Length: - 2048
message
- If an error occurred, a message that describes the error.
public AuditMitigationActionExecutionMetadata withMessage(java.lang.String message)
If an error occurred, a message that describes the error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 2048
message
- If an error occurred, a message that describes the error.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.