@Generated(value="software.amazon.awssdk:codegen") public final class Finding extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Finding.Builder,Finding>
Details about an Amazon Inspector finding.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Finding.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
awsAccountId()
The Amazon Web Services account ID associated with the finding.
|
static Finding.Builder |
builder() |
CodeVulnerabilityDetails |
codeVulnerabilityDetails()
Details about the code vulnerability identified in a Lambda function used to filter findings.
|
String |
description()
The description of the finding.
|
EpssDetails |
epss()
The finding's EPSS score.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ExploitabilityDetails |
exploitabilityDetails()
The details of an exploit available for a finding discovered in your environment.
|
ExploitAvailable |
exploitAvailable()
If a finding discovered in your environment has an exploit available.
|
String |
exploitAvailableAsString()
If a finding discovered in your environment has an exploit available.
|
String |
findingArn()
The Amazon Resource Number (ARN) of the finding.
|
Instant |
firstObservedAt()
The date and time that the finding was first observed.
|
FixAvailable |
fixAvailable()
Details on whether a fix is available through a version update.
|
String |
fixAvailableAsString()
Details on whether a fix is available through a version update.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasResources()
For responses, this returns true if the service returned a value for the Resources property.
|
Double |
inspectorScore()
The Amazon Inspector score given to the finding.
|
InspectorScoreDetails |
inspectorScoreDetails()
An object that contains details of the Amazon Inspector score.
|
Instant |
lastObservedAt()
The date and time that the finding was last observed.
|
NetworkReachabilityDetails |
networkReachabilityDetails()
An object that contains the details of a network reachability finding.
|
PackageVulnerabilityDetails |
packageVulnerabilityDetails()
An object that contains the details of a package vulnerability finding.
|
Remediation |
remediation()
An object that contains the details about how to remediate a finding.
|
List<Resource> |
resources()
Contains information on the resources involved in a finding.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Finding.Builder> |
serializableBuilderClass() |
Severity |
severity()
The severity of the finding.
|
String |
severityAsString()
The severity of the finding.
|
FindingStatus |
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.
|
FindingType |
type()
The type of the finding.
|
String |
typeAsString()
The type of the finding.
|
Instant |
updatedAt()
The date and time the finding was last updated at.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String awsAccountId()
The Amazon Web Services account ID associated with the finding.
public final CodeVulnerabilityDetails codeVulnerabilityDetails()
Details about the code vulnerability identified in a Lambda function used to filter findings.
public final String description()
The description of the finding.
public final EpssDetails epss()
The finding's EPSS score.
public final ExploitAvailable exploitAvailable()
If a finding discovered in your environment has an exploit available.
If the service returns an enum value that is not available in the current SDK version, exploitAvailable
will return ExploitAvailable.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from exploitAvailableAsString().
ExploitAvailablepublic final String exploitAvailableAsString()
If a finding discovered in your environment has an exploit available.
If the service returns an enum value that is not available in the current SDK version, exploitAvailable
will return ExploitAvailable.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from exploitAvailableAsString().
ExploitAvailablepublic final ExploitabilityDetails exploitabilityDetails()
The details of an exploit available for a finding discovered in your environment.
public final String findingArn()
The Amazon Resource Number (ARN) of the finding.
public final Instant firstObservedAt()
The date and time that the finding was first observed.
public final FixAvailable fixAvailable()
Details on whether a fix is available through a version update. This value can be YES,
NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the
packages identified in the finding have fixes available through updated versions.
If the service returns an enum value that is not available in the current SDK version, fixAvailable will
return FixAvailable.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
fixAvailableAsString().
YES,
NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the
packages identified in the finding have fixes available through updated versions.FixAvailablepublic final String fixAvailableAsString()
Details on whether a fix is available through a version update. This value can be YES,
NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the
packages identified in the finding have fixes available through updated versions.
If the service returns an enum value that is not available in the current SDK version, fixAvailable will
return FixAvailable.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
fixAvailableAsString().
YES,
NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the
packages identified in the finding have fixes available through updated versions.FixAvailablepublic final Double inspectorScore()
The Amazon Inspector score given to the finding.
public final InspectorScoreDetails inspectorScoreDetails()
An object that contains details of the Amazon Inspector score.
public final Instant lastObservedAt()
The date and time that the finding was last observed.
public final NetworkReachabilityDetails networkReachabilityDetails()
An object that contains the details of a network reachability finding.
public final PackageVulnerabilityDetails packageVulnerabilityDetails()
An object that contains the details of a package vulnerability finding.
public final Remediation remediation()
An object that contains the details about how to remediate a finding.
public final boolean hasResources()
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<Resource> resources()
Contains information on the resources involved in a finding.
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 hasResources() method.
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 FindingStatus status()
The status of the finding.
If the service returns an enum value that is not available in the current SDK version, status will
return FindingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
FindingStatuspublic final String statusAsString()
The status of the finding.
If the service returns an enum value that is not available in the current SDK version, status will
return FindingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
FindingStatuspublic final String title()
The title of the finding.
public final FindingType type()
The type of the finding.
If the service returns an enum value that is not available in the current SDK version, type will return
FindingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
FindingTypepublic final String typeAsString()
The type of the finding.
If the service returns an enum value that is not available in the current SDK version, type will return
FindingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
FindingTypepublic final Instant updatedAt()
The date and time the finding was last updated at.
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.