Udostępnij za pośrednictwem


StringInAdvancedFilter Class

public final class StringInAdvancedFilter
extends AdvancedFilter

StringIn Advanced Filter.

Constructor Summary

Constructor Description
StringInAdvancedFilter()

Creates an instance of StringInAdvancedFilter class.

Method Summary

Modifier and Type Method and Description
static StringInAdvancedFilter fromJson(JsonReader jsonReader)

Reads an instance of StringInAdvancedFilter from the JsonReader.

AdvancedFilterOperatorType operatorType()

Get the operatorType property: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<String> values()

Get the values property: The set of filter values.

StringInAdvancedFilter withKey(String key)

Set the key property: The field/property in the event based on which you want to filter.

StringInAdvancedFilter withValues(List<String> values)

Set the values property: The set of filter values.

Methods inherited from AdvancedFilter

Methods inherited from java.lang.Object

Constructor Details

StringInAdvancedFilter

public StringInAdvancedFilter()

Creates an instance of StringInAdvancedFilter class.

Method Details

fromJson

public static StringInAdvancedFilter fromJson(JsonReader jsonReader)

Reads an instance of StringInAdvancedFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StringInAdvancedFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the StringInAdvancedFilter.

operatorType

public AdvancedFilterOperatorType operatorType()

Get the operatorType property: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.

Overrides:

StringInAdvancedFilter.operatorType()

Returns:

the operatorType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StringInAdvancedFilter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

StringInAdvancedFilter.validate()

values

public List<String> values()

Get the values property: The set of filter values.

Returns:

the values value.

withKey

public StringInAdvancedFilter withKey(String key)

Set the key property: The field/property in the event based on which you want to filter.

Overrides:

StringInAdvancedFilter.withKey(String key)

Parameters:

key

withValues

public StringInAdvancedFilter withValues(List<String> values)

Set the values property: The set of filter values.

Parameters:

values - the values value to set.

Returns:

the StringInAdvancedFilter object itself.

Applies to