Class HostVulnerabilitySummary.Builder
- java.lang.Object
-
- com.oracle.bmc.vulnerabilityscanning.model.HostVulnerabilitySummary.Builder
-
- Enclosing class:
- HostVulnerabilitySummary
public static class HostVulnerabilitySummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public HostVulnerabilitySummary.Builder id(String id)
ID of the vulnerability- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public HostVulnerabilitySummary.Builder compartmentId(String compartmentId)
Compartment ID of the vulnerability.Vulnerabilities with identical CVEs can exist in different compartments.
- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
cveReference
public HostVulnerabilitySummary.Builder cveReference(String cveReference)
Reference to MITRE CVE ID- Parameters:
cveReference
- the value to set- Returns:
- this builder
-
severity
public HostVulnerabilitySummary.Builder severity(ScanResultProblemSeverity severity)
Severity of the vulnerability- Parameters:
severity
- the value to set- Returns:
- this builder
-
state
public HostVulnerabilitySummary.Builder state(ScanResultVulnerabilityState state)
State of the vulnerability- Parameters:
state
- the value to set- Returns:
- this builder
-
name
public HostVulnerabilitySummary.Builder name(String name)
Vulnerability name- Parameters:
name
- the value to set- Returns:
- this builder
-
timeLastDetected
public HostVulnerabilitySummary.Builder timeLastDetected(Date timeLastDetected)
Date of scan result that most recently reported the vulnerability- Parameters:
timeLastDetected
- the value to set- Returns:
- this builder
-
timeFirstDetected
public HostVulnerabilitySummary.Builder timeFirstDetected(Date timeFirstDetected)
Date of scan result that first reported the vulnerability- Parameters:
timeFirstDetected
- the value to set- Returns:
- this builder
-
hostCount
public HostVulnerabilitySummary.Builder hostCount(Integer hostCount)
Number of scanned hosts in this compartment whose scan results currently report this vulnerability- Parameters:
hostCount
- the value to set- Returns:
- this builder
-
vulnerabilityType
public HostVulnerabilitySummary.Builder vulnerabilityType(VulnerabilityType vulnerabilityType)
Specifies the type of Vulnerability- Parameters:
vulnerabilityType
- the value to set- Returns:
- this builder
-
lifecycleState
public HostVulnerabilitySummary.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the resource.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
build
public HostVulnerabilitySummary build()
-
copy
public HostVulnerabilitySummary.Builder copy(HostVulnerabilitySummary model)
-
-