Class IntervalsFilter
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.IntervalsFilter
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<IntervalsFilter.Kind,
Object>
@JsonpDeserializable
public class IntervalsFilter
extends Object
implements TaggedUnion<IntervalsFilter.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final IntervalsFilter.Kind
_kind()
Get the of the kind of variant held by this object.after()
Get theafter
variant value.before()
Get thebefore
variant value.Get thecontained_by
variant value.Get thecontaining
variant value.boolean
isAfter()
Is this variant instance of kindafter
?boolean
isBefore()
Is this variant instance of kindbefore
?boolean
Is this variant instance of kindcontained_by
?boolean
Is this variant instance of kindcontaining
?boolean
Is this variant instance of kindnot_contained_by
?boolean
Is this variant instance of kindnot_containing
?boolean
Is this variant instance of kindnot_overlapping
?boolean
Is this variant instance of kindoverlapping
?boolean
isScript()
Is this variant instance of kindscript
?Get thenot_contained_by
variant value.Get thenot_containing
variant value.Get thenot_overlapping
variant value.static IntervalsFilter
Get theoverlapping
variant value.script()
Get thescript
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
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,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<IntervalsFilter.Kind,
Object>
-
of
public static IntervalsFilter of(Function<IntervalsFilter.Builder, ObjectBuilder<IntervalsFilter>> fn) -
isAfter
public boolean isAfter()Is this variant instance of kindafter
? -
after
Get theafter
variant value.- Throws:
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:
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:
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:
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:
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:
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:
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:
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:
IllegalStateException
- if the current variant is not of thescript
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupIntervalsFilterDeserializer
protected static void setupIntervalsFilterDeserializer(ObjectDeserializer<IntervalsFilter.Builder> op)
-