Class ConditionRequest

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ConditionRequest extends Object
Condition request payload for targeting rules. A condition is either an inline predicate with operator, attribute, and value, or a reference to a saved filter with saved_filter_id. The two shapes are mutually exclusive.
  • Field Details

  • Constructor Details

    • ConditionRequest

      public ConditionRequest()
  • Method Details

    • attribute

      public ConditionRequest attribute(String attribute)
    • getAttribute

      @Nullable public String getAttribute()
      The user or request attribute to evaluate. Required for inline conditions; omit when saved_filter_id is set.
      Returns:
      attribute
    • setAttribute

      public void setAttribute(String attribute)
    • operator

      public ConditionRequest operator(ConditionOperator operator)
    • getOperator

      @Nullable public ConditionOperator getOperator()
      The operator used in a targeting condition.
      Returns:
      operator
    • setOperator

      public void setOperator(ConditionOperator operator)
    • savedFilterId

      public ConditionRequest savedFilterId(UUID savedFilterId)
    • getSavedFilterId

      @Nullable public UUID getSavedFilterId()
      The ID of a saved filter to reference as this condition. Mutually exclusive with operator , attribute, and value. When set, the saved filter's targeting rules are evaluated in place of an inline predicate.
      Returns:
      savedFilterId
    • setSavedFilterId

      public void setSavedFilterId(UUID savedFilterId)
    • value

      public ConditionRequest value(List<String> value)
    • addValueItem

      public ConditionRequest addValueItem(String valueItem)
    • getValue

      @Nullable public List<String> getValue()
      Values used by the selected operator. Required for inline conditions; omit when saved_filter_id is set.
      Returns:
      value
    • setValue

      public void setValue(List<String> value)
    • putAdditionalProperty

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