@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TagPolicyUpdateAttributes extends Object
source of a policy cannot be changed.| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_ENABLED |
static String |
JSON_PROPERTY_NEGATED |
static String |
JSON_PROPERTY_POLICY_NAME |
static String |
JSON_PROPERTY_POLICY_TYPE |
static String |
JSON_PROPERTY_REQUIRED |
static String |
JSON_PROPERTY_SCOPE |
static String |
JSON_PROPERTY_TAG_KEY |
static String |
JSON_PROPERTY_TAG_VALUE_PATTERNS |
boolean |
unparsed |
| Constructor and Description |
|---|
TagPolicyUpdateAttributes() |
| Modifier and Type | Method and Description |
|---|---|
TagPolicyUpdateAttributes |
addTagValuePatternsItem(String tagValuePatternsItem) |
TagPolicyUpdateAttributes |
enabled(Boolean enabled) |
boolean |
equals(Object o)
Return true if this TagPolicyUpdateAttributes 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 policy is currently enforced.
|
Boolean |
getNegated()
When
true, the policy matches tag values that do NOT match any of the supplied
patterns. |
String |
getPolicyName()
Human-readable name for the tag policy.
|
TagPolicyType |
getPolicyType()
How the policy is enforced.
|
Boolean |
getRequired()
When
true, telemetry without this tag is treated as a violation. |
String |
getScope()
The scope the policy applies within.
|
String |
getTagKey()
The tag key that the policy governs.
|
List<String> |
getTagValuePatterns()
One or more patterns that valid values for the tag key must match.
|
int |
hashCode() |
TagPolicyUpdateAttributes |
negated(Boolean negated) |
TagPolicyUpdateAttributes |
policyName(String policyName) |
TagPolicyUpdateAttributes |
policyType(TagPolicyType policyType) |
TagPolicyUpdateAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
TagPolicyUpdateAttributes |
required(Boolean required) |
TagPolicyUpdateAttributes |
scope(String scope) |
void |
setEnabled(Boolean enabled) |
void |
setNegated(Boolean negated) |
void |
setPolicyName(String policyName) |
void |
setPolicyType(TagPolicyType policyType) |
void |
setRequired(Boolean required) |
void |
setScope(String scope) |
void |
setTagKey(String tagKey) |
void |
setTagValuePatterns(List<String> tagValuePatterns) |
TagPolicyUpdateAttributes |
tagKey(String tagKey) |
TagPolicyUpdateAttributes |
tagValuePatterns(List<String> tagValuePatterns) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_NEGATED
public static final String JSON_PROPERTY_POLICY_NAME
public static final String JSON_PROPERTY_POLICY_TYPE
public static final String JSON_PROPERTY_REQUIRED
public static final String JSON_PROPERTY_SCOPE
public static final String JSON_PROPERTY_TAG_KEY
public static final String JSON_PROPERTY_TAG_VALUE_PATTERNS
public TagPolicyUpdateAttributes enabled(Boolean enabled)
@Nullable public Boolean getEnabled()
public void setEnabled(Boolean enabled)
public TagPolicyUpdateAttributes negated(Boolean negated)
@Nullable public Boolean getNegated()
true, the policy matches tag values that do NOT match any of the supplied
patterns.public void setNegated(Boolean negated)
public TagPolicyUpdateAttributes policyName(String policyName)
@Nullable public String getPolicyName()
public void setPolicyName(String policyName)
public TagPolicyUpdateAttributes policyType(TagPolicyType policyType)
@Nullable public TagPolicyType getPolicyType()
blocking rejects telemetry that violates the policy.
surfacing only highlights non-compliant telemetry without blocking it.public void setPolicyType(TagPolicyType policyType)
public TagPolicyUpdateAttributes required(Boolean required)
@Nullable public Boolean getRequired()
true, telemetry without this tag is treated as a violation.public void setRequired(Boolean required)
public TagPolicyUpdateAttributes scope(String scope)
@Nullable public String getScope()
public void setScope(String scope)
public TagPolicyUpdateAttributes tagKey(String tagKey)
@Nullable public String getTagKey()
public void setTagKey(String tagKey)
public TagPolicyUpdateAttributes tagValuePatterns(List<String> tagValuePatterns)
public TagPolicyUpdateAttributes addTagValuePatternsItem(String tagValuePatternsItem)
@Nullable public List<String> getTagValuePatterns()
public TagPolicyUpdateAttributes 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.