Class IntervalsFilter
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.IntervalsFilter
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<IntervalsFilter.Kind,java.lang.Object>
@JsonpDeserializable public class IntervalsFilter extends java.lang.Object implements TaggedUnion<IntervalsFilter.Kind,java.lang.Object>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IntervalsFilter.Builder
static class
IntervalsFilter.Kind
IntervalsFilter
variant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<IntervalsFilter>
_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description IntervalsFilter(IntervalsFilterVariant value)
-
Method Summary
Modifier and Type Method Description java.lang.Object
_get()
IntervalsFilter.Kind
_kind()
Get the of the kind of variant held by this object.Intervals
after()
Get theafter
variant value.Intervals
before()
Get thebefore
variant value.Intervals
containedBy()
Get thecontained_by
variant value.Intervals
containing()
Get thecontaining
variant value.boolean
isAfter()
Is this variant instance of kindafter
?boolean
isBefore()
Is this variant instance of kindbefore
?boolean
isContainedBy()
Is this variant instance of kindcontained_by
?boolean
isContaining()
Is this variant instance of kindcontaining
?boolean
isNotContainedBy()
Is this variant instance of kindnot_contained_by
?boolean
isNotContaining()
Is this variant instance of kindnot_containing
?boolean
isNotOverlapping()
Is this variant instance of kindnot_overlapping
?boolean
isOverlapping()
Is this variant instance of kindoverlapping
?boolean
isScript()
Is this variant instance of kindscript
?Intervals
notContainedBy()
Get thenot_contained_by
variant value.Intervals
notContaining()
Get thenot_containing
variant value.Intervals
notOverlapping()
Get thenot_overlapping
variant value.static IntervalsFilter
of(java.util.function.Function<IntervalsFilter.Builder,ObjectBuilder<IntervalsFilter>> fn)
Intervals
overlapping()
Get theoverlapping
variant value.Script
script()
Get thescript
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupIntervalsFilterDeserializer(ObjectDeserializer<IntervalsFilter.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
IntervalsFilter
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<IntervalsFilter.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in interfaceTaggedUnion<IntervalsFilter.Kind,java.lang.Object>
-
of
public static IntervalsFilter of(java.util.function.Function<IntervalsFilter.Builder,ObjectBuilder<IntervalsFilter>> fn) -
isAfter
public boolean isAfter()Is this variant instance of kindafter
? -
after
Get theafter
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theafter
kind.
-
isBefore
public boolean isBefore()Is this variant instance of kindbefore
? -
before
Get thebefore
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebefore
kind.
-
isContainedBy
public boolean isContainedBy()Is this variant instance of kindcontained_by
? -
containedBy
Get thecontained_by
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecontained_by
kind.
-
isContaining
public boolean isContaining()Is this variant instance of kindcontaining
? -
containing
Get thecontaining
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecontaining
kind.
-
isNotContainedBy
public boolean isNotContainedBy()Is this variant instance of kindnot_contained_by
? -
notContainedBy
Get thenot_contained_by
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenot_contained_by
kind.
-
isNotContaining
public boolean isNotContaining()Is this variant instance of kindnot_containing
? -
notContaining
Get thenot_containing
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenot_containing
kind.
-
isNotOverlapping
public boolean isNotOverlapping()Is this variant instance of kindnot_overlapping
? -
notOverlapping
Get thenot_overlapping
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenot_overlapping
kind.
-
isOverlapping
public boolean isOverlapping()Is this variant instance of kindoverlapping
? -
overlapping
Get theoverlapping
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theoverlapping
kind.
-
isScript
public boolean isScript()Is this variant instance of kindscript
? -
script
Get thescript
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thescript
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupIntervalsFilterDeserializer
protected static void setupIntervalsFilterDeserializer(ObjectDeserializer<IntervalsFilter.Builder> op)
-