Udostępnij za pośrednictwem


StringEndsWithFilter Class

public final class StringEndsWithFilter
extends Filter

StringEndsWith Filter.

Constructor Summary

Constructor Description
StringEndsWithFilter()

Creates an instance of StringEndsWithFilter class.

Method Summary

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

Reads an instance of StringEndsWithFilter 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.

StringEndsWithFilter withKey(String key)

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

StringEndsWithFilter 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

StringEndsWithFilter

public StringEndsWithFilter()

Creates an instance of StringEndsWithFilter class.

Method Details

fromJson

public static StringEndsWithFilter fromJson(JsonReader jsonReader)

Reads an instance of StringEndsWithFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

operatorType

public FilterOperatorType operatorType()

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

Overrides:

StringEndsWithFilter.operatorType()

Returns:

the operatorType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StringEndsWithFilter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

StringEndsWithFilter.validate()

values

public List<String> values()

Get the values property: The set of filter values.

Returns:

the values value.

withKey

public StringEndsWithFilter withKey(String key)

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

Overrides:

StringEndsWithFilter.withKey(String key)

Parameters:

key

withValues

public StringEndsWithFilter withValues(List<String> values)

Set the values property: The set of filter values.

Parameters:

values - the values value to set.

Returns:

the StringEndsWithFilter object itself.

Applies to