Class IntervalsFilter
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.IntervalsFilter
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<IntervalsFilter.Kind,IntervalsFilterVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class IntervalsFilter
extends Object
implements TaggedUnion<IntervalsFilter.Kind,IntervalsFilterVariant>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IntervalsFilterVariant_get()final IntervalsFilter.Kind_kind()Get the of the kind of variant held by this object.after()Get theaftervariant value.before()Get thebeforevariant value.static IntervalsFilter.Builderbuilder()Get thecontained_byvariant value.Get thecontainingvariant value.booleaninthashCode()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 voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
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,IntervalsFilterVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<IntervalsFilter.Kind,IntervalsFilterVariant>
-
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 theafterkind.
-
isBefore
public boolean isBefore()Is this variant instance of kindbefore? -
before
Get thebeforevariant value.- Throws:
IllegalStateException- if the current variant is not 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 thecontained_bykind.
-
isContaining
public boolean isContaining()Is this variant instance of kindcontaining? -
containing
Get thecontainingvariant value.- Throws:
IllegalStateException- if the current variant is not 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 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 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 thenot_overlappingkind.
-
isOverlapping
public boolean isOverlapping()Is this variant instance of kindoverlapping? -
overlapping
Get theoverlappingvariant value.- Throws:
IllegalStateException- if the current variant is not theoverlappingkind.
-
isScript
public boolean isScript()Is this variant instance of kindscript? -
script
Get thescriptvariant value.- Throws:
IllegalStateException- if the current variant is not thescriptkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupIntervalsFilterDeserializer
protected static void setupIntervalsFilterDeserializer(ObjectDeserializer<IntervalsFilter.Builder> op) -
hashCode
public int hashCode() -
equals
-