@Generated(value="software.amazon.awssdk:codegen") public final class Finding extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Finding.Builder,Finding>
Information about a finding that was detected in your code.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Finding.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Finding.Builder |
builder() |
Instant |
createdAt()
The time when the finding was created.
|
String |
description()
A description of the finding.
|
String |
detectorId()
The identifier for the detector that detected the finding in your code.
|
String |
detectorName()
The name of the detector that identified the security vulnerability in your code.
|
List<String> |
detectorTags()
One or more tags or categorizations that are associated with a detector.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
generatorId()
The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDetectorTags()
For responses, this returns true if the service returned a value for the DetectorTags property.
|
int |
hashCode() |
String |
id()
The identifier for a finding.
|
Remediation |
remediation()
An object that contains the details about how to remediate a finding.
|
Resource |
resource()
The resource where Amazon CodeGuru Security detected a finding.
|
String |
ruleId()
The identifier for the rule that generated the finding.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Finding.Builder> |
serializableBuilderClass() |
Severity |
severity()
The severity of the finding.
|
String |
severityAsString()
The severity of the finding.
|
Status |
status()
The status of the finding.
|
String |
statusAsString()
The status of the finding.
|
String |
title()
The title of the finding.
|
Finding.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
type()
The type of finding.
|
Instant |
updatedAt()
The time when the finding was last updated.
|
Vulnerability |
vulnerability()
An object that describes the detected security vulnerability.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant createdAt()
The time when the finding was created.
public final String description()
A description of the finding.
public final String detectorId()
The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.
public final String detectorName()
The name of the detector that identified the security vulnerability in your code.
public final boolean hasDetectorTags()
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<String> detectorTags()
One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
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 hasDetectorTags() method.
public final String generatorId()
The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.
public final String id()
The identifier for a finding.
public final Remediation remediation()
An object that contains the details about how to remediate a finding.
public final Resource resource()
The resource where Amazon CodeGuru Security detected a finding.
public final String ruleId()
The identifier for the rule that generated the finding.
public final Severity severity()
The severity of the finding.
If the service returns an enum value that is not available in the current SDK version, severity will
return Severity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
severityAsString().
Severitypublic final String severityAsString()
The severity of the finding.
If the service returns an enum value that is not available in the current SDK version, severity will
return Severity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
severityAsString().
Severitypublic final Status status()
The status of the finding. A finding status can be open or closed.
If the service returns an enum value that is not available in the current SDK version, status will
return Status.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
Statuspublic final String statusAsString()
The status of the finding. A finding status can be open or closed.
If the service returns an enum value that is not available in the current SDK version, status will
return Status.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
Statuspublic final String title()
The title of the finding.
public final String type()
The type of finding.
public final Instant updatedAt()
The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.
public final Vulnerability vulnerability()
An object that describes the detected security vulnerability.
public Finding.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Finding.Builder,Finding>public static Finding.Builder builder()
public static Class<? extends Finding.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.