Class CognitiveServicesAccount

java.lang.Object
com.azure.search.documents.indexes.models.CognitiveServicesAccount
All Implemented Interfaces:
com.azure.json.JsonSerializable<CognitiveServicesAccount>
Direct Known Subclasses:
AIServicesAccountIdentity, AIServicesAccountKey, CognitiveServicesAccountKey, DefaultCognitiveServicesAccount

public class CognitiveServicesAccount extends Object implements com.azure.json.JsonSerializable<CognitiveServicesAccount>
Base type for describing any Azure AI service resource attached to a skillset.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of CognitiveServicesAccount from the JsonReader.
    Get the description property: Description of the Azure AI service resource attached to a skillset.
    Get the odataType property: A URI fragment specifying the type of Azure AI service resource attached to a skillset.
    setDescription(String description)
    Set the description property: Description of the Azure AI service resource attached to a skillset.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.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

    • CognitiveServicesAccount

      public CognitiveServicesAccount()
      Creates an instance of CognitiveServicesAccount class.
  • 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.
      Returns:
      the odataType value.
    • getDescription

      public String getDescription()
      Get the description property: Description of the Azure AI service resource attached to a skillset.
      Returns:
      the description value.
    • setDescription

      public CognitiveServicesAccount setDescription(String description)
      Set the description property: Description of the Azure AI service resource attached to a skillset.
      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>
      Throws:
      IOException
    • fromJson

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