SemanticField.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.JsonProperty;

  10. /** A field that is used as part of the semantic configuration. */
  11. @Fluent
  12. public final class SemanticField {
  13.     /*
  14.      * The fieldName property.
  15.      */
  16.     @JsonProperty(value = "fieldName")
  17.     private String fieldName;

  18.     /**
  19.      * Get the fieldName property: The fieldName property.
  20.      *
  21.      * @return the fieldName value.
  22.      */
  23.     public String getFieldName() {
  24.         return this.fieldName;
  25.     }

  26.     /**
  27.      * Set the fieldName property: The fieldName property.
  28.      *
  29.      * @param fieldName the fieldName value to set.
  30.      * @return the SemanticField object itself.
  31.      */
  32.     public SemanticField setFieldName(String fieldName) {
  33.         this.fieldName = fieldName;
  34.         return this;
  35.     }
  36. }