Class CloudConfigurationRegoRule

java.lang.Object
com.datadog.api.client.v2.model.CloudConfigurationRegoRule

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CloudConfigurationRegoRule extends Object
Rule details.
  • Field Details

  • Constructor Details

    • CloudConfigurationRegoRule

      public CloudConfigurationRegoRule()
    • CloudConfigurationRegoRule

      public CloudConfigurationRegoRule(String policy, List<String> resourceTypes)
  • Method Details

    • policy

      public CloudConfigurationRegoRule policy(String policy)
    • getPolicy

      public String getPolicy()
      The policy written in rego, see: https://www.openpolicyagent.org/docs/latest/policy-language/
      Returns:
      policy
    • setPolicy

      public void setPolicy(String policy)
    • resourceTypes

      public CloudConfigurationRegoRule resourceTypes(List<String> resourceTypes)
    • addResourceTypesItem

      public CloudConfigurationRegoRule addResourceTypesItem(String resourceTypesItem)
    • getResourceTypes

      public List<String> getResourceTypes()
      List of resource types that will be evaluated upon. Must have at least one element.
      Returns:
      resourceTypes
    • setResourceTypes

      public void setResourceTypes(List<String> resourceTypes)
    • putAdditionalProperty

      public CloudConfigurationRegoRule 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:
      CloudConfigurationRegoRule
    • 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 CloudConfigurationRegoRule 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