Class HostVulnerability.Builder
- java.lang.Object
-
- com.oracle.bmc.vulnerabilityscanning.model.HostVulnerability.Builder
-
- Enclosing class:
- HostVulnerability
public static class HostVulnerability.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostVulnerability.Builder
authentication(String authentication)
Mechanism used for scan authenticationHostVulnerability
build()
HostVulnerability.Builder
compartmentId(String compartmentId)
Compartment ID of the vulnerability.HostVulnerability.Builder
copy(HostVulnerability model)
HostVulnerability.Builder
cveDetails(CveDetails cveDetails)
HostVulnerability.Builder
cveReference(String cveReference)
Reference to MITRE CVE IDHostVulnerability.Builder
hostCount(Integer hostCount)
Number of scanned hosts in this compartment whose scan results currently report this vulnerabilityHostVulnerability.Builder
id(String id)
ID of the vulnerabilityHostVulnerability.Builder
lifecycleState(LifecycleState lifecycleState)
The current state of the resource.HostVulnerability.Builder
name(String name)
Vulnerability nameHostVulnerability.Builder
severity(ScanResultProblemSeverity severity)
Severity of the vulnerabilityHostVulnerability.Builder
state(ScanResultVulnerabilityState state)
State of the vulnerabilityHostVulnerability.Builder
timeFirstDetected(Date timeFirstDetected)
Date of scan result that first reported the vulnerabilityHostVulnerability.Builder
timeLastDetected(Date timeLastDetected)
Date of scan result that most recently reported the vulnerabilityHostVulnerability.Builder
vulnerabilityType(VulnerabilityType vulnerabilityType)
Specifies the type of Vulnerability
-
-
-
Method Detail
-
id
public HostVulnerability.Builder id(String id)
ID of the vulnerability- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public HostVulnerability.Builder compartmentId(String compartmentId)
Compartment ID of the vulnerability.Vulnerabilities with identical CVEs can exist in different compartments, based on scan target location
- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
authentication
public HostVulnerability.Builder authentication(String authentication)
Mechanism used for scan authentication- Parameters:
authentication
- the value to set- Returns:
- this builder
-
cveReference
public HostVulnerability.Builder cveReference(String cveReference)
Reference to MITRE CVE ID- Parameters:
cveReference
- the value to set- Returns:
- this builder
-
cveDetails
public HostVulnerability.Builder cveDetails(CveDetails cveDetails)
-
severity
public HostVulnerability.Builder severity(ScanResultProblemSeverity severity)
Severity of the vulnerability- Parameters:
severity
- the value to set- Returns:
- this builder
-
state
public HostVulnerability.Builder state(ScanResultVulnerabilityState state)
State of the vulnerability- Parameters:
state
- the value to set- Returns:
- this builder
-
name
public HostVulnerability.Builder name(String name)
Vulnerability name- Parameters:
name
- the value to set- Returns:
- this builder
-
timeLastDetected
public HostVulnerability.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 HostVulnerability.Builder timeFirstDetected(Date timeFirstDetected)
Date of scan result that first reported the vulnerability- Parameters:
timeFirstDetected
- the value to set- Returns:
- this builder
-
hostCount
public HostVulnerability.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 HostVulnerability.Builder vulnerabilityType(VulnerabilityType vulnerabilityType)
Specifies the type of Vulnerability- Parameters:
vulnerabilityType
- the value to set- Returns:
- this builder
-
lifecycleState
public HostVulnerability.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the resource.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
build
public HostVulnerability build()
-
copy
public HostVulnerability.Builder copy(HostVulnerability model)
-
-