Class TokenFilter
java.lang.Object
org.opensearch.client.opensearch._types.analysis.TokenFilter
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<TokenFilter.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TokenFilter
extends Object
implements TaggedUnion<TokenFilter.Kind,Object>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final TokenFilter.Kind_kind()Get the of the kind of variant held by this object.static TokenFilter.Builderbuilder()Get thedefinitionvariant value.booleaninthashCode()booleanIs this variant instance of kinddefinition?booleanisName()Is this variant instance of kindname?name()Get thenamevariant value.static TokenFiltervoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) 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<TokenFilter.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<TokenFilter.Kind,Object>
-
of
-
isDefinition
public boolean isDefinition()Is this variant instance of kinddefinition? -
definition
Get thedefinitionvariant value.- Throws:
IllegalStateException- if the current variant is not thedefinitionkind.
-
isName
public boolean isName()Is this variant instance of kindname? -
name
Get thenamevariant value.- Throws:
IllegalStateException- if the current variant is not thenamekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-