public static class Vulnerability.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Vulnerability.Builder |
authentication(String authentication)
Mechanism used for scan authentication
|
Vulnerability |
build() |
Vulnerability.Builder |
compartmentId(String compartmentId)
Compartment ID of the vulnerability.
|
Vulnerability.Builder |
copy(Vulnerability model) |
Vulnerability.Builder |
cveDescription(String cveDescription)
The description of CVE vulnerability
|
Vulnerability.Builder |
cveDetails(CveDetails cveDetails) |
Vulnerability.Builder |
id(String id)
ID of the vulnerability
|
Vulnerability.Builder |
impactedResourcesCount(ImpactedResourcesCount impactedResourcesCount) |
Vulnerability.Builder |
lifecycleState(LifecycleState lifecycleState)
The current state of the resource.
|
Vulnerability.Builder |
name(String name)
Vulnerability name
|
Vulnerability.Builder |
severity(ScanResultProblemSeverity severity)
Severity of the vulnerability
|
Vulnerability.Builder |
state(ScanResultVulnerabilityState state)
State of the vulnerability
|
Vulnerability.Builder |
timeFirstDetected(Date timeFirstDetected)
Date of scan result that first reported the vulnerability
|
Vulnerability.Builder |
timeLastDetected(Date timeLastDetected)
Date of scan result that most recently reported the vulnerability
|
Vulnerability.Builder |
vulnerabilityReference(String vulnerabilityReference)
Reference to the vulnerability type’s unique identifier.
|
Vulnerability.Builder |
vulnerabilityType(VulnerabilityType vulnerabilityType)
Specifies the type of Vulnerability
|
public Vulnerability.Builder id(String id)
ID of the vulnerability
id
- the value to setpublic Vulnerability.Builder compartmentId(String compartmentId)
Compartment ID of the vulnerability. Vulnerabilities with identical CVEs can exist in different compartments, based on scan target location
compartmentId
- the value to setpublic Vulnerability.Builder authentication(String authentication)
Mechanism used for scan authentication
authentication
- the value to setpublic Vulnerability.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 Vulnerability.Builder cveDetails(CveDetails cveDetails)
public Vulnerability.Builder severity(ScanResultProblemSeverity severity)
Severity of the vulnerability
severity
- the value to setpublic Vulnerability.Builder state(ScanResultVulnerabilityState state)
State of the vulnerability
state
- the value to setpublic Vulnerability.Builder cveDescription(String cveDescription)
The description of CVE vulnerability
cveDescription
- the value to setpublic Vulnerability.Builder name(String name)
Vulnerability name
name
- the value to setpublic Vulnerability.Builder timeLastDetected(Date timeLastDetected)
Date of scan result that most recently reported the vulnerability
timeLastDetected
- the value to setpublic Vulnerability.Builder timeFirstDetected(Date timeFirstDetected)
Date of scan result that first reported the vulnerability
timeFirstDetected
- the value to setpublic Vulnerability.Builder impactedResourcesCount(ImpactedResourcesCount impactedResourcesCount)
public Vulnerability.Builder vulnerabilityType(VulnerabilityType vulnerabilityType)
Specifies the type of Vulnerability
vulnerabilityType
- the value to setpublic Vulnerability.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the resource.
lifecycleState
- the value to setpublic Vulnerability build()
public Vulnerability.Builder copy(Vulnerability model)
Copyright © 2016–2024. All rights reserved.