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 class
Intervals.Builder
static class
Intervals.Kind
Intervals
variant 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.IntervalsAllOf
allOf()
Get theall_of
variant value.IntervalsAnyOf
anyOf()
Get theany_of
variant value.IntervalsFuzzy
fuzzy()
Get thefuzzy
variant value.boolean
isAllOf()
Is this variant instance of kindall_of
?boolean
isAnyOf()
Is this variant instance of kindany_of
?boolean
isFuzzy()
Is this variant instance of kindfuzzy
?boolean
isMatch()
Is this variant instance of kindmatch
?boolean
isPrefix()
Is this variant instance of kindprefix
?boolean
isWildcard()
Is this variant instance of kindwildcard
?IntervalsMatch
match()
Get thematch
variant value.static Intervals
of(java.util.function.Function<Intervals.Builder,ObjectBuilder<Intervals>> fn)
IntervalsPrefix
prefix()
Get theprefix
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupIntervalsDeserializer(ObjectDeserializer<Intervals.Builder> op)
IntervalsWildcard
wildcard()
Get thewildcard
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
_intervalsFilterKind
in interfaceIntervalsFilterVariant
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Intervals.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in 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_of
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theall_of
kind.
-
isAnyOf
public boolean isAnyOf()Is this variant instance of kindany_of
? -
anyOf
Get theany_of
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theany_of
kind.
-
isFuzzy
public boolean isFuzzy()Is this variant instance of kindfuzzy
? -
fuzzy
Get thefuzzy
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefuzzy
kind.
-
isMatch
public boolean isMatch()Is this variant instance of kindmatch
? -
match
Get thematch
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thematch
kind.
-
isPrefix
public boolean isPrefix()Is this variant instance of kindprefix
? -
prefix
Get theprefix
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theprefix
kind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard
? -
wildcard
Get thewildcard
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thewildcard
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupIntervalsDeserializer
-