Class FindingVulnerability
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FindingVulnerability.Builder,FindingVulnerability>
One vulnerability reported by a finding. A customer document may report several; each carries its own identity, locations and remediation.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionFurther CWEs the producer attributed to this same vulnerability.final List<AffectedPackage> Returns the value of the AffectedPackages property for this object.static FindingVulnerability.Builderbuilder()final Stringcode()The vulnerable fragment, when the producer supplied one.final StringcveId()Returns the value of the CveId property for this object.final DoubleThe CVSS base score forcveId, when the producer supplies one, from 0.0 to 10.0.final StringThe producer's human-readable caption forcweId.final StringcweId()Primary CWE for this vulnerability, e.g.final StringReturns the value of the Description property for this object.final Stringdetails()The producer's extended analysis for this vulnerability.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe producer's description of how completely a fix is available.final IntegerThe producer's enum value behindfixCoverage.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the AdditionalCweIds property.final booleanFor responses, this returns true if the service returned a value for the AffectedPackages property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Locations property.final booleanFor responses, this returns true if the service returned a value for the RemediationReferences property.final List<FindingLocation> Every location this vulnerability was reported at.final StringReturns the value of the Remediation property for this object.Returns the value of the RemediationReferences property for this object.static Class<? extends FindingVulnerability.Builder> final Stringtitle()Returns the value of the Title property for this object.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
title
Returns the value of the Title property for this object.- Returns:
- The value of the Title property for this object.
-
description
Returns the value of the Description property for this object.- Returns:
- The value of the Description property for this object.
-
cweId
Primary CWE for this vulnerability, e.g. "CWE-89".
- Returns:
- Primary CWE for this vulnerability, e.g. "CWE-89".
-
cweCaption
The producer's human-readable caption for
cweId.- Returns:
- The producer's human-readable caption for
cweId.
-
hasAdditionalCweIds
public final boolean hasAdditionalCweIds()For responses, this returns true if the service returned a value for the AdditionalCweIds 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. -
additionalCweIds
Further CWEs the producer attributed to this same vulnerability.
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
hasAdditionalCweIds()method.- Returns:
- Further CWEs the producer attributed to this same vulnerability.
-
cveId
Returns the value of the CveId property for this object.- Returns:
- The value of the CveId property for this object.
-
cvssBaseScore
The CVSS base score for
cveId, when the producer supplies one, from 0.0 to 10.0.- Returns:
- The CVSS base score for
cveId, when the producer supplies one, from 0.0 to 10.0.
-
fixCoverage
The producer's description of how completely a fix is available.
- Returns:
- The producer's description of how completely a fix is available.
-
fixCoverageId
The producer's enum value behind
fixCoverage.- Returns:
- The producer's enum value behind
fixCoverage.
-
hasLocations
public final boolean hasLocations()For responses, this returns true if the service returned a value for the Locations 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. -
locations
Every location this vulnerability was reported at.
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
hasLocations()method.- Returns:
- Every location this vulnerability was reported at.
-
remediation
Returns the value of the Remediation property for this object.- Returns:
- The value of the Remediation property for this object.
-
hasRemediationReferences
public final boolean hasRemediationReferences()For responses, this returns true if the service returned a value for the RemediationReferences 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. -
remediationReferences
Returns the value of the RemediationReferences property for this object.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
hasRemediationReferences()method.- Returns:
- The value of the RemediationReferences property for this object.
-
code
The vulnerable fragment, when the producer supplied one.
- Returns:
- The vulnerable fragment, when the producer supplied one.
-
details
The producer's extended analysis for this vulnerability.
- Returns:
- The producer's extended analysis for this vulnerability.
-
hasAffectedPackages
public final boolean hasAffectedPackages()For responses, this returns true if the service returned a value for the AffectedPackages 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. -
affectedPackages
Returns the value of the AffectedPackages property for this object.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
hasAffectedPackages()method.- Returns:
- The value of the AffectedPackages property for this object.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<FindingVulnerability.Builder,FindingVulnerability> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-