CustomEntityAlias.java

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. //
  4. // Code generated by Microsoft (R) AutoRest Code Generator.
  5. // Changes may cause incorrect behavior and will be lost if the code is
  6. // regenerated.

  7. package com.azure.search.documents.indexes.models;

  8. import com.azure.core.annotation.Fluent;
  9. import com.fasterxml.jackson.annotation.JsonCreator;
  10. import com.fasterxml.jackson.annotation.JsonProperty;

  11. /** A complex object that can be used to specify alternative spellings or synonyms to the root entity name. */
  12. @Fluent
  13. public final class CustomEntityAlias {
  14.     /*
  15.      * The text of the alias.
  16.      */
  17.     @JsonProperty(value = "text", required = true)
  18.     private String text;

  19.     /*
  20.      * Determine if the alias is case sensitive.
  21.      */
  22.     @JsonProperty(value = "caseSensitive")
  23.     private Boolean caseSensitive;

  24.     /*
  25.      * Determine if the alias is accent sensitive.
  26.      */
  27.     @JsonProperty(value = "accentSensitive")
  28.     private Boolean accentSensitive;

  29.     /*
  30.      * Determine the fuzzy edit distance of the alias.
  31.      */
  32.     @JsonProperty(value = "fuzzyEditDistance")
  33.     private Integer fuzzyEditDistance;

  34.     /**
  35.      * Creates an instance of CustomEntityAlias class.
  36.      *
  37.      * @param text the text value to set.
  38.      */
  39.     @JsonCreator
  40.     public CustomEntityAlias(@JsonProperty(value = "text", required = true) String text) {
  41.         this.text = text;
  42.     }

  43.     /**
  44.      * Get the text property: The text of the alias.
  45.      *
  46.      * @return the text value.
  47.      */
  48.     public String getText() {
  49.         return this.text;
  50.     }

  51.     /**
  52.      * Get the caseSensitive property: Determine if the alias is case sensitive.
  53.      *
  54.      * @return the caseSensitive value.
  55.      */
  56.     public Boolean isCaseSensitive() {
  57.         return this.caseSensitive;
  58.     }

  59.     /**
  60.      * Set the caseSensitive property: Determine if the alias is case sensitive.
  61.      *
  62.      * @param caseSensitive the caseSensitive value to set.
  63.      * @return the CustomEntityAlias object itself.
  64.      */
  65.     public CustomEntityAlias setCaseSensitive(Boolean caseSensitive) {
  66.         this.caseSensitive = caseSensitive;
  67.         return this;
  68.     }

  69.     /**
  70.      * Get the accentSensitive property: Determine if the alias is accent sensitive.
  71.      *
  72.      * @return the accentSensitive value.
  73.      */
  74.     public Boolean isAccentSensitive() {
  75.         return this.accentSensitive;
  76.     }

  77.     /**
  78.      * Set the accentSensitive property: Determine if the alias is accent sensitive.
  79.      *
  80.      * @param accentSensitive the accentSensitive value to set.
  81.      * @return the CustomEntityAlias object itself.
  82.      */
  83.     public CustomEntityAlias setAccentSensitive(Boolean accentSensitive) {
  84.         this.accentSensitive = accentSensitive;
  85.         return this;
  86.     }

  87.     /**
  88.      * Get the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.
  89.      *
  90.      * @return the fuzzyEditDistance value.
  91.      */
  92.     public Integer getFuzzyEditDistance() {
  93.         return this.fuzzyEditDistance;
  94.     }

  95.     /**
  96.      * Set the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.
  97.      *
  98.      * @param fuzzyEditDistance the fuzzyEditDistance value to set.
  99.      * @return the CustomEntityAlias object itself.
  100.      */
  101.     public CustomEntityAlias setFuzzyEditDistance(Integer fuzzyEditDistance) {
  102.         this.fuzzyEditDistance = fuzzyEditDistance;
  103.         return this;
  104.     }
  105. }