Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Resource.Builder |
additionalDetails(ResourceAdditionalDetails additionalDetails) |
Resource |
build() |
Resource.Builder |
compartmentId(String compartmentId)
CompartmentId of CG Resource
|
Resource.Builder |
copy(Resource model) |
Resource.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Resource.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
Resource.Builder |
id(String id)
Ocid for CG resource
|
Resource.Builder |
openPortsCount(Integer openPortsCount)
Number of open ports in a resource
|
Resource.Builder |
problemCount(Integer problemCount)
Count of existing problems for a resource
|
Resource.Builder |
region(String region)
region of CG Resource
|
Resource.Builder |
resourceName(String resourceName)
Name for the CG resource
|
Resource.Builder |
resourceType(String resourceType)
resource type of the CG resource
|
Resource.Builder |
riskLevel(CveRiskLevel riskLevel)
The Risk Level
|
Resource.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.
|
Resource.Builder |
targetId(String targetId)
TargetId of CG Resource
|
Resource.Builder |
targetName(String targetName)
Target name for the CG Resource
|
Resource.Builder |
timeFirstMonitored(Date timeFirstMonitored)
First monitored time
|
Resource.Builder |
timeLastMonitored(Date timeLastMonitored)
Last monitored time
|
Resource.Builder |
vulnerabilityCount(Integer vulnerabilityCount)
Count of existing number of vulnerabilities in the resource
|
public Resource.Builder id(String id)
Ocid for CG resource
id
- the value to setpublic Resource.Builder resourceName(String resourceName)
Name for the CG resource
resourceName
- the value to setpublic Resource.Builder resourceType(String resourceType)
resource type of the CG resource
resourceType
- the value to setpublic Resource.Builder compartmentId(String compartmentId)
CompartmentId of CG Resource
compartmentId
- the value to setpublic Resource.Builder targetId(String targetId)
TargetId of CG Resource
targetId
- the value to setpublic Resource.Builder targetName(String targetName)
Target name for the CG Resource
targetName
- the value to setpublic Resource.Builder region(String region)
region of CG Resource
region
- the value to setpublic Resource.Builder riskLevel(CveRiskLevel riskLevel)
The Risk Level
riskLevel
- the value to setpublic Resource.Builder timeFirstMonitored(Date timeFirstMonitored)
First monitored time
timeFirstMonitored
- the value to setpublic Resource.Builder timeLastMonitored(Date timeLastMonitored)
Last monitored time
timeLastMonitored
- the value to setpublic Resource.Builder problemCount(Integer problemCount)
Count of existing problems for a resource
problemCount
- the value to setpublic Resource.Builder vulnerabilityCount(Integer vulnerabilityCount)
Count of existing number of vulnerabilities in the resource
vulnerabilityCount
- the value to setpublic Resource.Builder openPortsCount(Integer openPortsCount)
Number of open ports in a resource
openPortsCount
- the value to setpublic Resource.Builder additionalDetails(ResourceAdditionalDetails additionalDetails)
public Resource.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 Resource.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 Resource.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 Resource build()
public Resource.Builder copy(Resource model)
Copyright © 2016–2024. All rights reserved.