Class HostAgentScanResult.Builder
- java.lang.Object
-
- com.oracle.bmc.vulnerabilityscanning.model.HostAgentScanResult.Builder
-
- Enclosing class:
- HostAgentScanResult
public static class HostAgentScanResult.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostAgentScanResult
build()
HostAgentScanResult.Builder
compartmentId(String compartmentId)
Compartment ID of the resource.HostAgentScanResult.Builder
copy(HostAgentScanResult model)
HostAgentScanResult.Builder
displayName(String displayName)
Name of the resourceHostAgentScanResult.Builder
highestProblemSeverity(ScanResultProblemSeverity highestProblemSeverity)
Highest problem severity in this reportHostAgentScanResult.Builder
id(String id)
Unique identifier of the scanHostAgentScanResult.Builder
instanceId(String instanceId)
Instance ID of the Compute Instance scannedHostAgentScanResult.Builder
kernelVersion(String kernelVersion)
Kernel version of the operating systemHostAgentScanResult.Builder
lifecycleState(LifecycleState lifecycleState)
The current state of the result.HostAgentScanResult.Builder
operatingSystem(String operatingSystem)
Operating system of the hostHostAgentScanResult.Builder
problemCount(Integer problemCount)
Total number of problems found in this scanHostAgentScanResult.Builder
problems(List<HostAgentScanResultProblem> problems)
List of problems found in this scanHostAgentScanResult.Builder
timeFinished(Date timeFinished)
Date and time the scan was completed, as described in RFC 3339HostAgentScanResult.Builder
timeStarted(Date timeStarted)
Date and time the scan was started, as described in RFC 3339HostAgentScanResult.Builder
vendor(VendorType vendor)
Vendor which was used for this host scan agent.
-
-
-
Method Detail
-
id
public HostAgentScanResult.Builder id(String id)
Unique identifier of the scan- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public HostAgentScanResult.Builder displayName(String displayName)
Name of the resource- Parameters:
displayName
- the value to set- Returns:
- this builder
-
instanceId
public HostAgentScanResult.Builder instanceId(String instanceId)
Instance ID of the Compute Instance scanned- Parameters:
instanceId
- the value to set- Returns:
- this builder
-
compartmentId
public HostAgentScanResult.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 HostAgentScanResult.Builder highestProblemSeverity(ScanResultProblemSeverity highestProblemSeverity)
Highest problem severity in this report- Parameters:
highestProblemSeverity
- the value to set- Returns:
- this builder
-
operatingSystem
public HostAgentScanResult.Builder operatingSystem(String operatingSystem)
Operating system of the host- Parameters:
operatingSystem
- the value to set- Returns:
- this builder
-
kernelVersion
public HostAgentScanResult.Builder kernelVersion(String kernelVersion)
Kernel version of the operating system- Parameters:
kernelVersion
- the value to set- Returns:
- this builder
-
problemCount
public HostAgentScanResult.Builder problemCount(Integer problemCount)
Total number of problems found in this scan- Parameters:
problemCount
- the value to set- Returns:
- this builder
-
timeStarted
public HostAgentScanResult.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 HostAgentScanResult.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
-
problems
public HostAgentScanResult.Builder problems(List<HostAgentScanResultProblem> problems)
List of problems found in this scan- Parameters:
problems
- the value to set- Returns:
- this builder
-
lifecycleState
public HostAgentScanResult.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the result.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
vendor
public HostAgentScanResult.Builder vendor(VendorType vendor)
Vendor which was used for this host scan agent.- Parameters:
vendor
- the value to set- Returns:
- this builder
-
build
public HostAgentScanResult build()
-
copy
public HostAgentScanResult.Builder copy(HostAgentScanResult model)
-
-