@Generated(value="software.amazon.awssdk:codegen") public final class PackageVulnerabilityDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PackageVulnerabilityDetails.Builder,PackageVulnerabilityDetails>
Information about a package vulnerability finding.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PackageVulnerabilityDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PackageVulnerabilityDetails.Builder |
builder() |
List<CvssScore> |
cvss()
An object that contains details about the CVSS score of a finding.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<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.
|
List<String> |
referenceUrls()
One or more URLs that contain details about this vulnerability type.
|
List<String> |
relatedVulnerabilities()
One or more vulnerabilities related to the one identified in this finding.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PackageVulnerabilityDetails.Builder> |
serializableBuilderClass() |
String |
source()
The source of the vulnerability information.
|
String |
sourceUrl()
A URL to the source of the vulnerability information.
|
PackageVulnerabilityDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
vendorCreatedAt()
The date and time that this vulnerability was first added to the vendor's database.
|
String |
vendorSeverity()
The severity the vendor has given to this vulnerability type.
|
Instant |
vendorUpdatedAt()
The date and time the vendor last updated this vulnerability in their database.
|
String |
vulnerabilityId()
The ID given to this vulnerability.
|
List<VulnerablePackage> |
vulnerablePackages()
The packages impacted by this vulnerability.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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<CvssScore> cvss()
An object that contains details about the CVSS score of 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 hasCvss() method.
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()
One or more URLs that contain details about this vulnerability type.
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 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()
One or more vulnerabilities related to the one identified in this 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 hasRelatedVulnerabilities() method.
public final String source()
The source of the vulnerability information.
public final String sourceUrl()
A URL to the source of the vulnerability information.
public final Instant vendorCreatedAt()
The date and time that this vulnerability was first added to the vendor's database.
public final String vendorSeverity()
The severity the vendor has given to this vulnerability type.
public final Instant vendorUpdatedAt()
The date and time the vendor last updated this vulnerability in their database.
public final String vulnerabilityId()
The ID given to this 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<VulnerablePackage> vulnerablePackages()
The packages impacted by 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 hasVulnerablePackages() method.
public PackageVulnerabilityDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PackageVulnerabilityDetails.Builder,PackageVulnerabilityDetails>public static PackageVulnerabilityDetails.Builder builder()
public static Class<? extends PackageVulnerabilityDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.