Udostępnij za pośrednictwem


StringNotContainsFilter Class

public final class StringNotContainsFilter
extends Filter

StringNotContains Filter.

Constructor Summary

Constructor Description
StringNotContainsFilter()

Creates an instance of StringNotContainsFilter class.

Method Summary

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

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

StringNotContainsFilter withKey(String key)

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

StringNotContainsFilter 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

StringNotContainsFilter

public StringNotContainsFilter()

Creates an instance of StringNotContainsFilter class.

Method Details

fromJson

public static StringNotContainsFilter fromJson(JsonReader jsonReader)

Reads an instance of StringNotContainsFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

operatorType

public FilterOperatorType operatorType()

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

Overrides:

StringNotContainsFilter.operatorType()

Returns:

the operatorType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StringNotContainsFilter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

StringNotContainsFilter.validate()

values

public List<String> values()

Get the values property: The set of filter values.

Returns:

the values value.

withKey

public StringNotContainsFilter withKey(String key)

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

Overrides:

StringNotContainsFilter.withKey(String key)

Parameters:

key

withValues

public StringNotContainsFilter withValues(List<String> values)

Set the values property: The set of filter values.

Parameters:

values - the values value to set.

Returns:

the StringNotContainsFilter object itself.

Applies to