Class TermsExclude
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.TermsExclude
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<TermsExclude.Kind,Object>
@JsonpDeserializable
public class TermsExclude
extends Object
implements TaggedUnion<TermsExclude.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final TermsExclude.Kind_kind()Get the of the kind of variant held by this object.booleanisRegexp()Is this variant instance of kindregexp?booleanisTerms()Is this variant instance of kindterms?static TermsExcluderegexp()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<TermsExclude.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<TermsExclude.Kind,Object>
-
_toJsonString
-
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.
-
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
-