Class TokenFilter
- java.lang.Object
-
- org.opensearch.client.opensearch._types.analysis.TokenFilter
-
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<TokenFilter.Kind,java.lang.Object>
@JsonpDeserializable public class TokenFilter extends java.lang.Object implements TaggedUnion<TokenFilter.Kind,java.lang.Object>, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenFilter.Builderstatic classTokenFilter.Kind
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TokenFilter>_DESERIALIZER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object_get()TokenFilter.Kind_kind()Get the of the kind of variant held by this object.TokenFilterDefinitiondefinition()Get thedefinitionvariant value.booleanisDefinition()Is this variant instance of kinddefinition?booleanisName()Is this variant instance of kindname?java.lang.Stringname()Get thenamevariant value.static TokenFilterof(java.util.function.Function<TokenFilter.Builder,ObjectBuilder<TokenFilter>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<TokenFilter> _DESERIALIZER
-
-
Method Detail
-
_kind
public final TokenFilter.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<TokenFilter.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()
- Specified by:
_getin interfaceTaggedUnion<TokenFilter.Kind,java.lang.Object>
-
of
public static TokenFilter of(java.util.function.Function<TokenFilter.Builder,ObjectBuilder<TokenFilter>> fn)
-
isDefinition
public boolean isDefinition()
Is this variant instance of kinddefinition?
-
definition
public TokenFilterDefinition definition()
Get thedefinitionvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedefinitionkind.
-
isName
public boolean isName()
Is this variant instance of kindname?
-
name
public java.lang.String name()
Get thenamevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenamekind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
-