Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTagValuePatternsItem(String tagValuePatternsItem) booleanReturn true if this TagRuleUpdateAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether the rule is currently enforced.getName()Human-readable name for the tag rule.Whentrue, the rule matches tag values that do NOT match any of the supplied patterns.Whentrue, telemetry without this tag is treated as a violation.How the rule is enforced.getScope()The scope the rule applies within.The tag key that the rule governs.One or more patterns that valid values for the tag key must match.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.ruleType(TagRuleType ruleType) voidsetEnabled(Boolean enabled) voidvoidsetNegated(Boolean negated) voidsetRequired(Boolean required) voidsetRuleType(TagRuleType ruleType) voidvoidvoidsetTagValuePatterns(List<String> tagValuePatterns) tagValuePatterns(List<String> tagValuePatterns) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_NEGATED
- See Also:
-
JSON_PROPERTY_REQUIRED
- See Also:
-
JSON_PROPERTY_RULE_TYPE
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
JSON_PROPERTY_TAG_KEY
- See Also:
-
JSON_PROPERTY_TAG_VALUE_PATTERNS
- See Also:
-
-
Constructor Details
-
TagRuleUpdateAttributes
public TagRuleUpdateAttributes()
-
-
Method Details
-
enabled
-
getEnabled
Whether the rule is currently enforced.- Returns:
- enabled
-
setEnabled
-
name
-
getName
Human-readable name for the tag rule.- Returns:
- name
-
setName
-
negated
-
getNegated
Whentrue, the rule matches tag values that do NOT match any of the supplied patterns.- Returns:
- negated
-
setNegated
-
required
-
getRequired
Whentrue, telemetry without this tag is treated as a violation.- Returns:
- required
-
setRequired
-
ruleType
-
getRuleType
How the rule is enforced.blockingrejects telemetry that violates the rule.surfacingonly highlights non-compliant telemetry without blocking it.- Returns:
- ruleType
-
setRuleType
-
scope
-
getScope
The scope the rule applies within.- Returns:
- scope
-
setScope
-
tagKey
-
getTagKey
The tag key that the rule governs.- Returns:
- tagKey
-
setTagKey
-
tagValuePatterns
-
addTagValuePatternsItem
-
getTagValuePatterns
One or more patterns that valid values for the tag key must match.- Returns:
- tagValuePatterns
-
setTagValuePatterns
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- TagRuleUpdateAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this TagRuleUpdateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-