Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValueItem(String valueItem) booleanReturn true if this ConditionRequest object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The user or request attribute to evaluate.The operator used in a targeting condition.The ID of a saved filter to reference as this condition.getValue()Values used by the selected operator.inthashCode()operator(ConditionOperator operator) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.savedFilterId(UUID savedFilterId) voidsetAttribute(String attribute) voidsetOperator(ConditionOperator operator) voidsetSavedFilterId(UUID savedFilterId) voidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ATTRIBUTE
- See Also:
-
JSON_PROPERTY_OPERATOR
- See Also:
-
JSON_PROPERTY_SAVED_FILTER_ID
- See Also:
-
JSON_PROPERTY_VALUE
- See Also:
-
-
Constructor Details
-
ConditionRequest
public ConditionRequest()
-
-
Method Details
-
attribute
-
getAttribute
The user or request attribute to evaluate. Required for inline conditions; omit whensaved_filter_idis set.- Returns:
- attribute
-
setAttribute
-
operator
-
getOperator
The operator used in a targeting condition.- Returns:
- operator
-
setOperator
-
savedFilterId
-
getSavedFilterId
The ID of a saved filter to reference as this condition. Mutually exclusive withoperator,attribute, andvalue. When set, the saved filter's targeting rules are evaluated in place of an inline predicate.- Returns:
- savedFilterId
-
setSavedFilterId
-
value
-
addValueItem
-
getValue
Values used by the selected operator. Required for inline conditions; omit whensaved_filter_idis set.- Returns:
- value
-
setValue
-
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:
- ConditionRequest
-
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 ConditionRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-