Class TermsInclude
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.TermsInclude
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<TermsInclude.Kind,Object>
@JsonpDeserializable
public class TermsInclude
extends Object
implements TaggedUnion<TermsInclude.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final TermsInclude.Kind_kind()Get the of the kind of variant held by this object.booleanIs this variant instance of kindpartition?booleanisRegexp()Is this variant instance of kindregexp?booleanisTerms()Is this variant instance of kindterms?static TermsIncludeGet thepartitionvariant value.regexp()Get theregexpvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) terms()Get thetermsvariant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<TermsInclude.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<TermsInclude.Kind,Object>
-
of
-
isTerms
public boolean isTerms()Is this variant instance of kindterms? -
terms
Get thetermsvariant value.- Throws:
IllegalStateException- if the current variant is not of thetermskind.
-
isPartition
public boolean isPartition()Is this variant instance of kindpartition? -
partition
Get thepartitionvariant value.- Throws:
IllegalStateException- if the current variant is not of thepartitionkind.
-
isRegexp
public boolean isRegexp()Is this variant instance of kindregexp? -
regexp
Get theregexpvariant value.- Throws:
IllegalStateException- if the current variant is not of theregexpkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-