@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TagRuleCreateAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_ENABLED |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_NEGATED |
static String |
JSON_PROPERTY_REQUIRED |
static String |
JSON_PROPERTY_RULE_TYPE |
static String |
JSON_PROPERTY_SCOPE |
static String |
JSON_PROPERTY_SOURCE |
static String |
JSON_PROPERTY_TAG_KEY |
static String |
JSON_PROPERTY_TAG_VALUE_PATTERNS |
boolean |
unparsed |
| Constructor and Description |
|---|
TagRuleCreateAttributes() |
TagRuleCreateAttributes(String name,
TagRuleCreateType ruleType,
String scope,
TagRuleSource source,
String tagKey,
List<String> tagValuePatterns) |
| Modifier and Type | Method and Description |
|---|---|
TagRuleCreateAttributes |
addTagValuePatternsItem(String tagValuePatternsItem) |
TagRuleCreateAttributes |
enabled(Boolean enabled) |
boolean |
equals(Object o)
Return true if this TagRuleCreateAttributes object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Boolean |
getEnabled()
Whether the rule is currently enforced.
|
String |
getName()
Human-readable name for the tag rule.
|
Boolean |
getNegated()
When
true, the rule matches tag values that do NOT match any of the supplied
patterns. |
Boolean |
getRequired()
When
true, telemetry without this tag is treated as a violation. |
TagRuleCreateType |
getRuleType()
The rule type allowed when creating a tag rule.
|
String |
getScope()
The scope the rule applies within.
|
TagRuleSource |
getSource()
The telemetry source that a tag rule applies to.
|
String |
getTagKey()
The tag key that the rule governs (for example,
service). |
List<String> |
getTagValuePatterns()
One or more patterns that valid values for the tag key must match.
|
int |
hashCode() |
TagRuleCreateAttributes |
name(String name) |
TagRuleCreateAttributes |
negated(Boolean negated) |
TagRuleCreateAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
TagRuleCreateAttributes |
required(Boolean required) |
TagRuleCreateAttributes |
ruleType(TagRuleCreateType ruleType) |
TagRuleCreateAttributes |
scope(String scope) |
void |
setEnabled(Boolean enabled) |
void |
setName(String name) |
void |
setNegated(Boolean negated) |
void |
setRequired(Boolean required) |
void |
setRuleType(TagRuleCreateType ruleType) |
void |
setScope(String scope) |
void |
setSource(TagRuleSource source) |
void |
setTagKey(String tagKey) |
void |
setTagValuePatterns(List<String> tagValuePatterns) |
TagRuleCreateAttributes |
source(TagRuleSource source) |
TagRuleCreateAttributes |
tagKey(String tagKey) |
TagRuleCreateAttributes |
tagValuePatterns(List<String> tagValuePatterns) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NEGATED
public static final String JSON_PROPERTY_REQUIRED
public static final String JSON_PROPERTY_RULE_TYPE
public static final String JSON_PROPERTY_SCOPE
public static final String JSON_PROPERTY_SOURCE
public static final String JSON_PROPERTY_TAG_KEY
public static final String JSON_PROPERTY_TAG_VALUE_PATTERNS
public TagRuleCreateAttributes()
public TagRuleCreateAttributes(String name, TagRuleCreateType ruleType, String scope, TagRuleSource source, String tagKey, List<String> tagValuePatterns)
public TagRuleCreateAttributes enabled(Boolean enabled)
@Nullable public Boolean getEnabled()
true for newly created rules.public void setEnabled(Boolean enabled)
public TagRuleCreateAttributes name(String name)
public String getName()
public void setName(String name)
public TagRuleCreateAttributes negated(Boolean negated)
@Nullable public Boolean getNegated()
true, the rule matches tag values that do NOT match any of the supplied
patterns. Defaults to false.public void setNegated(Boolean negated)
public TagRuleCreateAttributes required(Boolean required)
@Nullable public Boolean getRequired()
true, telemetry without this tag is treated as a violation. Defaults to
false.public void setRequired(Boolean required)
public TagRuleCreateAttributes ruleType(TagRuleCreateType ruleType)
public TagRuleCreateType getRuleType()
surfacing is accepted at
creation time.public void setRuleType(TagRuleCreateType ruleType)
public TagRuleCreateAttributes scope(String scope)
public String getScope()
public void setScope(String scope)
public TagRuleCreateAttributes source(TagRuleSource source)
public TagRuleSource getSource()
public void setSource(TagRuleSource source)
public TagRuleCreateAttributes tagKey(String tagKey)
public String getTagKey()
service).public void setTagKey(String tagKey)
public TagRuleCreateAttributes tagValuePatterns(List<String> tagValuePatterns)
public TagRuleCreateAttributes addTagValuePatternsItem(String tagValuePatternsItem)
public List<String> getTagValuePatterns()
public TagRuleCreateAttributes putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.