@Generated(value="software.amazon.awssdk:codegen") public final class AuditFinding extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AuditFinding.Builder,AuditFinding>
The findings (results) of the audit.
Modifier and Type | Class and Description |
---|---|
static interface |
AuditFinding.Builder |
Modifier and Type | Method and Description |
---|---|
static AuditFinding.Builder |
builder() |
String |
checkName()
The audit check that generated this result.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
findingId()
A unique identifier for this set of audit findings.
|
Instant |
findingTime()
The time the result (finding) was discovered.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRelatedResources()
Returns true if the RelatedResources property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
NonCompliantResource |
nonCompliantResource()
The resource that was found to be noncompliant with the audit check.
|
String |
reasonForNonCompliance()
The reason the resource was noncompliant.
|
String |
reasonForNonComplianceCode()
A code that indicates the reason that the resource was noncompliant.
|
List<RelatedResource> |
relatedResources()
The list of related resources.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AuditFinding.Builder> |
serializableBuilderClass() |
AuditFindingSeverity |
severity()
The severity of the result (finding).
|
String |
severityAsString()
The severity of the result (finding).
|
String |
taskId()
The ID of the audit that generated this result (finding).
|
Instant |
taskStartTime()
The time the audit started.
|
AuditFinding.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public 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.
public String taskId()
The ID of the audit that generated this result (finding).
public String checkName()
The audit check that generated this result.
public Instant taskStartTime()
The time the audit started.
public Instant findingTime()
The time the result (finding) was discovered.
public AuditFindingSeverity severity()
The severity of the result (finding).
If the service returns an enum value that is not available in the current SDK version, severity
will
return AuditFindingSeverity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from severityAsString()
.
AuditFindingSeverity
public String severityAsString()
The severity of the result (finding).
If the service returns an enum value that is not available in the current SDK version, severity
will
return AuditFindingSeverity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from severityAsString()
.
AuditFindingSeverity
public NonCompliantResource nonCompliantResource()
The resource that was found to be noncompliant with the audit check.
public boolean hasRelatedResources()
public List<RelatedResource> relatedResources()
The list of related resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRelatedResources()
to see if a value was sent in this field.
public String reasonForNonCompliance()
The reason the resource was noncompliant.
public String reasonForNonComplianceCode()
A code that indicates the reason that the resource was noncompliant.
public AuditFinding.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AuditFinding.Builder,AuditFinding>
public static AuditFinding.Builder builder()
public static Class<? extends AuditFinding.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.