Class TagRuleCreateAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TagRuleCreateAttributes extends Object
Attributes that can be supplied when creating a tag rule.
  • Field Details

  • Constructor Details

  • Method Details

    • enabled

      public TagRuleCreateAttributes enabled(Boolean enabled)
    • getEnabled

      @Nullable public Boolean getEnabled()
      Whether the rule is currently enforced. Defaults to true for newly created rules.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • name

      public TagRuleCreateAttributes name(String name)
    • getName

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

      public void setName(String name)
    • negated

      public TagRuleCreateAttributes negated(Boolean negated)
    • getNegated

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

      public void setNegated(Boolean negated)
    • required

      public TagRuleCreateAttributes required(Boolean required)
    • getRequired

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

      public void setRequired(Boolean required)
    • ruleType

      public TagRuleCreateAttributes ruleType(TagRuleCreateType ruleType)
    • getRuleType

      public TagRuleCreateType getRuleType()
      The rule type allowed when creating a tag rule. Only surfacing is accepted at creation time.
      Returns:
      ruleType
    • setRuleType

      public void setRuleType(TagRuleCreateType ruleType)
    • scope

      public TagRuleCreateAttributes scope(String scope)
    • getScope

      public String getScope()
      The scope the rule applies within. Typically an environment, team, or organization-level identifier used to limit where the rule is enforced.
      Returns:
      scope
    • setScope

      public void setScope(String scope)
    • source

      public TagRuleCreateAttributes source(TagRuleSource source)
    • getSource

      public TagRuleSource getSource()
      The telemetry source that a tag rule applies to.
      Returns:
      source
    • setSource

      public void setSource(TagRuleSource source)
    • tagKey

      public TagRuleCreateAttributes tagKey(String tagKey)
    • getTagKey

      public String getTagKey()
      The tag key that the rule governs (for example, service).
      Returns:
      tagKey
    • setTagKey

      public void setTagKey(String tagKey)
    • tagValuePatterns

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

      public TagRuleCreateAttributes addTagValuePatternsItem(String tagValuePatternsItem)
    • getTagValuePatterns

      public List<String> getTagValuePatterns()
      One or more patterns that valid values for the tag key must match. At least one pattern is required.
      Returns:
      tagValuePatterns
    • setTagValuePatterns

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

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