LexicalNormalizer.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.indexes.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/** Base type for normalizers. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "@odata.type",
defaultImpl = LexicalNormalizer.class,
visible = true)
@JsonTypeName("LexicalNormalizer")
@JsonSubTypes({@JsonSubTypes.Type(name = "#Microsoft.Azure.Search.CustomNormalizer", value = CustomNormalizer.class)})
@Fluent
public class LexicalNormalizer {
/*
* The name of the normalizer. It must only contain letters, digits,
* spaces, dashes or underscores, can only start and end with alphanumeric
* characters, and is limited to 128 characters. It cannot end in
* '.microsoft' nor '.lucene', nor be named 'asciifolding', 'standard',
* 'lowercase', 'uppercase', or 'elision'.
*/
@JsonProperty(value = "name", required = true)
private String name;
/**
* Creates an instance of LexicalNormalizer class.
*
* @param name the name value to set.
*/
@JsonCreator
public LexicalNormalizer(@JsonProperty(value = "name", required = true) String name) {
this.name = name;
}
/**
* Get the name property: The name of the normalizer. It must only contain letters, digits, spaces, dashes or
* underscores, can only start and end with alphanumeric characters, and is limited to 128 characters. It cannot end
* in '.microsoft' nor '.lucene', nor be named 'asciifolding', 'standard', 'lowercase', 'uppercase', or 'elision'.
*
* @return the name value.
*/
public String getName() {
return this.name;
}
}