Package com.datadog.api.client.v2.model
Class CloudConfigurationComplianceRuleOptions
java.lang.Object
com.datadog.api.client.v2.model.CloudConfigurationComplianceRuleOptions
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CloudConfigurationComplianceRuleOptions
extends Object
Options for cloud_configuration rules. Fields
resourceType and regoRule
are mandatory when managing custom cloud_configuration rules.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomplexRule(Boolean complexRule) booleanReturn true if this CloudConfigurationComplianceRuleOptions object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether the rule is a complex one.Rule details.Main resource type to be checked by the rule.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.regoRule(CloudConfigurationRegoRule regoRule) resourceType(String resourceType) voidsetComplexRule(Boolean complexRule) voidsetRegoRule(CloudConfigurationRegoRule regoRule) voidsetResourceType(String resourceType) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_COMPLEX_RULE
- See Also:
-
JSON_PROPERTY_REGO_RULE
- See Also:
-
JSON_PROPERTY_RESOURCE_TYPE
- See Also:
-
-
Constructor Details
-
CloudConfigurationComplianceRuleOptions
public CloudConfigurationComplianceRuleOptions()
-
-
Method Details
-
complexRule
-
getComplexRule
Whether the rule is a complex one. Must be set to true ifregoRule.resourceTypescontains more than one item. Defaults to false.- Returns:
- complexRule
-
setComplexRule
-
regoRule
-
getRegoRule
Rule details.- Returns:
- regoRule
-
setRegoRule
-
resourceType
-
getResourceType
Main resource type to be checked by the rule. It should be specified again inregoRule.resourceTypes.- Returns:
- resourceType
-
setResourceType
-
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:
- CloudConfigurationComplianceRuleOptions
-
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 CloudConfigurationComplianceRuleOptions object is equal to o. -
hashCode
public int hashCode() -
toString
-