Class Normalizer
- java.lang.Object
-
- org.opensearch.client.opensearch._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
-
-
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
All Methods Static Methods Instance Methods Concrete Methods 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)
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<Normalizer> _DESERIALIZER
-
-
Constructor Detail
-
Normalizer
public Normalizer(NormalizerVariant value)
-
-
Method Detail
-
_kind
public final Normalizer.Kind _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
public final NormalizerVariant _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
public CustomNormalizer 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
public LowercaseNormalizer lowercase()
Get thelowercasevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelowercasekind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
setupNormalizerDeserializer
protected static void setupNormalizerDeserializer(ObjectDeserializer<Normalizer.Builder> op)
-
-