Class Normalizer
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.Normalizer
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<JsonpSerializable>
@JsonpDeserializable public class Normalizer extends java.lang.Object implements TaggedUnion<JsonpSerializable>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Normalizer.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Normalizer>
_DESERIALIZER
static java.lang.String
CUSTOM
static java.lang.String
LOWERCASE
-
Constructor Summary
Constructors Constructor Description Normalizer(NormalizerVariant value)
Normalizer(ObjectBuilder<T> builder)
Normalizer(java.util.function.Function<Normalizer.Builder,Normalizer.Builder> fn)
-
Method Summary
Modifier and Type Method Description JsonpSerializable
_get()
java.lang.String
_type()
Get the of the type of the variant held by this union object.CustomNormalizer
custom()
Get thecustom
variant value.LowercaseNormalizer
lowercase()
Get thelowercase
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupNormalizerDeserializer(DelegatingDeserializer<Normalizer.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
CUSTOM
public static final java.lang.String CUSTOM- See Also:
- Constant Field Values
-
LOWERCASE
public static final java.lang.String LOWERCASE- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Normalizer
-
Normalizer
-
Normalizer
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<JsonpSerializable>
- Returns:
- the variant type
-
_get
- Specified by:
_get
in interfaceTaggedUnion<JsonpSerializable>
-
custom
Get thecustom
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecustom
kind.
-
lowercase
Get thelowercase
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thelowercase
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupNormalizerDeserializer
-