public class AuditFinding extends Object implements Serializable
The findings (results) of the audit.
| Constructor and Description |
|---|
AuditFinding() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCheckName()
The audit check that generated this result.
|
Date |
getFindingTime()
The time the result (finding) was discovered.
|
NonCompliantResource |
getNonCompliantResource()
The resource that was found to be non-compliant with the audit check.
|
String |
getReasonForNonCompliance()
The reason the resource was non-compliant.
|
String |
getReasonForNonComplianceCode()
A code which indicates the reason that the resource was non-compliant.
|
List<RelatedResource> |
getRelatedResources()
The list of related resources.
|
String |
getSeverity()
The severity of the result (finding).
|
String |
getTaskId()
The ID of the audit that generated this result (finding)
|
Date |
getTaskStartTime()
The time the audit started.
|
int |
hashCode() |
void |
setCheckName(String checkName)
The audit check that generated this result.
|
void |
setFindingTime(Date findingTime)
The time the result (finding) was discovered.
|
void |
setNonCompliantResource(NonCompliantResource nonCompliantResource)
The resource that was found to be non-compliant with the audit check.
|
void |
setReasonForNonCompliance(String reasonForNonCompliance)
The reason the resource was non-compliant.
|
void |
setReasonForNonComplianceCode(String reasonForNonComplianceCode)
A code which indicates the reason that the resource was non-compliant.
|
void |
setRelatedResources(Collection<RelatedResource> relatedResources)
The list of related resources.
|
void |
setSeverity(AuditFindingSeverity severity)
The severity of the result (finding).
|
void |
setSeverity(String severity)
The severity of the result (finding).
|
void |
setTaskId(String taskId)
The ID of the audit that generated this result (finding)
|
void |
setTaskStartTime(Date taskStartTime)
The time the audit started.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AuditFinding |
withCheckName(String checkName)
The audit check that generated this result.
|
AuditFinding |
withFindingTime(Date findingTime)
The time the result (finding) was discovered.
|
AuditFinding |
withNonCompliantResource(NonCompliantResource nonCompliantResource)
The resource that was found to be non-compliant with the audit check.
|
AuditFinding |
withReasonForNonCompliance(String reasonForNonCompliance)
The reason the resource was non-compliant.
|
AuditFinding |
withReasonForNonComplianceCode(String reasonForNonComplianceCode)
A code which indicates the reason that the resource was non-compliant.
|
AuditFinding |
withRelatedResources(Collection<RelatedResource> relatedResources)
The list of related resources.
|
AuditFinding |
withRelatedResources(RelatedResource... relatedResources)
The list of related resources.
|
AuditFinding |
withSeverity(AuditFindingSeverity severity)
The severity of the result (finding).
|
AuditFinding |
withSeverity(String severity)
The severity of the result (finding).
|
AuditFinding |
withTaskId(String taskId)
The ID of the audit that generated this result (finding)
|
AuditFinding |
withTaskStartTime(Date taskStartTime)
The time the audit started.
|
public String getTaskId()
The ID of the audit that generated this result (finding)
Constraints:
Length: 1 - 40
Pattern: [a-zA-Z0-9\-]+
The ID of the audit that generated this result (finding)
public void setTaskId(String taskId)
The ID of the audit that generated this result (finding)
Constraints:
Length: 1 - 40
Pattern: [a-zA-Z0-9\-]+
taskId - The ID of the audit that generated this result (finding)
public AuditFinding withTaskId(String taskId)
The ID of the audit that generated this result (finding)
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 that generated this result (finding)
public String getCheckName()
The audit check that generated this result.
The audit check that generated this result.
public void setCheckName(String checkName)
The audit check that generated this result.
checkName - The audit check that generated this result.
public AuditFinding withCheckName(String checkName)
The audit check that generated this result.
Returns a reference to this object so that method calls can be chained together.
checkName - The audit check that generated this result.
public Date getTaskStartTime()
The time the audit started.
The time the audit started.
public void setTaskStartTime(Date taskStartTime)
The time the audit started.
taskStartTime - The time the audit started.
public AuditFinding withTaskStartTime(Date taskStartTime)
The time the audit started.
Returns a reference to this object so that method calls can be chained together.
taskStartTime - The time the audit started.
public Date getFindingTime()
The time the result (finding) was discovered.
The time the result (finding) was discovered.
public void setFindingTime(Date findingTime)
The time the result (finding) was discovered.
findingTime - The time the result (finding) was discovered.
public AuditFinding withFindingTime(Date findingTime)
The time the result (finding) was discovered.
Returns a reference to this object so that method calls can be chained together.
findingTime - The time the result (finding) was discovered.
public String getSeverity()
The severity of the result (finding).
Constraints:
Allowed Values: CRITICAL, HIGH, MEDIUM, LOW
The severity of the result (finding).
AuditFindingSeveritypublic void setSeverity(String severity)
The severity of the result (finding).
Constraints:
Allowed Values: CRITICAL, HIGH, MEDIUM, LOW
severity - The severity of the result (finding).
AuditFindingSeveritypublic AuditFinding withSeverity(String severity)
The severity of the result (finding).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CRITICAL, HIGH, MEDIUM, LOW
severity - The severity of the result (finding).
AuditFindingSeveritypublic void setSeverity(AuditFindingSeverity severity)
The severity of the result (finding).
Constraints:
Allowed Values: CRITICAL, HIGH, MEDIUM, LOW
severity - The severity of the result (finding).
AuditFindingSeveritypublic AuditFinding withSeverity(AuditFindingSeverity severity)
The severity of the result (finding).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CRITICAL, HIGH, MEDIUM, LOW
severity - The severity of the result (finding).
AuditFindingSeveritypublic NonCompliantResource getNonCompliantResource()
The resource that was found to be non-compliant with the audit check.
The resource that was found to be non-compliant with the audit check.
public void setNonCompliantResource(NonCompliantResource nonCompliantResource)
The resource that was found to be non-compliant with the audit check.
nonCompliantResource - The resource that was found to be non-compliant with the audit check.
public AuditFinding withNonCompliantResource(NonCompliantResource nonCompliantResource)
The resource that was found to be non-compliant with the audit check.
Returns a reference to this object so that method calls can be chained together.
nonCompliantResource - The resource that was found to be non-compliant with the audit check.
public List<RelatedResource> getRelatedResources()
The list of related resources.
The list of related resources.
public void setRelatedResources(Collection<RelatedResource> relatedResources)
The list of related resources.
relatedResources - The list of related resources.
public AuditFinding withRelatedResources(RelatedResource... relatedResources)
The list of related resources.
Returns a reference to this object so that method calls can be chained together.
relatedResources - The list of related resources.
public AuditFinding withRelatedResources(Collection<RelatedResource> relatedResources)
The list of related resources.
Returns a reference to this object so that method calls can be chained together.
relatedResources - The list of related resources.
public String getReasonForNonCompliance()
The reason the resource was non-compliant.
The reason the resource was non-compliant.
public void setReasonForNonCompliance(String reasonForNonCompliance)
The reason the resource was non-compliant.
reasonForNonCompliance - The reason the resource was non-compliant.
public AuditFinding withReasonForNonCompliance(String reasonForNonCompliance)
The reason the resource was non-compliant.
Returns a reference to this object so that method calls can be chained together.
reasonForNonCompliance - The reason the resource was non-compliant.
public String getReasonForNonComplianceCode()
A code which indicates the reason that the resource was non-compliant.
A code which indicates the reason that the resource was non-compliant.
public void setReasonForNonComplianceCode(String reasonForNonComplianceCode)
A code which indicates the reason that the resource was non-compliant.
reasonForNonComplianceCode - A code which indicates the reason that the resource was non-compliant.
public AuditFinding withReasonForNonComplianceCode(String reasonForNonComplianceCode)
A code which indicates the reason that the resource was non-compliant.
Returns a reference to this object so that method calls can be chained together.
reasonForNonComplianceCode - A code which indicates the reason that the resource was non-compliant.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.