Package com.datadog.api.client.v2.model
Class TagRuleAttributes
java.lang.Object
com.datadog.api.client.v2.model.TagRuleAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class TagRuleAttributes
extends Object
The attributes of a tag rule resource.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionTagRuleAttributes(OffsetDateTime createdAt, String createdBy, Boolean enabled, OffsetDateTime modifiedAt, String modifiedBy, String name, Boolean negated, Boolean required, TagRuleType ruleType, String scope, TagRuleSource source, String tagKey, List<String> tagValuePatterns, Long version) -
Method Summary
Modifier and TypeMethodDescriptionaddTagValuePatternsItem(String tagValuePatternsItem) createdAt(OffsetDateTime createdAt) deletedAt(OffsetDateTime deletedAt) booleanReturn true if this TagRuleAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The RFC 3339 timestamp at which the rule was created.The identifier of the user who created the rule.The RFC 3339 timestamp at which the rule was soft-deleted.org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime>The identifier of the user who soft-deleted the rule.org.openapitools.jackson.nullable.JsonNullable<String>Whether the rule is currently enforced.The RFC 3339 timestamp at which the rule was last modified.The identifier of the user who last modified the rule.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.How the rule is enforced.getScope()The scope the rule applies within.The telemetry source that a tag rule applies to.The tag key that the rule governs.The patterns that valid values for the tag key must match.A monotonically increasing version counter that is incremented on each update.inthashCode()modifiedAt(OffsetDateTime modifiedAt) modifiedBy(String modifiedBy) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.ruleType(TagRuleType ruleType) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(String createdBy) voidsetDeletedAt(OffsetDateTime deletedAt) voidsetDeletedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> deletedAt) voidsetDeletedBy(String deletedBy) voidsetDeletedBy_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> deletedBy) voidsetEnabled(Boolean enabled) voidsetModifiedAt(OffsetDateTime modifiedAt) voidsetModifiedBy(String modifiedBy) voidvoidsetNegated(Boolean negated) voidsetRequired(Boolean required) voidsetRuleType(TagRuleType ruleType) voidvoidsetSource(TagRuleSource source) voidvoidsetTagValuePatterns(List<String> tagValuePatterns) voidsetVersion(Long version) source(TagRuleSource source) tagValuePatterns(List<String> tagValuePatterns) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CREATED_BY
- See Also:
-
JSON_PROPERTY_DELETED_AT
- See Also:
-
JSON_PROPERTY_DELETED_BY
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_MODIFIED_AT
- See Also:
-
JSON_PROPERTY_MODIFIED_BY
- 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:
-
JSON_PROPERTY_VERSION
- See Also:
-
-
Constructor Details
-
TagRuleAttributes
public TagRuleAttributes() -
TagRuleAttributes
public TagRuleAttributes(OffsetDateTime createdAt, String createdBy, Boolean enabled, OffsetDateTime modifiedAt, String modifiedBy, String name, Boolean negated, Boolean required, TagRuleType ruleType, String scope, TagRuleSource source, String tagKey, List<String> tagValuePatterns, Long version)
-
-
Method Details
-
createdAt
-
getCreatedAt
The RFC 3339 timestamp at which the rule was created.- Returns:
- createdAt
-
setCreatedAt
-
createdBy
-
getCreatedBy
The identifier of the user who created the rule.- Returns:
- createdBy
-
setCreatedBy
-
deletedAt
-
getDeletedAt
The RFC 3339 timestamp at which the rule was soft-deleted.nullif the rule has not been deleted. Only present wheninclude_deleted=trueis requested.- Returns:
- deletedAt
-
getDeletedAt_JsonNullable
-
setDeletedAt_JsonNullable
public void setDeletedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> deletedAt) -
setDeletedAt
-
deletedBy
-
getDeletedBy
The identifier of the user who soft-deleted the rule.nullif the rule has not been deleted.- Returns:
- deletedBy
-
getDeletedBy_JsonNullable
-
setDeletedBy_JsonNullable
public void setDeletedBy_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> deletedBy) -
setDeletedBy
-
enabled
-
getEnabled
Whether the rule is currently enforced.- Returns:
- enabled
-
setEnabled
-
modifiedAt
-
getModifiedAt
The RFC 3339 timestamp at which the rule was last modified.- Returns:
- modifiedAt
-
setModifiedAt
-
modifiedBy
-
getModifiedBy
The identifier of the user who last modified the rule.- Returns:
- modifiedBy
-
setModifiedBy
-
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.- Returns:
- negated
-
setNegated
-
required
-
getRequired
Whentrue, telemetry without this tag is treated as a violation.- Returns:
- required
-
setRequired
-
ruleType
-
getRuleType
How the rule is enforced.blockingrejects telemetry that violates the rule.surfacingonly highlights non-compliant telemetry without blocking it.- Returns:
- ruleType
-
setRuleType
-
scope
-
getScope
The scope the rule applies within.- 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.- Returns:
- tagKey
-
setTagKey
-
tagValuePatterns
-
addTagValuePatternsItem
-
getTagValuePatterns
The patterns that valid values for the tag key must match.- Returns:
- tagValuePatterns
-
setTagValuePatterns
-
version
-
getVersion
A monotonically increasing version counter that is incremented on each update.- Returns:
- version
-
setVersion
-
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:
- TagRuleAttributes
-
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 TagRuleAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-