Class Finding
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Finding.Builder,
Finding>
Details about an Amazon Inspector finding.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
The Amazon Web Services account ID associated with the finding.static Finding.Builder
builder()
final CodeVulnerabilityDetails
Details about the code vulnerability identified in a Lambda function used to filter findings.final String
The description of the finding.final EpssDetails
epss()
The finding's EPSS score.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ExploitabilityDetails
The details of an exploit available for a finding discovered in your environment.final ExploitAvailable
If a finding discovered in your environment has an exploit available.final String
If a finding discovered in your environment has an exploit available.final String
The Amazon Resource Number (ARN) of the finding.final Instant
The date and time that the finding was first observed.final FixAvailable
Details on whether a fix is available through a version update.final String
Details on whether a fix is available through a version update.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the Resources property.final Double
The Amazon Inspector score given to the finding.final InspectorScoreDetails
An object that contains details of the Amazon Inspector score.final Instant
The date and time the finding was last observed.An object that contains the details of a network reachability finding.An object that contains the details of a package vulnerability finding.final Remediation
An object that contains the details about how to remediate a finding.Contains information on the resources involved in a finding.static Class
<? extends Finding.Builder> final Severity
severity()
The severity of the finding.final String
The severity of the finding.final FindingStatus
status()
The status of the finding.final String
The status of the finding.final String
title()
The title of the finding.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final FindingType
type()
The type of the finding.final String
The type of the finding.final Instant
The date and time the finding was last updated at.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
awsAccountId
The Amazon Web Services account ID associated with the finding.
- Returns:
- The Amazon Web Services account ID associated with the finding.
-
codeVulnerabilityDetails
Details about the code vulnerability identified in a Lambda function used to filter findings.
- Returns:
- Details about the code vulnerability identified in a Lambda function used to filter findings.
-
description
The description of the finding.
- Returns:
- The description of the finding.
-
epss
The finding's EPSS score.
- Returns:
- The finding's EPSS score.
-
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 returnExploitAvailable.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromexploitAvailableAsString()
.- Returns:
- If a finding discovered in your environment has an exploit available.
- See Also:
-
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 returnExploitAvailable.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromexploitAvailableAsString()
.- Returns:
- If a finding discovered in your environment has an exploit available.
- See Also:
-
exploitabilityDetails
The details of an exploit available for a finding discovered in your environment.
- Returns:
- The details of an exploit available for a finding discovered in your environment.
-
findingArn
The Amazon Resource Number (ARN) of the finding.
- Returns:
- The Amazon Resource Number (ARN) of the finding.
-
firstObservedAt
The date and time that the finding was first observed.
- Returns:
- The date and time that the finding was first observed.
-
fixAvailable
Details on whether a fix is available through a version update. This value can be
YES
,NO
, orPARTIAL
. APARTIAL
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 returnFixAvailable.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromfixAvailableAsString()
.- Returns:
- Details on whether a fix is available through a version update. This value can be
YES
,NO
, orPARTIAL
. APARTIAL
fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions. - See Also:
-
fixAvailableAsString
Details on whether a fix is available through a version update. This value can be
YES
,NO
, orPARTIAL
. APARTIAL
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 returnFixAvailable.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromfixAvailableAsString()
.- Returns:
- Details on whether a fix is available through a version update. This value can be
YES
,NO
, orPARTIAL
. APARTIAL
fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions. - See Also:
-
inspectorScore
The Amazon Inspector score given to the finding.
- Returns:
- The Amazon Inspector score given to the finding.
-
inspectorScoreDetails
An object that contains details of the Amazon Inspector score.
- Returns:
- An object that contains details of the Amazon Inspector score.
-
lastObservedAt
The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding is updated.
- Returns:
- The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding is updated.
-
networkReachabilityDetails
An object that contains the details of a network reachability finding.
- Returns:
- An object that contains the details of a network reachability finding.
-
packageVulnerabilityDetails
An object that contains the details of a package vulnerability finding.
- Returns:
- An object that contains the details of a package vulnerability finding.
-
remediation
An object that contains the details about how to remediate a finding.
- Returns:
- An object that contains the details about how to remediate a finding.
-
hasResources
public final boolean hasResources()For responses, this returns true if the service returned a value for the Resources property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
resources
Contains information on the resources involved in a finding. The
resource
value determines the valid values fortype
in your request. For more information, see Finding types in the Amazon Inspector user guide.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.- Returns:
- Contains information on the resources involved in a finding. The
resource
value determines the valid values fortype
in your request. For more information, see Finding types in the Amazon Inspector user guide.
-
severity
The severity of the finding.
UNTRIAGED
applies toPACKAGE_VULNERABILITY
type findings that the vendor has not assigned a severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide.If the service returns an enum value that is not available in the current SDK version,
severity
will returnSeverity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromseverityAsString()
.- Returns:
- The severity of the finding.
UNTRIAGED
applies toPACKAGE_VULNERABILITY
type findings that the vendor has not assigned a severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide. - See Also:
-
severityAsString
The severity of the finding.
UNTRIAGED
applies toPACKAGE_VULNERABILITY
type findings that the vendor has not assigned a severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide.If the service returns an enum value that is not available in the current SDK version,
severity
will returnSeverity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromseverityAsString()
.- Returns:
- The severity of the finding.
UNTRIAGED
applies toPACKAGE_VULNERABILITY
type findings that the vendor has not assigned a severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide. - See Also:
-
status
The status of the finding.
If the service returns an enum value that is not available in the current SDK version,
status
will returnFindingStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the finding.
- See Also:
-
statusAsString
The status of the finding.
If the service returns an enum value that is not available in the current SDK version,
status
will returnFindingStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of the finding.
- See Also:
-
title
The title of the finding.
- Returns:
- The title of the finding.
-
type
The type of the finding. The
type
value determines the valid values forresource
in your request. For more information, see Finding types in the Amazon Inspector user guide.If the service returns an enum value that is not available in the current SDK version,
type
will returnFindingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of the finding. The
type
value determines the valid values forresource
in your request. For more information, see Finding types in the Amazon Inspector user guide. - See Also:
-
typeAsString
The type of the finding. The
type
value determines the valid values forresource
in your request. For more information, see Finding types in the Amazon Inspector user guide.If the service returns an enum value that is not available in the current SDK version,
type
will returnFindingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of the finding. The
type
value determines the valid values forresource
in your request. For more information, see Finding types in the Amazon Inspector user guide. - See Also:
-
updatedAt
The date and time the finding was last updated at.
- Returns:
- The date and time the finding was last updated at.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Finding.Builder,
Finding> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-