Class TermsExclude
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.TermsExclude
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<TermsExclude.Kind,java.lang.Object>
@JsonpDeserializable public class TermsExclude extends java.lang.Object implements TaggedUnion<TermsExclude.Kind,java.lang.Object>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTermsExclude.Builderstatic classTermsExclude.Kind -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TermsExclude>_DESERIALIZER -
Method Summary
Modifier and Type Method Description java.lang.Object_get()TermsExclude.Kind_kind()Get the of the kind of variant held by this object.java.lang.String_toJsonString()booleanisRegexp()Is this variant instance of kindregexp?booleanisTerms()Is this variant instance of kindterms?static TermsExcludeof(java.util.function.Function<TermsExclude.Builder,ObjectBuilder<TermsExclude>> fn)java.lang.Stringregexp()Get theregexpvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)java.util.List<java.lang.String>terms()Get thetermsvariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<TermsExclude.Kind,java.lang.Object>
-
_toJsonString
public java.lang.String _toJsonString() -
of
public static TermsExclude of(java.util.function.Function<TermsExclude.Builder,ObjectBuilder<TermsExclude>> fn) -
isTerms
public boolean isTerms()Is this variant instance of kindterms? -
terms
public java.util.List<java.lang.String> terms()Get thetermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetermskind.
-
isRegexp
public boolean isRegexp()Is this variant instance of kindregexp? -
regexp
public java.lang.String regexp()Get theregexpvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theregexpkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-