Class Finding
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.Finding
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Finding.Builder,Finding>
@Generated("software.amazon.awssdk:codegen") public final class Finding extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Finding.Builder,Finding>
Details about an Amazon Inspector finding.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFinding.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringawsAccountId()The Amazon Web Services account ID associated with the finding.static Finding.Builderbuilder()CodeVulnerabilityDetailscodeVulnerabilityDetails()Details about the code vulnerability identified in a Lambda function used to filter findings.Stringdescription()The description of the finding.EpssDetailsepss()The finding's EPSS score.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ExploitabilityDetailsexploitabilityDetails()The details of an exploit available for a finding discovered in your environment.ExploitAvailableexploitAvailable()If a finding discovered in your environment has an exploit available.StringexploitAvailableAsString()If a finding discovered in your environment has an exploit available.StringfindingArn()The Amazon Resource Number (ARN) of the finding.InstantfirstObservedAt()The date and time that the finding was first observed.FixAvailablefixAvailable()Details on whether a fix is available through a version update.StringfixAvailableAsString()Details on whether a fix is available through a version update.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasResources()For responses, this returns true if the service returned a value for the Resources property.DoubleinspectorScore()The Amazon Inspector score given to the finding.InspectorScoreDetailsinspectorScoreDetails()An object that contains details of the Amazon Inspector score.InstantlastObservedAt()The date and time that the finding was last observed.NetworkReachabilityDetailsnetworkReachabilityDetails()An object that contains the details of a network reachability finding.PackageVulnerabilityDetailspackageVulnerabilityDetails()An object that contains the details of a package vulnerability finding.Remediationremediation()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()Severityseverity()The severity of the finding.StringseverityAsString()The severity of the finding.FindingStatusstatus()The status of the finding.StringstatusAsString()The status of the finding.Stringtitle()The title of the finding.Finding.BuildertoBuilder()StringtoString()Returns a string representation of this object.FindingTypetype()The type of the finding.StringtypeAsString()The type of the finding.InstantupdatedAt()The date and time the finding was last updated at.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
awsAccountId
public final String awsAccountId()
The Amazon Web Services account ID associated with the finding.
- Returns:
- The Amazon Web Services account ID associated with the finding.
-
codeVulnerabilityDetails
public final CodeVulnerabilityDetails 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
public final String description()
The description of the finding.
- Returns:
- The description of the finding.
-
epss
public final EpssDetails epss()
The finding's EPSS score.
- Returns:
- The finding's EPSS score.
-
exploitAvailable
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,
exploitAvailablewill 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:
ExploitAvailable
-
exploitAvailableAsString
public 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,
exploitAvailablewill 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:
ExploitAvailable
-
exploitabilityDetails
public final ExploitabilityDetails 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
public final String findingArn()
The Amazon Resource Number (ARN) of the finding.
- Returns:
- The Amazon Resource Number (ARN) of the finding.
-
firstObservedAt
public final Instant firstObservedAt()
The date and time that the finding was first observed.
- Returns:
- The date and time that the finding was first observed.
-
fixAvailable
public final FixAvailable fixAvailable()
Details on whether a fix is available through a version update. This value can be
YES,NO, orPARTIAL. APARTIALfix 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,
fixAvailablewill 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. APARTIALfix means that some, but not all, of the packages identified in the finding have fixes available through updated versions. - See Also:
FixAvailable
-
fixAvailableAsString
public final String fixAvailableAsString()
Details on whether a fix is available through a version update. This value can be
YES,NO, orPARTIAL. APARTIALfix 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,
fixAvailablewill 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. APARTIALfix means that some, but not all, of the packages identified in the finding have fixes available through updated versions. - See Also:
FixAvailable
-
inspectorScore
public final Double inspectorScore()
The Amazon Inspector score given to the finding.
- Returns:
- The Amazon Inspector score given to the finding.
-
inspectorScoreDetails
public final InspectorScoreDetails inspectorScoreDetails()
An object that contains details of the Amazon Inspector score.
- Returns:
- An object that contains details of the Amazon Inspector score.
-
lastObservedAt
public final Instant lastObservedAt()
The date and time that the finding was last observed.
- Returns:
- The date and time that the finding was last observed.
-
networkReachabilityDetails
public final NetworkReachabilityDetails 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
public final PackageVulnerabilityDetails 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
public final Remediation 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
public final List<Resource> resources()
Contains information on the resources involved in a finding. The
resourcevalue determines the valid values fortypein 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
resourcevalue determines the valid values fortypein your request. For more information, see Finding types in the Amazon Inspector user guide.
-
severity
public final Severity severity()
The severity of the finding.
UNTRIAGEDapplies toPACKAGE_VULNERABILITYtype 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,
severitywill returnSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- The severity of the finding.
UNTRIAGEDapplies toPACKAGE_VULNERABILITYtype 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:
Severity
-
severityAsString
public final String severityAsString()
The severity of the finding.
UNTRIAGEDapplies toPACKAGE_VULNERABILITYtype 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,
severitywill returnSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- The severity of the finding.
UNTRIAGEDapplies toPACKAGE_VULNERABILITYtype 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:
Severity
-
status
public final FindingStatus status()
The status of the finding.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnFindingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the finding.
- See Also:
FindingStatus
-
statusAsString
public final String statusAsString()
The status of the finding.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnFindingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the finding.
- See Also:
FindingStatus
-
title
public final String title()
The title of the finding.
- Returns:
- The title of the finding.
-
type
public final FindingType type()
The type of the finding. The
typevalue determines the valid values forresourcein 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,
typewill returnFindingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the finding. The
typevalue determines the valid values forresourcein your request. For more information, see Finding types in the Amazon Inspector user guide. - See Also:
FindingType
-
typeAsString
public final String typeAsString()
The type of the finding. The
typevalue determines the valid values forresourcein 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,
typewill returnFindingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the finding. The
typevalue determines the valid values forresourcein your request. For more information, see Finding types in the Amazon Inspector user guide. - See Also:
FindingType
-
updatedAt
public final Instant updatedAt()
The date and time the finding was last updated at.
- Returns:
- The date and time the finding was last updated at.
-
toBuilder
public Finding.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Finding.Builder,Finding>
-
builder
public static Finding.Builder builder()
-
serializableBuilderClass
public static Class<? extends Finding.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-