Package com.oracle.bmc.cloudguard.model
Class ResourceVulnerability.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.model.ResourceVulnerability.Builder
-
- Enclosing class:
- ResourceVulnerability
public static class ResourceVulnerability.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public ResourceVulnerability.Builder id(String id)
The cve id of the vulnerability- Parameters:
id
- the value to set- Returns:
- this builder
-
description
public ResourceVulnerability.Builder description(String description)
The description of the vulnerability- Parameters:
description
- the value to set- Returns:
- this builder
-
riskLevel
public ResourceVulnerability.Builder riskLevel(CveRiskLevel riskLevel)
The Risk Level- Parameters:
riskLevel
- the value to set- Returns:
- this builder
-
url
public ResourceVulnerability.Builder url(String url)
URL of the CVE- Parameters:
url
- the value to set- Returns:
- this builder
-
timeFirstDetected
public ResourceVulnerability.Builder timeFirstDetected(Date timeFirstDetected)
First detected time- Parameters:
timeFirstDetected
- the value to set- Returns:
- this builder
-
timeLastDetected
public ResourceVulnerability.Builder timeLastDetected(Date timeLastDetected)
First detected time- Parameters:
timeLastDetected
- the value to set- Returns:
- this builder
-
timePublished
public ResourceVulnerability.Builder timePublished(Date timePublished)
Time the vulnerability was published- Parameters:
timePublished
- the value to set- Returns:
- this builder
-
timeLastModified
public ResourceVulnerability.Builder timeLastModified(Date timeLastModified)
Time the vulnerability was last modified- Parameters:
timeLastModified
- the value to set- Returns:
- this builder
-
cvssScore
public ResourceVulnerability.Builder cvssScore(String cvssScore)
cvssScore of CVE- Parameters:
cvssScore
- the value to set- Returns:
- this builder
-
packageDetails
public ResourceVulnerability.Builder packageDetails(List<PackageDetail> packageDetails)
list for packages causing vulnerability- Parameters:
packageDetails
- the value to set- Returns:
- this builder
-
freeformTags
public ResourceVulnerability.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”}
Avoid entering confidential information.
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public ResourceVulnerability.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 ResourceVulnerability.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public ResourceVulnerability build()
-
copy
public ResourceVulnerability.Builder copy(ResourceVulnerability model)
-
-