public class AuditFinding
extends java.lang.Object
implements java.io.Serializable
The findings (results) of the audit.
Constructor and Description |
---|
AuditFinding() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCheckName()
The audit check that generated this result.
|
java.lang.String |
getFindingId()
A unique identifier for this set of audit findings.
|
java.util.Date |
getFindingTime()
The time the result (finding) was discovered.
|
java.lang.Boolean |
getIsSuppressed()
Indicates whether the audit finding was suppressed or not during
reporting.
|
NonCompliantResource |
getNonCompliantResource()
The resource that was found to be noncompliant with the audit check.
|
java.lang.String |
getReasonForNonCompliance()
The reason the resource was noncompliant.
|
java.lang.String |
getReasonForNonComplianceCode()
A code that indicates the reason that the resource was noncompliant.
|
java.util.List<RelatedResource> |
getRelatedResources()
The list of related resources.
|
java.lang.String |
getSeverity()
The severity of the result (finding).
|
java.lang.String |
getTaskId()
The ID of the audit that generated this result (finding).
|
java.util.Date |
getTaskStartTime()
The time the audit started.
|
int |
hashCode() |
java.lang.Boolean |
isIsSuppressed()
Indicates whether the audit finding was suppressed or not during
reporting.
|
void |
setCheckName(java.lang.String checkName)
The audit check that generated this result.
|
void |
setFindingId(java.lang.String findingId)
A unique identifier for this set of audit findings.
|
void |
setFindingTime(java.util.Date findingTime)
The time the result (finding) was discovered.
|
void |
setIsSuppressed(java.lang.Boolean isSuppressed)
Indicates whether the audit finding was suppressed or not during
reporting.
|
void |
setNonCompliantResource(NonCompliantResource nonCompliantResource)
The resource that was found to be noncompliant with the audit check.
|
void |
setReasonForNonCompliance(java.lang.String reasonForNonCompliance)
The reason the resource was noncompliant.
|
void |
setReasonForNonComplianceCode(java.lang.String reasonForNonComplianceCode)
A code that indicates the reason that the resource was noncompliant.
|
void |
setRelatedResources(java.util.Collection<RelatedResource> relatedResources)
The list of related resources.
|
void |
setSeverity(AuditFindingSeverity severity)
The severity of the result (finding).
|
void |
setSeverity(java.lang.String severity)
The severity of the result (finding).
|
void |
setTaskId(java.lang.String taskId)
The ID of the audit that generated this result (finding).
|
void |
setTaskStartTime(java.util.Date taskStartTime)
The time the audit started.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AuditFinding |
withCheckName(java.lang.String checkName)
The audit check that generated this result.
|
AuditFinding |
withFindingId(java.lang.String findingId)
A unique identifier for this set of audit findings.
|
AuditFinding |
withFindingTime(java.util.Date findingTime)
The time the result (finding) was discovered.
|
AuditFinding |
withIsSuppressed(java.lang.Boolean isSuppressed)
Indicates whether the audit finding was suppressed or not during
reporting.
|
AuditFinding |
withNonCompliantResource(NonCompliantResource nonCompliantResource)
The resource that was found to be noncompliant with the audit check.
|
AuditFinding |
withReasonForNonCompliance(java.lang.String reasonForNonCompliance)
The reason the resource was noncompliant.
|
AuditFinding |
withReasonForNonComplianceCode(java.lang.String reasonForNonComplianceCode)
A code that indicates the reason that the resource was noncompliant.
|
AuditFinding |
withRelatedResources(java.util.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(java.lang.String severity)
The severity of the result (finding).
|
AuditFinding |
withTaskId(java.lang.String taskId)
The ID of the audit that generated this result (finding).
|
AuditFinding |
withTaskStartTime(java.util.Date taskStartTime)
The time the audit started.
|
public java.lang.String getFindingId()
A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.
public void setFindingId(java.lang.String findingId)
A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
findingId
- A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.
public AuditFinding withFindingId(java.lang.String findingId)
A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
findingId
- A unique identifier for this set of audit findings. This identifier is used to apply mitigation tasks to one or more sets of findings.
public java.lang.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(java.lang.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(java.lang.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 java.lang.String getCheckName()
The audit check that generated this result.
The audit check that generated this result.
public void setCheckName(java.lang.String checkName)
The audit check that generated this result.
checkName
- The audit check that generated this result.
public AuditFinding withCheckName(java.lang.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 java.util.Date getTaskStartTime()
The time the audit started.
The time the audit started.
public void setTaskStartTime(java.util.Date taskStartTime)
The time the audit started.
taskStartTime
- The time the audit started.
public AuditFinding withTaskStartTime(java.util.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 java.util.Date getFindingTime()
The time the result (finding) was discovered.
The time the result (finding) was discovered.
public void setFindingTime(java.util.Date findingTime)
The time the result (finding) was discovered.
findingTime
- The time the result (finding) was discovered.
public AuditFinding withFindingTime(java.util.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 java.lang.String getSeverity()
The severity of the result (finding).
Constraints:
Allowed Values: CRITICAL, HIGH, MEDIUM, LOW
The severity of the result (finding).
AuditFindingSeverity
public void setSeverity(java.lang.String severity)
The severity of the result (finding).
Constraints:
Allowed Values: CRITICAL, HIGH, MEDIUM, LOW
severity
- The severity of the result (finding).
AuditFindingSeverity
public AuditFinding withSeverity(java.lang.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).
AuditFindingSeverity
public void setSeverity(AuditFindingSeverity severity)
The severity of the result (finding).
Constraints:
Allowed Values: CRITICAL, HIGH, MEDIUM, LOW
severity
- The severity of the result (finding).
AuditFindingSeverity
public 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).
AuditFindingSeverity
public NonCompliantResource getNonCompliantResource()
The resource that was found to be noncompliant with the audit check.
The resource that was found to be noncompliant with the audit check.
public void setNonCompliantResource(NonCompliantResource nonCompliantResource)
The resource that was found to be noncompliant with the audit check.
nonCompliantResource
- The resource that was found to be noncompliant with the audit check.
public AuditFinding withNonCompliantResource(NonCompliantResource nonCompliantResource)
The resource that was found to be noncompliant 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 noncompliant with the audit check.
public java.util.List<RelatedResource> getRelatedResources()
The list of related resources.
The list of related resources.
public void setRelatedResources(java.util.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(java.util.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 java.lang.String getReasonForNonCompliance()
The reason the resource was noncompliant.
The reason the resource was noncompliant.
public void setReasonForNonCompliance(java.lang.String reasonForNonCompliance)
The reason the resource was noncompliant.
reasonForNonCompliance
- The reason the resource was noncompliant.
public AuditFinding withReasonForNonCompliance(java.lang.String reasonForNonCompliance)
The reason the resource was noncompliant.
Returns a reference to this object so that method calls can be chained together.
reasonForNonCompliance
- The reason the resource was noncompliant.
public java.lang.String getReasonForNonComplianceCode()
A code that indicates the reason that the resource was noncompliant.
A code that indicates the reason that the resource was noncompliant.
public void setReasonForNonComplianceCode(java.lang.String reasonForNonComplianceCode)
A code that indicates the reason that the resource was noncompliant.
reasonForNonComplianceCode
- A code that indicates the reason that the resource was noncompliant.
public AuditFinding withReasonForNonComplianceCode(java.lang.String reasonForNonComplianceCode)
A code that indicates the reason that the resource was noncompliant.
Returns a reference to this object so that method calls can be chained together.
reasonForNonComplianceCode
- A code that indicates the reason that the resource was noncompliant.
public java.lang.Boolean isIsSuppressed()
Indicates whether the audit finding was suppressed or not during reporting.
Indicates whether the audit finding was suppressed or not during reporting.
public java.lang.Boolean getIsSuppressed()
Indicates whether the audit finding was suppressed or not during reporting.
Indicates whether the audit finding was suppressed or not during reporting.
public void setIsSuppressed(java.lang.Boolean isSuppressed)
Indicates whether the audit finding was suppressed or not during reporting.
isSuppressed
- Indicates whether the audit finding was suppressed or not during reporting.
public AuditFinding withIsSuppressed(java.lang.Boolean isSuppressed)
Indicates whether the audit finding was suppressed or not during reporting.
Returns a reference to this object so that method calls can be chained together.
isSuppressed
- Indicates whether the audit finding was suppressed or not during reporting.
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.