Class Normalizer
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.Normalizer
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Normalizer.Kind,NormalizerVariant>
@JsonpDeserializable public class Normalizer extends java.lang.Object implements TaggedUnion<Normalizer.Kind,NormalizerVariant>, JsonpSerializable
- See Also:
- Documentation on elastic.co, API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNormalizer.Builderstatic classNormalizer.KindNormalizervariant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Normalizer>_DESERIALIZER -
Constructor Summary
Constructors Constructor Description Normalizer(NormalizerVariant value) -
Method Summary
Modifier and Type Method Description NormalizerVariant_get()Normalizer.Kind_kind()Get the of the kind of variant held by this object.CustomNormalizercustom()Get thecustomvariant value.booleanisCustom()Is this variant instance of kindcustom?booleanisLowercase()Is this variant instance of kindlowercase?LowercaseNormalizerlowercase()Get thelowercasevariant value.static Normalizerof(java.util.function.Function<Normalizer.Builder,ObjectBuilder<Normalizer>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupNormalizerDeserializer(ObjectDeserializer<Normalizer.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Normalizer
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Normalizer.Kind,NormalizerVariant>- Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Normalizer.Kind,NormalizerVariant>
-
of
public static Normalizer of(java.util.function.Function<Normalizer.Builder,ObjectBuilder<Normalizer>> fn) -
isCustom
public boolean isCustom()Is this variant instance of kindcustom? -
custom
Get thecustomvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecustomkind.
-
isLowercase
public boolean isLowercase()Is this variant instance of kindlowercase? -
lowercase
Get thelowercasevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelowercasekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupNormalizerDeserializer
-