public static class ResourceVulnerability.Builder extends Object
Constructor and Description |
---|
Builder() |
public ResourceVulnerability.Builder id(String id)
The cve id of the vulnerability
id
- the value to setpublic ResourceVulnerability.Builder description(String description)
The description of the vulnerability
description
- the value to setpublic ResourceVulnerability.Builder riskLevel(CveRiskLevel riskLevel)
The Risk Level
riskLevel
- the value to setpublic ResourceVulnerability.Builder url(String url)
URL of the CVE
url
- the value to setpublic ResourceVulnerability.Builder timeFirstDetected(Date timeFirstDetected)
First detected time
timeFirstDetected
- the value to setpublic ResourceVulnerability.Builder timeLastDetected(Date timeLastDetected)
First detected time
timeLastDetected
- the value to setpublic ResourceVulnerability.Builder timePublished(Date timePublished)
Time the vulnerability was published
timePublished
- the value to setpublic ResourceVulnerability.Builder timeLastModified(Date timeLastModified)
Time the vulnerability was last modified
timeLastModified
- the value to setpublic ResourceVulnerability.Builder cvssScore(String cvssScore)
cvssScore of CVE
cvssScore
- the value to setpublic ResourceVulnerability.Builder packageDetails(List<PackageDetail> packageDetails)
list for packages causing vulnerability
packageDetails
- the value to setpublic 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.
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic 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"}}
systemTags
- the value to setpublic ResourceVulnerability build()
public ResourceVulnerability.Builder copy(ResourceVulnerability model)
Copyright © 2016–2024. All rights reserved.