Class TermsExclude
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.TermsExclude
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<TermsExclude.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TermsExclude
extends Object
implements TaggedUnion<TermsExclude.Kind,Object>, PlainJsonSerializable
-
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.static TermsExclude.Builderbuilder()booleaninthashCode()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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
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>
-
of
-
_toJsonString
-
isRegexp
public boolean isRegexp()Is this variant instance of kindregexp? -
regexp
Get theregexpvariant value.- Throws:
IllegalStateException- if the current variant is not theregexpkind.
-
isTerms
public boolean isTerms()Is this variant instance of kindterms? -
terms
Get thetermsvariant value.- Throws:
IllegalStateException- if the current variant is not thetermskind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-