public static class ContainerScanResultProblem.Builder extends Object
Constructor and Description |
---|
Builder() |
public ContainerScanResultProblem.Builder name(String name)
Name of the problem
name
- the value to setpublic ContainerScanResultProblem.Builder description(String description)
Problem description
description
- the value to setpublic ContainerScanResultProblem.Builder severity(ScanResultProblemSeverity severity)
Problem severity
severity
- the value to setpublic ContainerScanResultProblem.Builder state(ScanResultVulnerabilityState state)
State of the vulnerability
state
- the value to setpublic ContainerScanResultProblem.Builder cveReference(String cveReference)
Reference to problem MITRE CVE ID
cveReference
- the value to setpublic ContainerScanResultProblem.Builder timeFirstDetected(Date timeFirstDetected)
Date of scan result that first reported the vulnerability
timeFirstDetected
- the value to setpublic ContainerScanResultProblem.Builder timeLastDetected(Date timeLastDetected)
Date of scan result that most recently reported the vulnerability
timeLastDetected
- the value to setpublic ContainerScanResultProblem.Builder vulnerablePackages(List<Package> vulnerablePackages)
Packages in which the problem is detected
vulnerablePackages
- the value to setpublic ContainerScanResultProblem build()
public ContainerScanResultProblem.Builder copy(ContainerScanResultProblem model)
Copyright © 2016–2024. All rights reserved.