Class AIServices

java.lang.Object
com.azure.search.documents.indexes.models.AIServices
All Implemented Interfaces:
com.azure.json.JsonSerializable<AIServices>

public final class AIServices extends Object implements com.azure.json.JsonSerializable<AIServices>
Parameters for Azure Blob Storage knowledge source.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of AIServices class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static AIServices
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AIServices from the JsonReader.
    Get the apiKey property: The API key for accessing AI Services.
    Get the uri property: The URI of the AI Services endpoint.
    setApiKey(String apiKey)
    Set the apiKey property: The API key for accessing AI Services.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • AIServices

      public AIServices(String uri)
      Creates an instance of AIServices class.
      Parameters:
      uri - the uri value to set.
  • Method Details

    • getUri

      public String getUri()
      Get the uri property: The URI of the AI Services endpoint.
      Returns:
      the uri value.
    • getApiKey

      public String getApiKey()
      Get the apiKey property: The API key for accessing AI Services.
      Returns:
      the apiKey value.
    • setApiKey

      public AIServices setApiKey(String apiKey)
      Set the apiKey property: The API key for accessing AI Services.
      Parameters:
      apiKey - the apiKey value to set.
      Returns:
      the AIServices object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AIServices>
      Throws:
      IOException
    • fromJson

      public static AIServices fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AIServices from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AIServices if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the AIServices.