Class TagRuleData

java.lang.Object
com.datadog.api.client.v2.model.TagRuleData

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TagRuleData extends Object
A tag rule resource.
  • Field Details

  • Constructor Details

  • Method Details

    • attributes

      public TagRuleData attributes(TagRuleAttributes attributes)
    • getAttributes

      public TagRuleAttributes getAttributes()
      The attributes of a tag rule resource.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(TagRuleAttributes attributes)
    • id

      public TagRuleData id(String id)
    • getId

      public String getId()
      The unique identifier of the tag rule.
      Returns:
      id
    • setId

      public void setId(String id)
    • relationships

      public TagRuleData relationships(TagRuleRelationships relationships)
    • getRelationships

      @Nullable public TagRuleRelationships getRelationships()
      Related resources for a tag rule. Only present when the corresponding include query parameter is supplied.
      Returns:
      relationships
    • setRelationships

      public void setRelationships(TagRuleRelationships relationships)
    • type

      public TagRuleData type(TagRuleResourceType type)
    • getType

      public TagRuleResourceType getType()
      JSON:API resource type for a tag rule.
      Returns:
      type
    • setType

      public void setType(TagRuleResourceType type)
    • putAdditionalProperty

      public TagRuleData 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:
      TagRuleData
    • 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 TagRuleData 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