Class IntervalsFilter
- java.lang.Object
-
- org.opensearch.client.opensearch._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
-
-
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
All Methods Static Methods Instance Methods Concrete Methods 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)
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<IntervalsFilter> _DESERIALIZER
-
-
Constructor Detail
-
IntervalsFilter
public IntervalsFilter(IntervalsFilterVariant value)
-
-
Method Detail
-
_kind
public final IntervalsFilter.Kind _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
public Intervals 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
public Intervals 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
public Intervals 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
public Intervals 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
public Intervals 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
public Intervals 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
public Intervals 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
public Intervals 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
public Script script()
Get thescriptvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescriptkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
setupIntervalsFilterDeserializer
protected static void setupIntervalsFilterDeserializer(ObjectDeserializer<IntervalsFilter.Builder> op)
-
-