@Generated(value="software.amazon.awssdk:codegen") public final class Vulnerability extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Vulnerability.Builder,Vulnerability>
A vulnerability associated with a finding.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Vulnerability.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Vulnerability.Builder |
builder() |
List<Cvss> |
cvss()
CVSS scores from the advisory related to the vulnerability.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
VulnerabilityFixAvailable |
fixAvailable()
Specifies if all vulnerable packages in a finding have a value for
FixedInVersion and
Remediation. |
String |
fixAvailableAsString()
Specifies if all vulnerable packages in a finding have a value for
FixedInVersion and
Remediation. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCvss()
For responses, this returns true if the service returned a value for the Cvss property.
|
int |
hashCode() |
boolean |
hasReferenceUrls()
For responses, this returns true if the service returned a value for the ReferenceUrls property.
|
boolean |
hasRelatedVulnerabilities()
For responses, this returns true if the service returned a value for the RelatedVulnerabilities property.
|
boolean |
hasVulnerablePackages()
For responses, this returns true if the service returned a value for the VulnerablePackages property.
|
String |
id()
The identifier of the vulnerability.
|
List<String> |
referenceUrls()
A list of URLs that provide additional information about the vulnerability.
|
List<String> |
relatedVulnerabilities()
List of vulnerabilities that are related to this vulnerability.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Vulnerability.Builder> |
serializableBuilderClass() |
Vulnerability.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VulnerabilityVendor |
vendor()
Information about the vendor that generates the vulnerability report.
|
List<SoftwarePackage> |
vulnerablePackages()
List of software packages that have the vulnerability.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The identifier of the vulnerability.
public final boolean hasVulnerablePackages()
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<SoftwarePackage> vulnerablePackages()
List of software packages that have the 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 hasVulnerablePackages() method.
public final boolean hasCvss()
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<Cvss> cvss()
CVSS scores from the advisory related to the 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 hasCvss() method.
public final boolean hasRelatedVulnerabilities()
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> relatedVulnerabilities()
List of vulnerabilities that are related to this 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 hasRelatedVulnerabilities() method.
public final VulnerabilityVendor vendor()
Information about the vendor that generates the vulnerability report.
public final boolean hasReferenceUrls()
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> referenceUrls()
A list of URLs that provide additional information about the 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 hasReferenceUrls() method.
public final VulnerabilityFixAvailable fixAvailable()
Specifies if all vulnerable packages in a finding have a value for FixedInVersion and
Remediation. This field is evaluated for each vulnerability Id based on the number of
vulnerable packages that have a value for both FixedInVersion and Remediation. Valid
values are as follows:
YES if all vulnerable packages have a value for both FixedInVersion and
Remediation
NO if no vulnerable packages have a value for FixedInVersion and
Remediation
PARTIAL otherwise
If the service returns an enum value that is not available in the current SDK version, fixAvailable will
return VulnerabilityFixAvailable.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from fixAvailableAsString().
FixedInVersion and
Remediation. This field is evaluated for each vulnerability Id based on the
number of vulnerable packages that have a value for both FixedInVersion and
Remediation. Valid values are as follows:
YES if all vulnerable packages have a value for both FixedInVersion and
Remediation
NO if no vulnerable packages have a value for FixedInVersion and
Remediation
PARTIAL otherwise
VulnerabilityFixAvailablepublic final String fixAvailableAsString()
Specifies if all vulnerable packages in a finding have a value for FixedInVersion and
Remediation. This field is evaluated for each vulnerability Id based on the number of
vulnerable packages that have a value for both FixedInVersion and Remediation. Valid
values are as follows:
YES if all vulnerable packages have a value for both FixedInVersion and
Remediation
NO if no vulnerable packages have a value for FixedInVersion and
Remediation
PARTIAL otherwise
If the service returns an enum value that is not available in the current SDK version, fixAvailable will
return VulnerabilityFixAvailable.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from fixAvailableAsString().
FixedInVersion and
Remediation. This field is evaluated for each vulnerability Id based on the
number of vulnerable packages that have a value for both FixedInVersion and
Remediation. Valid values are as follows:
YES if all vulnerable packages have a value for both FixedInVersion and
Remediation
NO if no vulnerable packages have a value for FixedInVersion and
Remediation
PARTIAL otherwise
VulnerabilityFixAvailablepublic Vulnerability.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Vulnerability.Builder,Vulnerability>public static Vulnerability.Builder builder()
public static Class<? extends Vulnerability.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.