Class Intervals
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.Intervals
- All Implemented Interfaces:
IntervalsFilterVariant,JsonpSerializable,TaggedUnion<Intervals.Kind,java.lang.Object>
@JsonpDeserializable public class Intervals extends java.lang.Object implements TaggedUnion<Intervals.Kind,java.lang.Object>, IntervalsFilterVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntervals.Builderstatic classIntervals.KindIntervalsvariant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Intervals>_DESERIALIZER -
Constructor Summary
Constructors Constructor Description Intervals(IntervalsVariant value) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()IntervalsFilter.Kind_intervalsFilterKind()IntervalsFilter variant kind.Intervals.Kind_kind()Get the of the kind of variant held by this object.IntervalsAllOfallOf()Get theall_ofvariant value.IntervalsAnyOfanyOf()Get theany_ofvariant value.IntervalsFuzzyfuzzy()Get thefuzzyvariant value.booleanisAllOf()Is this variant instance of kindall_of?booleanisAnyOf()Is this variant instance of kindany_of?booleanisFuzzy()Is this variant instance of kindfuzzy?booleanisMatch()Is this variant instance of kindmatch?booleanisPrefix()Is this variant instance of kindprefix?booleanisWildcard()Is this variant instance of kindwildcard?IntervalsMatchmatch()Get thematchvariant value.static Intervalsof(java.util.function.Function<Intervals.Builder,ObjectBuilder<Intervals>> fn)IntervalsPrefixprefix()Get theprefixvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupIntervalsDeserializer(ObjectDeserializer<Intervals.Builder> op)java.lang.StringtoString()IntervalsWildcardwildcard()Get thewildcardvariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.IntervalsFilterVariant
_toIntervalsFilter
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Intervals
-
-
Method Details
-
_intervalsFilterKind
IntervalsFilter variant kind.- Specified by:
_intervalsFilterKindin interfaceIntervalsFilterVariant
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Intervals.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<Intervals.Kind,java.lang.Object>
-
of
public static Intervals of(java.util.function.Function<Intervals.Builder,ObjectBuilder<Intervals>> fn) -
isAllOf
public boolean isAllOf()Is this variant instance of kindall_of? -
allOf
Get theall_ofvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theall_ofkind.
-
isAnyOf
public boolean isAnyOf()Is this variant instance of kindany_of? -
anyOf
Get theany_ofvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theany_ofkind.
-
isFuzzy
public boolean isFuzzy()Is this variant instance of kindfuzzy? -
fuzzy
Get thefuzzyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefuzzykind.
-
isMatch
public boolean isMatch()Is this variant instance of kindmatch? -
match
Get thematchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematchkind.
-
isPrefix
public boolean isPrefix()Is this variant instance of kindprefix? -
prefix
Get theprefixvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theprefixkind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard? -
wildcard
Get thewildcardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewildcardkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupIntervalsDeserializer
-