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

  12. /** Definition of additional projections to azure blob, table, or files, of enriched data. */
  13. @Fluent
  14. public final class SearchIndexerKnowledgeStore {
  15.     /*
  16.      * The connection string to the storage account projections will be stored
  17.      * in.
  18.      */
  19.     @JsonProperty(value = "storageConnectionString", required = true)
  20.     private String storageConnectionString;

  21.     /*
  22.      * A list of additional projections to perform during indexing.
  23.      */
  24.     @JsonProperty(value = "projections", required = true)
  25.     private List<SearchIndexerKnowledgeStoreProjection> projections;

  26.     /**
  27.      * Creates an instance of SearchIndexerKnowledgeStore class.
  28.      *
  29.      * @param storageConnectionString the storageConnectionString value to set.
  30.      * @param projections the projections value to set.
  31.      */
  32.     @JsonCreator
  33.     public SearchIndexerKnowledgeStore(
  34.             @JsonProperty(value = "storageConnectionString", required = true) String storageConnectionString,
  35.             @JsonProperty(value = "projections", required = true)
  36.                     List<SearchIndexerKnowledgeStoreProjection> projections) {
  37.         this.storageConnectionString = storageConnectionString;
  38.         this.projections = projections;
  39.     }

  40.     /**
  41.      * Get the storageConnectionString property: The connection string to the storage account projections will be stored
  42.      * in.
  43.      *
  44.      * @return the storageConnectionString value.
  45.      */
  46.     public String getStorageConnectionString() {
  47.         return this.storageConnectionString;
  48.     }

  49.     /**
  50.      * Get the projections property: A list of additional projections to perform during indexing.
  51.      *
  52.      * @return the projections value.
  53.      */
  54.     public List<SearchIndexerKnowledgeStoreProjection> getProjections() {
  55.         return this.projections;
  56.     }
  57. }