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 |
fixAvailable(String fixAvailable)
Specifies if all vulnerable packages in a finding have a value for
FixedInVersion and
Remediation. |
Vulnerability.Builder |
fixAvailable(VulnerabilityFixAvailable fixAvailable)
Specifies if all vulnerable packages in a finding have a value for
FixedInVersion and
Remediation. |
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 method that creates an instance of theSoftwarePackage.Builder avoiding the need to create
one manually via SoftwarePackage.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #vulnerablePackages(List.
vulnerablePackages - a consumer that will call methods on
SoftwarePackage.Builder#vulnerablePackages(java.util.Collection) 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 method that creates an instance of theCvss.Builder avoiding the need to create one
manually via Cvss.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #cvss(List.
cvss - a consumer that will call methods on
Cvss.Builder#cvss(java.util.Collection) 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 method 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.Vulnerability.Builder fixAvailable(String 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
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
VulnerabilityFixAvailable,
VulnerabilityFixAvailableVulnerability.Builder fixAvailable(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
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
VulnerabilityFixAvailable,
VulnerabilityFixAvailableCopyright © 2023. All rights reserved.