Package com.datadog.api.client.v2.model
Class Condition
java.lang.Object
com.datadog.api.client.v2.model.Condition
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class Condition
extends Object
Targeting condition details. A condition is either an inline predicate with
operator
, attribute, and value, or a reference to a saved filter with
saved_filter_id. The inline fields are omitted for saved-filter references.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValueItem(String valueItem) createdAt(OffsetDateTime createdAt) booleanReturn true if this Condition 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 timestamp when the condition was created.getId()The unique identifier of the condition.The operator used in a targeting condition.The ID of the saved filter referenced by this condition, or null for inline conditions.org.openapitools.jackson.nullable.JsonNullable<UUID>The timestamp when the condition was last updated.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) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetOperator(ConditionOperator operator) voidsetSavedFilterId(UUID savedFilterId) voidsetSavedFilterId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<UUID> savedFilterId) voidsetUpdatedAt(OffsetDateTime updatedAt) voidtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ATTRIBUTE
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_OPERATOR
- See Also:
-
JSON_PROPERTY_SAVED_FILTER_ID
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
JSON_PROPERTY_VALUE
- See Also:
-
-
Constructor Details
-
Condition
public Condition() -
Condition
-
-
Method Details
-
attribute
-
getAttribute
The user or request attribute to evaluate. Omitted for saved-filter references.- Returns:
- attribute
-
setAttribute
-
createdAt
-
getCreatedAt
The timestamp when the condition was created.- Returns:
- createdAt
-
setCreatedAt
-
id
-
getId
The unique identifier of the condition.- Returns:
- id
-
setId
-
operator
-
getOperator
The operator used in a targeting condition.- Returns:
- operator
-
setOperator
-
savedFilterId
-
getSavedFilterId
The ID of the saved filter referenced by this condition, or null for inline conditions.- Returns:
- savedFilterId
-
getSavedFilterId_JsonNullable
-
setSavedFilterId_JsonNullable
public void setSavedFilterId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<UUID> savedFilterId) -
setSavedFilterId
-
updatedAt
-
getUpdatedAt
The timestamp when the condition was last updated.- Returns:
- updatedAt
-
setUpdatedAt
-
value
-
addValueItem
-
getValue
Values used by the selected operator. Omitted for saved-filter references.- 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:
- Condition
-
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 Condition object is equal to o. -
hashCode
public int hashCode() -
toString
-