Udostępnij za pośrednictwem


StringContainsFilter Class

public final class StringContainsFilter
extends Filter

StringContains Filter.

Constructor Summary

Constructor Description
StringContainsFilter()

Creates an instance of StringContainsFilter class.

Method Summary

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

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

StringContainsFilter withKey(String key)

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

StringContainsFilter 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

StringContainsFilter

public StringContainsFilter()

Creates an instance of StringContainsFilter class.

Method Details

fromJson

public static StringContainsFilter fromJson(JsonReader jsonReader)

Reads an instance of StringContainsFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

operatorType

public FilterOperatorType operatorType()

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

Overrides:

StringContainsFilter.operatorType()

Returns:

the operatorType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StringContainsFilter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

StringContainsFilter.validate()

values

public List<String> values()

Get the values property: The set of filter values.

Returns:

the values value.

withKey

public StringContainsFilter withKey(String key)

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

Overrides:

StringContainsFilter.withKey(String key)

Parameters:

key

withValues

public StringContainsFilter withValues(List<String> values)

Set the values property: The set of filter values.

Parameters:

values - the values value to set.

Returns:

the StringContainsFilter object itself.

Applies to