Class AdvancedFilter
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.AdvancedFilter
-
- Direct Known Subclasses:
BoolEqualsAdvancedFilter,IsNotNullAdvancedFilter,IsNullOrUndefinedAdvancedFilter,NumberGreaterThanAdvancedFilter,NumberGreaterThanOrEqualsAdvancedFilter,NumberInAdvancedFilter,NumberInRangeAdvancedFilter,NumberLessThanAdvancedFilter,NumberLessThanOrEqualsAdvancedFilter,NumberNotInAdvancedFilter,NumberNotInRangeAdvancedFilter,StringBeginsWithAdvancedFilter,StringContainsAdvancedFilter,StringEndsWithAdvancedFilter,StringInAdvancedFilter,StringNotBeginsWithAdvancedFilter,StringNotContainsAdvancedFilter,StringNotEndsWithAdvancedFilter,StringNotInAdvancedFilter
public class AdvancedFilter extends Object
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
Constructors Constructor Description AdvancedFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringkey()Get the key property: The field/property in the event based on which you want to filter.voidvalidate()Validates the instance.AdvancedFilterwithKey(String key)Set the key property: The field/property in the event based on which you want to filter.
-
-
-
Method Detail
-
key
public String key()
Get the key property: The field/property in the event based on which you want to filter.- Returns:
- the key value.
-
withKey
public AdvancedFilter withKey(String key)
Set the key property: The field/property in the event based on which you want to filter.- Parameters:
key- the key value to set.- Returns:
- the AdvancedFilter object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-