public static class VulnerabilitySummary.Builder extends Object
Constructor and Description |
---|
Builder() |
public VulnerabilitySummary.Builder id(String id)
ID of the vulnerability
id
- the value to setpublic VulnerabilitySummary.Builder compartmentId(String compartmentId)
Compartment ID of the vulnerability. Vulnerabilities with identical CVEs can exist in different compartments.
compartmentId
- the value to setpublic VulnerabilitySummary.Builder vulnerabilityReference(String vulnerabilityReference)
Reference to the vulnerability type’s unique identifier. For CVE, this is the MITRE CVE ID
vulnerabilityReference
- the value to setpublic VulnerabilitySummary.Builder severity(ScanResultProblemSeverity severity)
Severity of the vulnerability
severity
- the value to setpublic VulnerabilitySummary.Builder state(ScanResultVulnerabilityState state)
State of the vulnerability
state
- the value to setpublic VulnerabilitySummary.Builder cveDescription(String cveDescription)
The description of CVE vulnerability
cveDescription
- the value to setpublic VulnerabilitySummary.Builder name(String name)
Vulnerability name
name
- the value to setpublic VulnerabilitySummary.Builder timeLastDetected(Date timeLastDetected)
Date of scan result that most recently reported the vulnerability
timeLastDetected
- the value to setpublic VulnerabilitySummary.Builder timeFirstDetected(Date timeFirstDetected)
Date of scan result that first reported the vulnerability
timeFirstDetected
- the value to setpublic VulnerabilitySummary.Builder impactedResourcesCount(ImpactedResourcesCount impactedResourcesCount)
public VulnerabilitySummary.Builder vulnerabilityType(VulnerabilityType vulnerabilityType)
Specifies the type of Vulnerability
vulnerabilityType
- the value to setpublic VulnerabilitySummary.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the resource.
lifecycleState
- the value to setpublic VulnerabilitySummary build()
public VulnerabilitySummary.Builder copy(VulnerabilitySummary model)
Copyright © 2016–2024. All rights reserved.