Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTagRuleCreateAttributes(String name, TagRuleCreateType ruleType, String scope, TagRuleSource source, String tagKey, List<String> tagValuePatterns) -
Method Summary
Modifier and TypeMethodDescriptionaddTagValuePatternsItem(String tagValuePatternsItem) booleanReturn true if this TagRuleCreateAttributes 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.The rule type allowed when creating a tag rule.getScope()The scope the rule applies within.The telemetry source that a tag rule applies to.The tag key that the rule governs (for example,service).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(TagRuleCreateType ruleType) voidsetEnabled(Boolean enabled) voidvoidsetNegated(Boolean negated) voidsetRequired(Boolean required) voidsetRuleType(TagRuleCreateType ruleType) voidvoidsetSource(TagRuleSource source) voidvoidsetTagValuePatterns(List<String> tagValuePatterns) source(TagRuleSource source) 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_SOURCE
- See Also:
-
JSON_PROPERTY_TAG_KEY
- See Also:
-
JSON_PROPERTY_TAG_VALUE_PATTERNS
- See Also:
-
-
Constructor Details
-
TagRuleCreateAttributes
public TagRuleCreateAttributes() -
TagRuleCreateAttributes
public TagRuleCreateAttributes(String name, TagRuleCreateType ruleType, String scope, TagRuleSource source, String tagKey, List<String> tagValuePatterns)
-
-
Method Details
-
enabled
-
getEnabled
Whether the rule is currently enforced. Defaults totruefor newly created rules.- 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. Defaults tofalse.- Returns:
- negated
-
setNegated
-
required
-
getRequired
Whentrue, telemetry without this tag is treated as a violation. Defaults tofalse.- Returns:
- required
-
setRequired
-
ruleType
-
getRuleType
The rule type allowed when creating a tag rule. Onlysurfacingis accepted at creation time.- Returns:
- ruleType
-
setRuleType
-
scope
-
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
-
source
-
getSource
The telemetry source that a tag rule applies to.- Returns:
- source
-
setSource
-
tagKey
-
getTagKey
The tag key that the rule governs (for example,service).- Returns:
- tagKey
-
setTagKey
-
tagValuePatterns
-
addTagValuePatternsItem
-
getTagValuePatterns
One or more patterns that valid values for the tag key must match. At least one pattern is required.- 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:
- TagRuleCreateAttributes
-
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 TagRuleCreateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-