@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TagPolicyAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CREATED_AT |
static String |
JSON_PROPERTY_CREATED_BY |
static String |
JSON_PROPERTY_DELETED_AT |
static String |
JSON_PROPERTY_DELETED_BY |
static String |
JSON_PROPERTY_ENABLED |
static String |
JSON_PROPERTY_MODIFIED_AT |
static String |
JSON_PROPERTY_MODIFIED_BY |
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 |
static String |
JSON_PROPERTY_VERSION |
boolean |
unparsed |
| Constructor and Description |
|---|
TagPolicyAttributes() |
TagPolicyAttributes(OffsetDateTime createdAt,
String createdBy,
Boolean enabled,
OffsetDateTime modifiedAt,
String modifiedBy,
Boolean negated,
String policyName,
TagPolicyType policyType,
Boolean required,
String scope,
TagPolicySource source,
String tagKey,
List<String> tagValuePatterns,
Long version) |
| Modifier and Type | Method and Description |
|---|---|
TagPolicyAttributes |
addTagValuePatternsItem(String tagValuePatternsItem) |
TagPolicyAttributes |
createdAt(OffsetDateTime createdAt) |
TagPolicyAttributes |
createdBy(String createdBy) |
TagPolicyAttributes |
deletedAt(OffsetDateTime deletedAt) |
TagPolicyAttributes |
deletedBy(String deletedBy) |
TagPolicyAttributes |
enabled(Boolean enabled) |
boolean |
equals(Object o)
Return true if this TagPolicyAttributes 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.
|
OffsetDateTime |
getCreatedAt()
The RFC 3339 timestamp at which the policy was created.
|
String |
getCreatedBy()
The identifier of the user who created the policy.
|
org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> |
getDeletedAt_JsonNullable() |
OffsetDateTime |
getDeletedAt()
The RFC 3339 timestamp at which the policy was soft-deleted.
|
org.openapitools.jackson.nullable.JsonNullable<String> |
getDeletedBy_JsonNullable() |
String |
getDeletedBy()
The identifier of the user who soft-deleted the policy.
|
Boolean |
getEnabled()
Whether the policy is currently enforced.
|
OffsetDateTime |
getModifiedAt()
The RFC 3339 timestamp at which the policy was last modified.
|
String |
getModifiedBy()
The identifier of the user who last modified the policy.
|
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.
|
TagPolicySource |
getSource()
The telemetry source that a tag policy applies to.
|
String |
getTagKey()
The tag key that the policy governs.
|
List<String> |
getTagValuePatterns()
The patterns that valid values for the tag key must match.
|
Long |
getVersion()
A monotonically increasing version counter that is incremented on each update.
|
int |
hashCode() |
TagPolicyAttributes |
modifiedAt(OffsetDateTime modifiedAt) |
TagPolicyAttributes |
modifiedBy(String modifiedBy) |
TagPolicyAttributes |
negated(Boolean negated) |
TagPolicyAttributes |
policyName(String policyName) |
TagPolicyAttributes |
policyType(TagPolicyType policyType) |
TagPolicyAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
TagPolicyAttributes |
required(Boolean required) |
TagPolicyAttributes |
scope(String scope) |
void |
setCreatedAt(OffsetDateTime createdAt) |
void |
setCreatedBy(String createdBy) |
void |
setDeletedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> deletedAt) |
void |
setDeletedAt(OffsetDateTime deletedAt) |
void |
setDeletedBy_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> deletedBy) |
void |
setDeletedBy(String deletedBy) |
void |
setEnabled(Boolean enabled) |
void |
setModifiedAt(OffsetDateTime modifiedAt) |
void |
setModifiedBy(String modifiedBy) |
void |
setNegated(Boolean negated) |
void |
setPolicyName(String policyName) |
void |
setPolicyType(TagPolicyType policyType) |
void |
setRequired(Boolean required) |
void |
setScope(String scope) |
void |
setSource(TagPolicySource source) |
void |
setTagKey(String tagKey) |
void |
setTagValuePatterns(List<String> tagValuePatterns) |
void |
setVersion(Long version) |
TagPolicyAttributes |
source(TagPolicySource source) |
TagPolicyAttributes |
tagKey(String tagKey) |
TagPolicyAttributes |
tagValuePatterns(List<String> tagValuePatterns) |
String |
toString() |
TagPolicyAttributes |
version(Long version) |
public boolean unparsed
public static final String JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_BY
public static final String JSON_PROPERTY_DELETED_AT
public static final String JSON_PROPERTY_DELETED_BY
public static final String JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_MODIFIED_AT
public static final String JSON_PROPERTY_MODIFIED_BY
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 static final String JSON_PROPERTY_VERSION
public TagPolicyAttributes()
public TagPolicyAttributes(OffsetDateTime createdAt, String createdBy, Boolean enabled, OffsetDateTime modifiedAt, String modifiedBy, Boolean negated, String policyName, TagPolicyType policyType, Boolean required, String scope, TagPolicySource source, String tagKey, List<String> tagValuePatterns, Long version)
public TagPolicyAttributes createdAt(OffsetDateTime createdAt)
public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public TagPolicyAttributes createdBy(String createdBy)
public String getCreatedBy()
public void setCreatedBy(String createdBy)
public TagPolicyAttributes deletedAt(OffsetDateTime deletedAt)
@Nullable public OffsetDateTime getDeletedAt()
null if the policy
has not been deleted. Only present when include_deleted=true is requested.public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getDeletedAt_JsonNullable()
public void setDeletedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> deletedAt)
public void setDeletedAt(OffsetDateTime deletedAt)
public TagPolicyAttributes deletedBy(String deletedBy)
@Nullable public String getDeletedBy()
null if the policy has not
been deleted.public org.openapitools.jackson.nullable.JsonNullable<String> getDeletedBy_JsonNullable()
public void setDeletedBy_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> deletedBy)
public void setDeletedBy(String deletedBy)
public TagPolicyAttributes enabled(Boolean enabled)
public Boolean getEnabled()
public void setEnabled(Boolean enabled)
public TagPolicyAttributes modifiedAt(OffsetDateTime modifiedAt)
public OffsetDateTime getModifiedAt()
public void setModifiedAt(OffsetDateTime modifiedAt)
public TagPolicyAttributes modifiedBy(String modifiedBy)
public String getModifiedBy()
public void setModifiedBy(String modifiedBy)
public TagPolicyAttributes negated(Boolean negated)
public Boolean getNegated()
true, the policy matches tag values that do NOT match any of the supplied
patterns.public void setNegated(Boolean negated)
public TagPolicyAttributes policyName(String policyName)
public String getPolicyName()
public void setPolicyName(String policyName)
public TagPolicyAttributes policyType(TagPolicyType policyType)
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 TagPolicyAttributes required(Boolean required)
public Boolean getRequired()
true, telemetry without this tag is treated as a violation.public void setRequired(Boolean required)
public TagPolicyAttributes scope(String scope)
public String getScope()
public void setScope(String scope)
public TagPolicyAttributes source(TagPolicySource source)
public TagPolicySource getSource()
public void setSource(TagPolicySource source)
public TagPolicyAttributes tagKey(String tagKey)
public String getTagKey()
public void setTagKey(String tagKey)
public TagPolicyAttributes tagValuePatterns(List<String> tagValuePatterns)
public TagPolicyAttributes addTagValuePatternsItem(String tagValuePatternsItem)
public List<String> getTagValuePatterns()
public TagPolicyAttributes version(Long version)
public Long getVersion()
public void setVersion(Long version)
public TagPolicyAttributes 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.