Class HostCisBenchmarkScanResult.Builder
- java.lang.Object
-
- com.oracle.bmc.vulnerabilityscanning.model.HostCisBenchmarkScanResult.Builder
-
- Enclosing class:
- HostCisBenchmarkScanResult
public static class HostCisBenchmarkScanResult.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostCisBenchmarkScanResultbuild()HostCisBenchmarkScanResult.BuildercisBenchmarkScanIssuesCount(Integer cisBenchmarkScanIssuesCount)Total number of CIS (Center for Internet Security) benchmark issues found in this scanHostCisBenchmarkScanResult.BuildercisBenchmarkScanResultScores(List<HostCisBenchmarkScanResultScore> cisBenchmarkScanResultScores)A single CIS (Center for Internet Security) benchmark scan executed on a host.HostCisBenchmarkScanResult.BuildercompartmentId(String compartmentId)Compartment ID of the resource.HostCisBenchmarkScanResult.Buildercopy(HostCisBenchmarkScanResult model)HostCisBenchmarkScanResult.BuilderdisplayName(String displayName)Name of the resultHostCisBenchmarkScanResult.Builderid(String id)Unique identifier of the scanHostCisBenchmarkScanResult.BuilderinstanceId(String instanceId)Instance ID of the Compute Instance scannedHostCisBenchmarkScanResult.BuilderlifecycleState(LifecycleState lifecycleState)The current state of the result.HostCisBenchmarkScanResult.BuildertimeFinished(Date timeFinished)Date and time the scan was completed, as described in RFC 3339HostCisBenchmarkScanResult.BuildertimeStarted(Date timeStarted)Date and time the scan was started, as described in RFC 3339
-
-
-
Method Detail
-
id
public HostCisBenchmarkScanResult.Builder id(String id)
Unique identifier of the scan- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public HostCisBenchmarkScanResult.Builder displayName(String displayName)
Name of the result- Parameters:
displayName- the value to set- Returns:
- this builder
-
instanceId
public HostCisBenchmarkScanResult.Builder instanceId(String instanceId)
Instance ID of the Compute Instance scanned- Parameters:
instanceId- the value to set- Returns:
- this builder
-
compartmentId
public HostCisBenchmarkScanResult.Builder compartmentId(String compartmentId)
Compartment ID of the resource.This is set to the same as the compartment ID of the scan target
- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
timeStarted
public HostCisBenchmarkScanResult.Builder timeStarted(Date timeStarted)
Date and time the scan was started, as described in RFC 3339- Parameters:
timeStarted- the value to set- Returns:
- this builder
-
timeFinished
public HostCisBenchmarkScanResult.Builder timeFinished(Date timeFinished)
Date and time the scan was completed, as described in RFC 3339- Parameters:
timeFinished- the value to set- Returns:
- this builder
-
cisBenchmarkScanIssuesCount
public HostCisBenchmarkScanResult.Builder cisBenchmarkScanIssuesCount(Integer cisBenchmarkScanIssuesCount)
Total number of CIS (Center for Internet Security) benchmark issues found in this scan- Parameters:
cisBenchmarkScanIssuesCount- the value to set- Returns:
- this builder
-
cisBenchmarkScanResultScores
public HostCisBenchmarkScanResult.Builder cisBenchmarkScanResultScores(List<HostCisBenchmarkScanResultScore> cisBenchmarkScanResultScores)
A single CIS (Center for Internet Security) benchmark scan executed on a host.- Parameters:
cisBenchmarkScanResultScores- the value to set- Returns:
- this builder
-
lifecycleState
public HostCisBenchmarkScanResult.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the result.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
build
public HostCisBenchmarkScanResult build()
-
copy
public HostCisBenchmarkScanResult.Builder copy(HostCisBenchmarkScanResult model)
-
-