AdvancedFilter Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. AdvancedFilter
- com.
Implements
public class AdvancedFilter
implements JsonSerializable<AdvancedFilter>
This is the base type that represents an advanced filter. To configure an advanced filter, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class such as BoolEqualsAdvancedFilter, NumberInAdvancedFilter, StringEqualsAdvancedFilter etc. depending on the type of the key based on which you want to filter.
Constructor Summary
| Constructor | Description |
|---|---|
| AdvancedFilter() |
Creates an instance of Advanced |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Advanced |
fromJson(JsonReader jsonReader)
Reads an instance of Advanced |
| String |
key()
Get the key property: The field/property in the event based on which you want to filter. |
|
Advanced |
operatorType()
Get the operator |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Advanced |
withKey(String key)
Set the key property: The field/property in the event based on which you want to filter. |
Methods inherited from java.lang.Object
Constructor Details
AdvancedFilter
public AdvancedFilter()
Creates an instance of AdvancedFilter class.
Method Details
fromJson
public static AdvancedFilter fromJson(JsonReader jsonReader)
Reads an instance of AdvancedFilter from the JsonReader.
Parameters:
Returns:
Throws:
key
public String key()
Get the key property: The field/property in the event based on which you want to filter.
Returns:
operatorType
public AdvancedFilterOperatorType operatorType()
Get the operatorType property: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.
Returns:
toJson
validate
public void validate()
Validates the instance.
withKey
public AdvancedFilter withKey(String key)
Set the key property: The field/property in the event based on which you want to filter.
Parameters:
Returns: