Class CustomRulesetRequestDataAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CustomRulesetRequestDataAttributes extends Object
Attributes for creating or updating a custom ruleset. name is required and must equal the resource id; the server rejects a mismatch with a 412 response.
  • Field Details

  • Constructor Details

    • CustomRulesetRequestDataAttributes

      public CustomRulesetRequestDataAttributes()
    • CustomRulesetRequestDataAttributes

      public CustomRulesetRequestDataAttributes(String name)
  • Method Details

    • description

      public CustomRulesetRequestDataAttributes description(String description)
    • getDescription

      @Nullable public String getDescription()
      Base64-encoded full description
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • name

    • getName

      public String getName()
      Ruleset name, which must be the same as the resource identifier.
      Returns:
      name
    • setName

      public void setName(String name)
    • rules

    • addRulesItem

      public CustomRulesetRequestDataAttributes addRulesItem(CustomRule rulesItem)
    • getRules

      @Nullable public List<CustomRule> getRules()
      Rules in the ruleset
      Returns:
      rules
    • getRules_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<CustomRule>> getRules_JsonNullable()
    • setRules_JsonNullable

      public void setRules_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<CustomRule>> rules)
    • setRules

      public void setRules(List<CustomRule> rules)
    • shortDescription

      public CustomRulesetRequestDataAttributes shortDescription(String shortDescription)
    • getShortDescription

      @Nullable public String getShortDescription()
      Base64-encoded short description
      Returns:
      shortDescription
    • setShortDescription

      public void setShortDescription(String shortDescription)
    • putAdditionalProperty

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