Class DefaultCognitiveServicesAccount

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

public final class DefaultCognitiveServicesAccount extends CognitiveServicesAccount
An empty object that represents the default Azure AI service resource for a skillset.
  • Constructor Details

    • DefaultCognitiveServicesAccount

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

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