Class AIServicesAccountIdentity

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

public final class AIServicesAccountIdentity extends CognitiveServicesAccount
The multi-region account of an Azure AI service resource that's attached to a skillset.
  • Constructor Details

    • AIServicesAccountIdentity

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

    • getOdataType

      public String getOdataType()
      Get the odataType property: A URI fragment specifying the type of Azure AI service resource attached to a skillset.
      Overrides:
      getOdataType in class CognitiveServicesAccount
      Returns:
      the odataType value.
    • getIdentity

      public SearchIndexerDataIdentity getIdentity()
      Get the identity property: The user-assigned managed identity used for connections to AI Service. If not specified, the system-assigned managed identity is used. On updates to the skillset, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this property is cleared.
      Returns:
      the identity value.
    • setIdentity

      Set the identity property: The user-assigned managed identity used for connections to AI Service. If not specified, the system-assigned managed identity is used. On updates to the skillset, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this property is cleared.
      Parameters:
      identity - the identity value to set.
      Returns:
      the AIServicesAccountIdentity object itself.
    • getSubdomainUrl

      public String getSubdomainUrl()
      Get the subdomainUrl property: The subdomain url for the corresponding AI Service.
      Returns:
      the subdomainUrl value.
    • setDescription

      public AIServicesAccountIdentity setDescription(String description)
      Set the description property: Description of the Azure AI service resource attached to a skillset.
      Overrides:
      setDescription in class CognitiveServicesAccount
      Parameters:
      description - the description value to set.
      Returns:
      the CognitiveServicesAccount 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<CognitiveServicesAccount>
      Overrides:
      toJson in class CognitiveServicesAccount
      Throws:
      IOException
    • fromJson

      public static AIServicesAccountIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AIServicesAccountIdentity from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AIServicesAccountIdentity 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 AIServicesAccountIdentity.