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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final IntervalsFilter.Kind_kind()Get the of the kind of variant held by this object.after()Get theaftervariant value.before()Get thebeforevariant value.Get thecontained_byvariant value.Get thecontainingvariant value.booleanisAfter()Is this variant instance of kindafter?booleanisBefore()Is this variant instance of kindbefore?booleanIs this variant instance of kindcontained_by?booleanIs this variant instance of kindcontaining?booleanIs this variant instance of kindnot_contained_by?booleanIs this variant instance of kindnot_containing?booleanIs this variant instance of kindnot_overlapping?booleanIs this variant instance of kindoverlapping?booleanisScript()Is this variant instance of kindscript?Get thenot_contained_byvariant value.Get thenot_containingvariant value.Get thenot_overlappingvariant value.static IntervalsFilterGet theoverlappingvariant value.script()Get thescriptvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
IntervalsFilter
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<IntervalsFilter.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin 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 theaftervariant value.- Throws:
IllegalStateException- if the current variant is not of theafterkind.
-
isBefore
public boolean isBefore()Is this variant instance of kindbefore? -
before
Get thebeforevariant value.- Throws:
IllegalStateException- if the current variant is not of thebeforekind.
-
isContainedBy
public boolean isContainedBy()Is this variant instance of kindcontained_by? -
containedBy
Get thecontained_byvariant value.- Throws:
IllegalStateException- if the current variant is not of thecontained_bykind.
-
isContaining
public boolean isContaining()Is this variant instance of kindcontaining? -
containing
Get thecontainingvariant value.- Throws:
IllegalStateException- if the current variant is not of thecontainingkind.
-
isNotContainedBy
public boolean isNotContainedBy()Is this variant instance of kindnot_contained_by? -
notContainedBy
Get thenot_contained_byvariant value.- Throws:
IllegalStateException- if the current variant is not of thenot_contained_bykind.
-
isNotContaining
public boolean isNotContaining()Is this variant instance of kindnot_containing? -
notContaining
Get thenot_containingvariant value.- Throws:
IllegalStateException- if the current variant is not of thenot_containingkind.
-
isNotOverlapping
public boolean isNotOverlapping()Is this variant instance of kindnot_overlapping? -
notOverlapping
Get thenot_overlappingvariant value.- Throws:
IllegalStateException- if the current variant is not of thenot_overlappingkind.
-
isOverlapping
public boolean isOverlapping()Is this variant instance of kindoverlapping? -
overlapping
Get theoverlappingvariant value.- Throws:
IllegalStateException- if the current variant is not of theoverlappingkind.
-
isScript
public boolean isScript()Is this variant instance of kindscript? -
script
Get thescriptvariant value.- Throws:
IllegalStateException- if the current variant is not of thescriptkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupIntervalsFilterDeserializer
protected static void setupIntervalsFilterDeserializer(ObjectDeserializer<IntervalsFilter.Builder> op)
-