Class HostPortScanResult.Builder
- java.lang.Object
-
- com.oracle.bmc.vulnerabilityscanning.model.HostPortScanResult.Builder
-
- Enclosing class:
- HostPortScanResult
public static class HostPortScanResult.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostPortScanResultbuild()HostPortScanResult.BuildercompartmentId(String compartmentId)Compartment ID of the resource.HostPortScanResult.Buildercopy(HostPortScanResult model)HostPortScanResult.BuilderdisplayName(String displayName)Name of the resourceHostPortScanResult.BuilderhighestProblemSeverity(ScanResultProblemSeverity highestProblemSeverity)Highest problem severity in this reportHostPortScanResult.Builderid(String id)Unique identifier of the scanHostPortScanResult.BuilderinstanceId(String instanceId)Instance ID of the Compute Instance scannedHostPortScanResult.BuilderlifecycleState(LifecycleState lifecycleState)The current state of the result.HostPortScanResult.BuilderopenPortCount(Integer openPortCount)Total number of open ports across all attached VNICs found in this scanHostPortScanResult.BuilderopenPorts(List<HostPortScanResultOpenPort> openPorts)List of open ports (including interface) found in this scanHostPortScanResult.BuildertimeFinished(Date timeFinished)Date and time the scan was completed, as described in RFC 3339HostPortScanResult.BuildertimeStarted(Date timeStarted)Date and time the scan was started, as described in RFC 3339
-
-
-
Method Detail
-
id
public HostPortScanResult.Builder id(String id)
Unique identifier of the scan- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public HostPortScanResult.Builder displayName(String displayName)
Name of the resource- Parameters:
displayName- the value to set- Returns:
- this builder
-
instanceId
public HostPortScanResult.Builder instanceId(String instanceId)
Instance ID of the Compute Instance scanned- Parameters:
instanceId- the value to set- Returns:
- this builder
-
compartmentId
public HostPortScanResult.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
-
highestProblemSeverity
public HostPortScanResult.Builder highestProblemSeverity(ScanResultProblemSeverity highestProblemSeverity)
Highest problem severity in this report- Parameters:
highestProblemSeverity- the value to set- Returns:
- this builder
-
timeStarted
public HostPortScanResult.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 HostPortScanResult.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
-
openPortCount
public HostPortScanResult.Builder openPortCount(Integer openPortCount)
Total number of open ports across all attached VNICs found in this scan- Parameters:
openPortCount- the value to set- Returns:
- this builder
-
openPorts
public HostPortScanResult.Builder openPorts(List<HostPortScanResultOpenPort> openPorts)
List of open ports (including interface) found in this scan- Parameters:
openPorts- the value to set- Returns:
- this builder
-
lifecycleState
public HostPortScanResult.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the result.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
build
public HostPortScanResult build()
-
copy
public HostPortScanResult.Builder copy(HostPortScanResult model)
-
-