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 classIntervalsFilter.Builderstatic classIntervalsFilter.KindIntervalsFiltervariant 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.Intervalsafter()Get theaftervariant value.Intervalsbefore()Get thebeforevariant value.IntervalscontainedBy()Get thecontained_byvariant value.Intervalscontaining()Get thecontainingvariant value.booleanisAfter()Is this variant instance of kindafter?booleanisBefore()Is this variant instance of kindbefore?booleanisContainedBy()Is this variant instance of kindcontained_by?booleanisContaining()Is this variant instance of kindcontaining?booleanisNotContainedBy()Is this variant instance of kindnot_contained_by?booleanisNotContaining()Is this variant instance of kindnot_containing?booleanisNotOverlapping()Is this variant instance of kindnot_overlapping?booleanisOverlapping()Is this variant instance of kindoverlapping?booleanisScript()Is this variant instance of kindscript?IntervalsnotContainedBy()Get thenot_contained_byvariant value.IntervalsnotContaining()Get thenot_containingvariant value.IntervalsnotOverlapping()Get thenot_overlappingvariant value.static IntervalsFilterof(java.util.function.Function<IntervalsFilter.Builder,ObjectBuilder<IntervalsFilter>> fn)Intervalsoverlapping()Get theoverlappingvariant value.Scriptscript()Get thescriptvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupIntervalsFilterDeserializer(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:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<IntervalsFilter.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin 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 theaftervariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theafterkind.
-
isBefore
public boolean isBefore()Is this variant instance of kindbefore? -
before
Get thebeforevariant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException- if the current variant is not of theoverlappingkind.
-
isScript
public boolean isScript()Is this variant instance of kindscript? -
script
Get thescriptvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescriptkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupIntervalsFilterDeserializer
protected static void setupIntervalsFilterDeserializer(ObjectDeserializer<IntervalsFilter.Builder> op)
-