Class TagRuleUpdateAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TagRuleUpdateAttributes extends Object
Mutable attributes of a tag rule. Each field is optional; omitting a field leaves its current value unchanged. The source of a rule cannot be changed.
  • Field Details

  • Constructor Details

    • TagRuleUpdateAttributes

      public TagRuleUpdateAttributes()
  • Method Details

    • enabled

      public TagRuleUpdateAttributes enabled(Boolean enabled)
    • getEnabled

      @Nullable public Boolean getEnabled()
      Whether the rule is currently enforced.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • name

      public TagRuleUpdateAttributes name(String name)
    • getName

      @Nullable public String getName()
      Human-readable name for the tag rule.
      Returns:
      name
    • setName

      public void setName(String name)
    • negated

      public TagRuleUpdateAttributes negated(Boolean negated)
    • getNegated

      @Nullable public Boolean getNegated()
      When true, the rule matches tag values that do NOT match any of the supplied patterns.
      Returns:
      negated
    • setNegated

      public void setNegated(Boolean negated)
    • required

      public TagRuleUpdateAttributes required(Boolean required)
    • getRequired

      @Nullable public Boolean getRequired()
      When true, telemetry without this tag is treated as a violation.
      Returns:
      required
    • setRequired

      public void setRequired(Boolean required)
    • ruleType

      public TagRuleUpdateAttributes ruleType(TagRuleType ruleType)
    • getRuleType

      @Nullable public TagRuleType getRuleType()
      How the rule is enforced. blocking rejects telemetry that violates the rule. surfacing only highlights non-compliant telemetry without blocking it.
      Returns:
      ruleType
    • setRuleType

      public void setRuleType(TagRuleType ruleType)
    • scope

      public TagRuleUpdateAttributes scope(String scope)
    • getScope

      @Nullable public String getScope()
      The scope the rule applies within.
      Returns:
      scope
    • setScope

      public void setScope(String scope)
    • tagKey

      public TagRuleUpdateAttributes tagKey(String tagKey)
    • getTagKey

      @Nullable public String getTagKey()
      The tag key that the rule governs.
      Returns:
      tagKey
    • setTagKey

      public void setTagKey(String tagKey)
    • tagValuePatterns

      public TagRuleUpdateAttributes tagValuePatterns(List<String> tagValuePatterns)
    • addTagValuePatternsItem

      public TagRuleUpdateAttributes addTagValuePatternsItem(String tagValuePatternsItem)
    • getTagValuePatterns

      @Nullable public List<String> getTagValuePatterns()
      One or more patterns that valid values for the tag key must match.
      Returns:
      tagValuePatterns
    • setTagValuePatterns

      public void setTagValuePatterns(List<String> tagValuePatterns)
    • putAdditionalProperty

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