@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class Condition extends Object
operator
, attribute, and value, or a reference to a saved filter with
saved_filter_id. The inline fields are omitted for saved-filter references.| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_ATTRIBUTE |
static String |
JSON_PROPERTY_CREATED_AT |
static String |
JSON_PROPERTY_ID |
static String |
JSON_PROPERTY_OPERATOR |
static String |
JSON_PROPERTY_SAVED_FILTER_ID |
static String |
JSON_PROPERTY_UPDATED_AT |
static String |
JSON_PROPERTY_VALUE |
boolean |
unparsed |
| Constructor and Description |
|---|
Condition() |
Condition(OffsetDateTime createdAt,
UUID id,
OffsetDateTime updatedAt) |
| Modifier and Type | Method and Description |
|---|---|
Condition |
addValueItem(String valueItem) |
Condition |
attribute(String attribute) |
Condition |
createdAt(OffsetDateTime createdAt) |
boolean |
equals(Object o)
Return true if this Condition object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getAttribute()
The user or request attribute to evaluate.
|
OffsetDateTime |
getCreatedAt()
The timestamp when the condition was created.
|
UUID |
getId()
The unique identifier of the condition.
|
ConditionOperator |
getOperator()
The operator used in a targeting condition.
|
org.openapitools.jackson.nullable.JsonNullable<UUID> |
getSavedFilterId_JsonNullable() |
UUID |
getSavedFilterId()
The ID of the saved filter referenced by this condition, or null for inline conditions.
|
OffsetDateTime |
getUpdatedAt()
The timestamp when the condition was last updated.
|
List<String> |
getValue()
Values used by the selected operator.
|
int |
hashCode() |
Condition |
id(UUID id) |
Condition |
operator(ConditionOperator operator) |
Condition |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
Condition |
savedFilterId(UUID savedFilterId) |
void |
setAttribute(String attribute) |
void |
setCreatedAt(OffsetDateTime createdAt) |
void |
setId(UUID id) |
void |
setOperator(ConditionOperator operator) |
void |
setSavedFilterId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<UUID> savedFilterId) |
void |
setSavedFilterId(UUID savedFilterId) |
void |
setUpdatedAt(OffsetDateTime updatedAt) |
void |
setValue(List<String> value) |
String |
toString() |
Condition |
updatedAt(OffsetDateTime updatedAt) |
Condition |
value(List<String> value) |
public boolean unparsed
public static final String JSON_PROPERTY_ATTRIBUTE
public static final String JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_ID
public static final String JSON_PROPERTY_OPERATOR
public static final String JSON_PROPERTY_SAVED_FILTER_ID
public static final String JSON_PROPERTY_UPDATED_AT
public static final String JSON_PROPERTY_VALUE
public Condition()
public Condition(OffsetDateTime createdAt, UUID id, OffsetDateTime updatedAt)
@Nullable public String getAttribute()
public void setAttribute(String attribute)
public Condition createdAt(OffsetDateTime createdAt)
public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public UUID getId()
public void setId(UUID id)
public Condition operator(ConditionOperator operator)
@Nullable public ConditionOperator getOperator()
public void setOperator(ConditionOperator operator)
@Nullable public UUID getSavedFilterId()
public org.openapitools.jackson.nullable.JsonNullable<UUID> getSavedFilterId_JsonNullable()
public void setSavedFilterId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<UUID> savedFilterId)
public void setSavedFilterId(UUID savedFilterId)
public Condition updatedAt(OffsetDateTime updatedAt)
public OffsetDateTime getUpdatedAt()
public void setUpdatedAt(OffsetDateTime updatedAt)
@Nullable public List<String> getValue()
public Condition putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.