Class ResourceSummary
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.cloudguard.model.ResourceSummary
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20200131") public final class ResourceSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelSummary of CG Resource
 Note: Objects should always be created or deserialized using theResourceSummary.Builder.This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the ResourceSummary.Builder, which maintain a set of all explicitly set fields calledResourceSummary.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classResourceSummary.Builder
 - 
Constructor SummaryConstructors Constructor Description ResourceSummary(String id, String resourceName, String resourceType, String compartmentId, String targetId, String targetName, String region, CveRiskLevel riskLevel, Integer problemCount, Integer vulnerabilityCount, Integer openPortsCount, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceSummary.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCompartmentId()CompartmentId of CG ResourceMap<String,Map<String,Object>>getDefinedTags()Defined tags for this resource.Map<String,String>getFreeformTags()Simple key-value pair that is applied without any predefined name, type or scope.StringgetId()Ocid for CG resourceIntegergetOpenPortsCount()Number of open ports in a resourceIntegergetProblemCount()Count of existing problems for a resourceStringgetRegion()region of CG ResourceStringgetResourceName()name of the CG resourceStringgetResourceType()resource type of the CG resourceCveRiskLevelgetRiskLevel()The Risk LevelMap<String,Map<String,Object>>getSystemTags()System tags for this resource.StringgetTargetId()TargetId of CG ResourceStringgetTargetName()Target name for the CG ResourceIntegergetVulnerabilityCount()Count of existing number of vulnerabilities in the resourceinthashCode()ResourceSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
ResourceSummary@Deprecated @ConstructorProperties({"id","resourceName","resourceType","compartmentId","targetId","targetName","region","riskLevel","problemCount","vulnerabilityCount","openPortsCount","freeformTags","definedTags","systemTags"}) public ResourceSummary(String id, String resourceName, String resourceType, String compartmentId, String targetId, String targetName, String region, CveRiskLevel riskLevel, Integer problemCount, Integer vulnerabilityCount, Integer openPortsCount, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static ResourceSummary.Builder builder() Create a new builder.
 - 
toBuilderpublic ResourceSummary.Builder toBuilder() 
 - 
getIdpublic String getId() Ocid for CG resource- Returns:
- the value
 
 - 
getResourceNamepublic String getResourceName() name of the CG resource- Returns:
- the value
 
 - 
getResourceTypepublic String getResourceType() resource type of the CG resource- Returns:
- the value
 
 - 
getCompartmentIdpublic String getCompartmentId() CompartmentId of CG Resource- Returns:
- the value
 
 - 
getTargetIdpublic String getTargetId() TargetId of CG Resource- Returns:
- the value
 
 - 
getTargetNamepublic String getTargetName() Target name for the CG Resource- Returns:
- the value
 
 - 
getRegionpublic String getRegion() region of CG Resource- Returns:
- the value
 
 - 
getRiskLevelpublic CveRiskLevel getRiskLevel() The Risk Level- Returns:
- the value
 
 - 
getProblemCountpublic Integer getProblemCount() Count of existing problems for a resource- Returns:
- the value
 
 - 
getVulnerabilityCountpublic Integer getVulnerabilityCount() Count of existing number of vulnerabilities in the resource- Returns:
- the value
 
 - 
getOpenPortsCountpublic Integer getOpenPortsCount() Number of open ports in a resource- Returns:
- the value
 
 - 
getFreeformTagspublic Map<String,String> getFreeformTags() 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. - Returns:
- the value
 
 - 
getDefinedTagspublic Map<String,Map<String,Object>> getDefinedTags() Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}} - Returns:
- the value
 
 - 
getSystemTagspublic Map<String,Map<String,Object>> getSystemTags() 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"}} - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-