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 Details

  • Constructor Details

    • CloudConfigurationComplianceRuleOptions

      public CloudConfigurationComplianceRuleOptions()
  • Method Details

    • complexRule

      public CloudConfigurationComplianceRuleOptions complexRule(Boolean complexRule)
    • getComplexRule

      @Nullable public Boolean getComplexRule()
      Whether the rule is a complex one. Must be set to true if regoRule.resourceTypes contains more than one item. Defaults to false.
      Returns:
      complexRule
    • setComplexRule

      public void setComplexRule(Boolean complexRule)
    • regoRule

    • getRegoRule

      @Nullable public CloudConfigurationRegoRule getRegoRule()
      Rule details.
      Returns:
      regoRule
    • setRegoRule

      public void setRegoRule(CloudConfigurationRegoRule regoRule)
    • resourceType

      public CloudConfigurationComplianceRuleOptions resourceType(String resourceType)
    • getResourceType

      @Nullable public String getResourceType()
      Main resource type to be checked by the rule. It should be specified again in regoRule.resourceTypes.
      Returns:
      resourceType
    • setResourceType

      public void setResourceType(String resourceType)
    • putAdditionalProperty

      public CloudConfigurationComplianceRuleOptions putAdditionalProperty(String key, Object value)
      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 set
      value - The associated value
      Returns:
      CloudConfigurationComplianceRuleOptions
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this CloudConfigurationComplianceRuleOptions object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object