Package com.datadog.api.client.v2.model
Class RuleBasedViewRule
java.lang.Object
com.datadog.api.client.v2.model.RuleBasedViewRule
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class RuleBasedViewRule
extends Object
A compliance rule along with its evaluation statistics and framework mappings.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRuleBasedViewRule(List<RuleBasedViewComplianceFramework> complianceFrameworks, Boolean enabled, String id, String name, List<String> resourceAttributes, String resourceCategory, String resourceType, RuleBasedViewRuleStats stats, String status, List<String> tags, RuleBasedViewRuleCategory type) -
Method Summary
Modifier and TypeMethodDescriptionaddComplianceFrameworksItem(RuleBasedViewComplianceFramework complianceFrameworksItem) addResourceAttributesItem(String resourceAttributesItem) addTagsItem(String tagsItem) complianceFrameworks(List<RuleBasedViewComplianceFramework> complianceFrameworks) booleanReturn true if this RuleBasedViewRule object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.List of compliance framework mappings associated with the rule.Whether the rule is enabled.getId()Unique identifier of the rule.getName()Human-readable name of the rule.List of resource attribute names exposed by the rule.Resource category targeted by the rule.Resource type targeted by the rule.getStats()Counts of findings for the rule, grouped by their evaluation status.Severity associated with the rule (for example,info,low,medium,high, orcritical).getTags()List of tags attached to the rule.getType()The category of the security rule.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.resourceAttributes(List<String> resourceAttributes) resourceCategory(String resourceCategory) resourceType(String resourceType) voidsetComplianceFrameworks(List<RuleBasedViewComplianceFramework> complianceFrameworks) voidsetEnabled(Boolean enabled) voidvoidvoidsetResourceAttributes(List<String> resourceAttributes) voidsetResourceCategory(String resourceCategory) voidsetResourceType(String resourceType) voidsetStats(RuleBasedViewRuleStats stats) voidvoidvoidstats(RuleBasedViewRuleStats stats) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_COMPLIANCE_FRAMEWORKS
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_RESOURCE_ATTRIBUTES
- See Also:
-
JSON_PROPERTY_RESOURCE_CATEGORY
- See Also:
-
JSON_PROPERTY_RESOURCE_TYPE
- See Also:
-
JSON_PROPERTY_STATS
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
RuleBasedViewRule
public RuleBasedViewRule() -
RuleBasedViewRule
public RuleBasedViewRule(List<RuleBasedViewComplianceFramework> complianceFrameworks, Boolean enabled, String id, String name, List<String> resourceAttributes, String resourceCategory, String resourceType, RuleBasedViewRuleStats stats, String status, List<String> tags, RuleBasedViewRuleCategory type)
-
-
Method Details
-
complianceFrameworks
public RuleBasedViewRule complianceFrameworks(List<RuleBasedViewComplianceFramework> complianceFrameworks) -
addComplianceFrameworksItem
public RuleBasedViewRule addComplianceFrameworksItem(RuleBasedViewComplianceFramework complianceFrameworksItem) -
getComplianceFrameworks
List of compliance framework mappings associated with the rule.- Returns:
- complianceFrameworks
-
setComplianceFrameworks
-
enabled
-
getEnabled
Whether the rule is enabled.- Returns:
- enabled
-
setEnabled
-
id
-
getId
Unique identifier of the rule.- Returns:
- id
-
setId
-
name
-
getName
Human-readable name of the rule.- Returns:
- name
-
setName
-
resourceAttributes
-
addResourceAttributesItem
-
getResourceAttributes
List of resource attribute names exposed by the rule.- Returns:
- resourceAttributes
-
setResourceAttributes
-
resourceCategory
-
getResourceCategory
Resource category targeted by the rule.- Returns:
- resourceCategory
-
setResourceCategory
-
resourceType
-
getResourceType
Resource type targeted by the rule.- Returns:
- resourceType
-
setResourceType
-
stats
-
getStats
Counts of findings for the rule, grouped by their evaluation status.- Returns:
- stats
-
setStats
-
status
-
getStatus
Severity associated with the rule (for example,info,low,medium,high, orcritical).- Returns:
- status
-
setStatus
-
tags
-
addTagsItem
-
getTags
List of tags attached to the rule.- Returns:
- tags
-
setTags
-
type
-
getType
The category of the security rule.- Returns:
- type
-
setType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- RuleBasedViewRule
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this RuleBasedViewRule object is equal to o. -
hashCode
public int hashCode() -
toString
-