Package com.oracle.bmc.dblm.model
Class VulnerabilityScan.Builder
- java.lang.Object
-
- com.oracle.bmc.dblm.model.VulnerabilityScan.Builder
-
- Enclosing class:
- VulnerabilityScan
public static class VulnerabilityScan.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VulnerabilityScan
build()
VulnerabilityScan.Builder
compartmentId(String compartmentId)
The OCID of the compartment.VulnerabilityScan.Builder
copy(VulnerabilityScan model)
VulnerabilityScan.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.VulnerabilityScan.Builder
displayName(String displayName)
A user-friendly name.VulnerabilityScan.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.VulnerabilityScan.Builder
id(String id)
The OCID of the VulnerabilityScan.VulnerabilityScan.Builder
lifecycleState(VulnerabilityScan.LifecycleState lifecycleState)
The current state of the VulnerabilityScan.VulnerabilityScan.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.VulnerabilityScan.Builder
timeCreated(Date timeCreated)
The date and time the VulnerabilityScan was created, in the format defined by RFC 3339.VulnerabilityScan.Builder
timeEnded(Date timeEnded)
The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339.VulnerabilityScan.Builder
vulnerabilityScanMessage(String vulnerabilityScanMessage)
The message of the vulnerability scan status.VulnerabilityScan.Builder
vulnerabilityScanStatus(VulnerabilityScan.VulnerabilityScanStatus vulnerabilityScanStatus)
The status of the vulnerability scan.VulnerabilityScan.Builder
vulnerabilityScanType(VulnerabilityScan.VulnerabilityScanType vulnerabilityScanType)
Scan type is CVE, PATCH or IMAGE_PATCH
-
-
-
Method Detail
-
id
public VulnerabilityScan.Builder id(String id)
The OCID of the VulnerabilityScan.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public VulnerabilityScan.Builder displayName(String displayName)
A user-friendly name.It does not have to be unique, and it is changeable.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
compartmentId
public VulnerabilityScan.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
vulnerabilityScanType
public VulnerabilityScan.Builder vulnerabilityScanType(VulnerabilityScan.VulnerabilityScanType vulnerabilityScanType)
Scan type is CVE, PATCH or IMAGE_PATCH- Parameters:
vulnerabilityScanType
- the value to set- Returns:
- this builder
-
vulnerabilityScanStatus
public VulnerabilityScan.Builder vulnerabilityScanStatus(VulnerabilityScan.VulnerabilityScanStatus vulnerabilityScanStatus)
The status of the vulnerability scan.- Parameters:
vulnerabilityScanStatus
- the value to set- Returns:
- this builder
-
vulnerabilityScanMessage
public VulnerabilityScan.Builder vulnerabilityScanMessage(String vulnerabilityScanMessage)
The message of the vulnerability scan status.- Parameters:
vulnerabilityScanMessage
- the value to set- Returns:
- this builder
-
timeCreated
public VulnerabilityScan.Builder timeCreated(Date timeCreated)
The date and time the VulnerabilityScan was created, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeEnded
public VulnerabilityScan.Builder timeEnded(Date timeEnded)
The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeEnded
- the value to set- Returns:
- this builder
-
lifecycleState
public VulnerabilityScan.Builder lifecycleState(VulnerabilityScan.LifecycleState lifecycleState)
The current state of the VulnerabilityScan.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
freeformTags
public VulnerabilityScan.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public VulnerabilityScan.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public VulnerabilityScan.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public VulnerabilityScan build()
-
copy
public VulnerabilityScan.Builder copy(VulnerabilityScan model)
-
-