@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()
For responses, this returns true if the service returned a value for the RelatedResources property.
|
Boolean |
isSuppressed()
Indicates whether the audit finding was suppressed or not during reporting.
|
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 final 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 final String taskId()
The ID of the audit that generated this result (finding).
public final String checkName()
The audit check that generated this result.
public final Instant taskStartTime()
The time the audit started.
public final Instant findingTime()
The time the result (finding) was discovered.
public final 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 final 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 final NonCompliantResource nonCompliantResource()
The resource that was found to be noncompliant with the audit check.
public final boolean hasRelatedResources()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<RelatedResource> relatedResources()
The list of related resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRelatedResources()
method.
public final String reasonForNonCompliance()
The reason the resource was noncompliant.
public final String reasonForNonComplianceCode()
A code that indicates the reason that the resource was noncompliant.
public final Boolean isSuppressed()
Indicates whether the audit finding was suppressed or not during reporting.
public AuditFinding.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AuditFinding.Builder,AuditFinding>
public static AuditFinding.Builder builder()
public static Class<? extends AuditFinding.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.