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 Details

  • Constructor Details

  • Method Details

    • createdAt

      public TagRuleAttributes createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      The RFC 3339 timestamp at which the rule was created.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • createdBy

      public TagRuleAttributes createdBy(String createdBy)
    • getCreatedBy

      public String getCreatedBy()
      The identifier of the user who created the rule.
      Returns:
      createdBy
    • setCreatedBy

      public void setCreatedBy(String createdBy)
    • deletedAt

      public TagRuleAttributes deletedAt(OffsetDateTime deletedAt)
    • getDeletedAt

      @Nullable public OffsetDateTime getDeletedAt()
      The RFC 3339 timestamp at which the rule was soft-deleted. null if the rule has not been deleted. Only present when include_deleted=true is requested.
      Returns:
      deletedAt
    • getDeletedAt_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getDeletedAt_JsonNullable()
    • setDeletedAt_JsonNullable

      public void setDeletedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> deletedAt)
    • setDeletedAt

      public void setDeletedAt(OffsetDateTime deletedAt)
    • deletedBy

      public TagRuleAttributes deletedBy(String deletedBy)
    • getDeletedBy

      @Nullable public String getDeletedBy()
      The identifier of the user who soft-deleted the rule. null if the rule has not been deleted.
      Returns:
      deletedBy
    • getDeletedBy_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getDeletedBy_JsonNullable()
    • setDeletedBy_JsonNullable

      public void setDeletedBy_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> deletedBy)
    • setDeletedBy

      public void setDeletedBy(String deletedBy)
    • enabled

      public TagRuleAttributes enabled(Boolean enabled)
    • getEnabled

      public Boolean getEnabled()
      Whether the rule is currently enforced.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • modifiedAt

      public TagRuleAttributes modifiedAt(OffsetDateTime modifiedAt)
    • getModifiedAt

      public OffsetDateTime getModifiedAt()
      The RFC 3339 timestamp at which the rule was last modified.
      Returns:
      modifiedAt
    • setModifiedAt

      public void setModifiedAt(OffsetDateTime modifiedAt)
    • modifiedBy

      public TagRuleAttributes modifiedBy(String modifiedBy)
    • getModifiedBy

      public String getModifiedBy()
      The identifier of the user who last modified the rule.
      Returns:
      modifiedBy
    • setModifiedBy

      public void setModifiedBy(String modifiedBy)
    • name

      public TagRuleAttributes name(String name)
    • getName

      public String getName()
      Human-readable name for the tag rule.
      Returns:
      name
    • setName

      public void setName(String name)
    • negated

      public TagRuleAttributes negated(Boolean negated)
    • getNegated

      public Boolean getNegated()
      When true, the rule matches tag values that do NOT match any of the supplied patterns.
      Returns:
      negated
    • setNegated

      public void setNegated(Boolean negated)
    • required

      public TagRuleAttributes required(Boolean required)
    • getRequired

      public Boolean getRequired()
      When true, telemetry without this tag is treated as a violation.
      Returns:
      required
    • setRequired

      public void setRequired(Boolean required)
    • ruleType

      public TagRuleAttributes ruleType(TagRuleType ruleType)
    • getRuleType

      public TagRuleType getRuleType()
      How the rule is enforced. blocking rejects telemetry that violates the rule. surfacing only highlights non-compliant telemetry without blocking it.
      Returns:
      ruleType
    • setRuleType

      public void setRuleType(TagRuleType ruleType)
    • scope

      public TagRuleAttributes scope(String scope)
    • getScope

      public String getScope()
      The scope the rule applies within.
      Returns:
      scope
    • setScope

      public void setScope(String scope)
    • source

      public TagRuleAttributes source(TagRuleSource source)
    • getSource

      public TagRuleSource getSource()
      The telemetry source that a tag rule applies to.
      Returns:
      source
    • setSource

      public void setSource(TagRuleSource source)
    • tagKey

      public TagRuleAttributes tagKey(String tagKey)
    • getTagKey

      public String getTagKey()
      The tag key that the rule governs.
      Returns:
      tagKey
    • setTagKey

      public void setTagKey(String tagKey)
    • tagValuePatterns

      public TagRuleAttributes tagValuePatterns(List<String> tagValuePatterns)
    • addTagValuePatternsItem

      public TagRuleAttributes addTagValuePatternsItem(String tagValuePatternsItem)
    • getTagValuePatterns

      public List<String> getTagValuePatterns()
      The patterns that valid values for the tag key must match.
      Returns:
      tagValuePatterns
    • setTagValuePatterns

      public void setTagValuePatterns(List<String> tagValuePatterns)
    • version

      public TagRuleAttributes version(Long version)
    • getVersion

      public Long getVersion()
      A monotonically increasing version counter that is incremented on each update.
      Returns:
      version
    • setVersion

      public void setVersion(Long version)
    • putAdditionalProperty

      public TagRuleAttributes putAdditionalProperty(String key, Object value)
      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 set
      value - The associated value
      Returns:
      TagRuleAttributes
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this TagRuleAttributes object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object