SemanticSettings.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. import java.util.List;

  11. /** Defines parameters for a search index that influence semantic capabilities. */
  12. @Fluent
  13. public final class SemanticSettings {
  14.     /*
  15.      * The semantic configurations for the index.
  16.      */
  17.     @JsonProperty(value = "configurations")
  18.     private List<SemanticConfiguration> configurations;

  19.     /**
  20.      * Get the configurations property: The semantic configurations for the index.
  21.      *
  22.      * @return the configurations value.
  23.      */
  24.     public List<SemanticConfiguration> getConfigurations() {
  25.         return this.configurations;
  26.     }

  27.     /**
  28.      * Set the configurations property: The semantic configurations for the index.
  29.      *
  30.      * @param configurations the configurations value to set.
  31.      * @return the SemanticSettings object itself.
  32.      */
  33.     public SemanticSettings setConfigurations(List<SemanticConfiguration> configurations) {
  34.         this.configurations = configurations;
  35.         return this;
  36.     }
  37. }