public static interface Vulnerability.Builder extends SdkPojo, CopyableBuilder<Vulnerability.Builder,Vulnerability>
| Modifier and Type | Method and Description |
|---|---|
Vulnerability.Builder |
cvss(Collection<Cvss> cvss)
CVSS scores from the advisory related to the vulnerability.
|
Vulnerability.Builder |
cvss(Consumer<Cvss.Builder>... cvss)
CVSS scores from the advisory related to the vulnerability.
|
Vulnerability.Builder |
cvss(Cvss... cvss)
CVSS scores from the advisory related to the vulnerability.
|
Vulnerability.Builder |
id(String id)
The identifier of the vulnerability.
|
Vulnerability.Builder |
referenceUrls(Collection<String> referenceUrls)
A list of URLs that provide additional information about the vulnerability.
|
Vulnerability.Builder |
referenceUrls(String... referenceUrls)
A list of URLs that provide additional information about the vulnerability.
|
Vulnerability.Builder |
relatedVulnerabilities(Collection<String> relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
|
Vulnerability.Builder |
relatedVulnerabilities(String... relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
|
default Vulnerability.Builder |
vendor(Consumer<VulnerabilityVendor.Builder> vendor)
Information about the vendor that generates the vulnerability report.
|
Vulnerability.Builder |
vendor(VulnerabilityVendor vendor)
Information about the vendor that generates the vulnerability report.
|
Vulnerability.Builder |
vulnerablePackages(Collection<SoftwarePackage> vulnerablePackages)
List of software packages that have the vulnerability.
|
Vulnerability.Builder |
vulnerablePackages(Consumer<SoftwarePackage.Builder>... vulnerablePackages)
List of software packages that have the vulnerability.
|
Vulnerability.Builder |
vulnerablePackages(SoftwarePackage... vulnerablePackages)
List of software packages that have the vulnerability.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildVulnerability.Builder id(String id)
The identifier of the vulnerability.
id - The identifier of the vulnerability.Vulnerability.Builder vulnerablePackages(Collection<SoftwarePackage> vulnerablePackages)
List of software packages that have the vulnerability.
vulnerablePackages - List of software packages that have the vulnerability.Vulnerability.Builder vulnerablePackages(SoftwarePackage... vulnerablePackages)
List of software packages that have the vulnerability.
vulnerablePackages - List of software packages that have the vulnerability.Vulnerability.Builder vulnerablePackages(Consumer<SoftwarePackage.Builder>... vulnerablePackages)
List of software packages that have the vulnerability.
This is a convenience that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #vulnerablePackages(List) .vulnerablePackages - a consumer that will call methods on List.Builder #vulnerablePackages(List) Vulnerability.Builder cvss(Collection<Cvss> cvss)
CVSS scores from the advisory related to the vulnerability.
cvss - CVSS scores from the advisory related to the vulnerability.Vulnerability.Builder cvss(Cvss... cvss)
CVSS scores from the advisory related to the vulnerability.
cvss - CVSS scores from the advisory related to the vulnerability.Vulnerability.Builder cvss(Consumer<Cvss.Builder>... cvss)
CVSS scores from the advisory related to the vulnerability.
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #cvss(List) .cvss - a consumer that will call methods on List.Builder #cvss(List) Vulnerability.Builder relatedVulnerabilities(Collection<String> relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
relatedVulnerabilities - List of vulnerabilities that are related to this vulnerability.Vulnerability.Builder relatedVulnerabilities(String... relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
relatedVulnerabilities - List of vulnerabilities that are related to this vulnerability.Vulnerability.Builder vendor(VulnerabilityVendor vendor)
Information about the vendor that generates the vulnerability report.
vendor - Information about the vendor that generates the vulnerability report.default Vulnerability.Builder vendor(Consumer<VulnerabilityVendor.Builder> vendor)
Information about the vendor that generates the vulnerability report.
This is a convenience that creates an instance of theVulnerabilityVendor.Builder avoiding the need
to create one manually via VulnerabilityVendor.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to vendor(VulnerabilityVendor).vendor - a consumer that will call methods on VulnerabilityVendor.Buildervendor(VulnerabilityVendor)Vulnerability.Builder referenceUrls(Collection<String> referenceUrls)
A list of URLs that provide additional information about the vulnerability.
referenceUrls - A list of URLs that provide additional information about the vulnerability.Vulnerability.Builder referenceUrls(String... referenceUrls)
A list of URLs that provide additional information about the vulnerability.
referenceUrls - A list of URLs that provide additional information about the vulnerability.Copyright © 2021. All rights reserved.