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