Udostępnij za pośrednictwem


StringNotInFilter Class

public final class StringNotInFilter
extends Filter

StringNotIn Filter.

Constructor Summary

Constructor Description
StringNotInFilter()

Creates an instance of StringNotInFilter class.

Method Summary

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

Reads an instance of StringNotInFilter from the JsonReader.

FilterOperatorType 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.

StringNotInFilter withKey(String key)

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

StringNotInFilter withValues(List<String> values)

Set the values property: The set of filter values.

Methods inherited from Filter

Methods inherited from java.lang.Object

Constructor Details

StringNotInFilter

public StringNotInFilter()

Creates an instance of StringNotInFilter class.

Method Details

fromJson

public static StringNotInFilter fromJson(JsonReader jsonReader)

Reads an instance of StringNotInFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StringNotInFilter 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 StringNotInFilter.

operatorType

public FilterOperatorType operatorType()

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

Overrides:

StringNotInFilter.operatorType()

Returns:

the operatorType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StringNotInFilter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

StringNotInFilter.validate()

values

public List<String> values()

Get the values property: The set of filter values.

Returns:

the values value.

withKey

public StringNotInFilter withKey(String key)

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

Overrides:

StringNotInFilter.withKey(String key)

Parameters:

key

withValues

public StringNotInFilter withValues(List<String> values)

Set the values property: The set of filter values.

Parameters:

values - the values value to set.

Returns:

the StringNotInFilter object itself.

Applies to