@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TagPolicyCreateAttributes extends Object
| 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_SOURCE |
static String |
JSON_PROPERTY_TAG_KEY |
static String |
JSON_PROPERTY_TAG_VALUE_PATTERNS |
boolean |
unparsed |
| Constructor and Description |
|---|
TagPolicyCreateAttributes() |
TagPolicyCreateAttributes(String policyName,
TagPolicyCreateType policyType,
String scope,
TagPolicySource source,
String tagKey,
List<String> tagValuePatterns) |
| Modifier and Type | Method and Description |
|---|---|
TagPolicyCreateAttributes |
addTagValuePatternsItem(String tagValuePatternsItem) |
TagPolicyCreateAttributes |
enabled(Boolean enabled) |
boolean |
equals(Object o)
Return true if this TagPolicyCreateAttributes 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.
|
TagPolicyCreateType |
getPolicyType()
The policy type allowed when creating a tag policy.
|
Boolean |
getRequired()
When
true, telemetry without this tag is treated as a violation. |
String |
getScope()
The scope the policy applies within.
|
TagPolicySource |
getSource()
The telemetry source that a tag policy applies to.
|
String |
getTagKey()
The tag key that the policy governs (for example,
service). |
List<String> |
getTagValuePatterns()
One or more patterns that valid values for the tag key must match.
|
int |
hashCode() |
TagPolicyCreateAttributes |
negated(Boolean negated) |
TagPolicyCreateAttributes |
policyName(String policyName) |
TagPolicyCreateAttributes |
policyType(TagPolicyCreateType policyType) |
TagPolicyCreateAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
TagPolicyCreateAttributes |
required(Boolean required) |
TagPolicyCreateAttributes |
scope(String scope) |
void |
setEnabled(Boolean enabled) |
void |
setNegated(Boolean negated) |
void |
setPolicyName(String policyName) |
void |
setPolicyType(TagPolicyCreateType policyType) |
void |
setRequired(Boolean required) |
void |
setScope(String scope) |
void |
setSource(TagPolicySource source) |
void |
setTagKey(String tagKey) |
void |
setTagValuePatterns(List<String> tagValuePatterns) |
TagPolicyCreateAttributes |
source(TagPolicySource source) |
TagPolicyCreateAttributes |
tagKey(String tagKey) |
TagPolicyCreateAttributes |
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_SOURCE
public static final String JSON_PROPERTY_TAG_KEY
public static final String JSON_PROPERTY_TAG_VALUE_PATTERNS
public TagPolicyCreateAttributes()
public TagPolicyCreateAttributes(String policyName, TagPolicyCreateType policyType, String scope, TagPolicySource source, String tagKey, List<String> tagValuePatterns)
public TagPolicyCreateAttributes enabled(Boolean enabled)
@Nullable public Boolean getEnabled()
true for newly created
policies.public void setEnabled(Boolean enabled)
public TagPolicyCreateAttributes negated(Boolean negated)
@Nullable public Boolean getNegated()
true, the policy matches tag values that do NOT match any of the supplied
patterns. Defaults to false.public void setNegated(Boolean negated)
public TagPolicyCreateAttributes policyName(String policyName)
public String getPolicyName()
public void setPolicyName(String policyName)
public TagPolicyCreateAttributes policyType(TagPolicyCreateType policyType)
public TagPolicyCreateType getPolicyType()
surfacing is accepted at
creation time.public void setPolicyType(TagPolicyCreateType policyType)
public TagPolicyCreateAttributes 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 TagPolicyCreateAttributes scope(String scope)
public String getScope()
public void setScope(String scope)
public TagPolicyCreateAttributes source(TagPolicySource source)
public TagPolicySource getSource()
public void setSource(TagPolicySource source)
public TagPolicyCreateAttributes tagKey(String tagKey)
public String getTagKey()
service).public void setTagKey(String tagKey)
public TagPolicyCreateAttributes tagValuePatterns(List<String> tagValuePatterns)
public TagPolicyCreateAttributes addTagValuePatternsItem(String tagValuePatternsItem)
public List<String> getTagValuePatterns()
public TagPolicyCreateAttributes 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.