Udostępnij za pośrednictwem


BoolEqualsAdvancedFilter Class

public final class BoolEqualsAdvancedFilter
extends AdvancedFilter

BoolEquals Advanced Filter.

Constructor Summary

Constructor Description
BoolEqualsAdvancedFilter()

Creates an instance of BoolEqualsAdvancedFilter class.

Method Summary

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

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

Boolean value()

Get the value property: The boolean filter value.

BoolEqualsAdvancedFilter withKey(String key)

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

BoolEqualsAdvancedFilter withValue(Boolean value)

Set the value property: The boolean filter value.

Methods inherited from AdvancedFilter

Methods inherited from java.lang.Object

Constructor Details

BoolEqualsAdvancedFilter

public BoolEqualsAdvancedFilter()

Creates an instance of BoolEqualsAdvancedFilter class.

Method Details

fromJson

public static BoolEqualsAdvancedFilter fromJson(JsonReader jsonReader)

Reads an instance of BoolEqualsAdvancedFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

operatorType

public AdvancedFilterOperatorType operatorType()

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

Overrides:

BoolEqualsAdvancedFilter.operatorType()

Returns:

the operatorType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BoolEqualsAdvancedFilter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

BoolEqualsAdvancedFilter.validate()

value

public Boolean value()

Get the value property: The boolean filter value.

Returns:

the value value.

withKey

public BoolEqualsAdvancedFilter withKey(String key)

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

Overrides:

BoolEqualsAdvancedFilter.withKey(String key)

Parameters:

key

withValue

public BoolEqualsAdvancedFilter withValue(Boolean value)

Set the value property: The boolean filter value.

Parameters:

value - the value value to set.

Returns:

the BoolEqualsAdvancedFilter object itself.

Applies to