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>
An empty object that represents the default Azure AI service resource for a skillset.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DefaultCognitiveServicesAccount class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DefaultCognitiveServicesAccount from the JsonReader.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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.search.documents.indexes.models.CognitiveServicesAccount
getDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DefaultCognitiveServicesAccount
public DefaultCognitiveServicesAccount()Creates an instance of DefaultCognitiveServicesAccount class.
-
-
Method Details
-
getOdataType
Get the odataType property: A URI fragment specifying the type of Azure AI service resource attached to a skillset.- Overrides:
getOdataTypein classCognitiveServicesAccount- Returns:
- the odataType value.
-
setDescription
Set the description property: Description of the Azure AI service resource attached to a skillset.- Overrides:
setDescriptionin classCognitiveServicesAccount- Parameters:
description- the description value to set.- Returns:
- the CognitiveServicesAccount object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CognitiveServicesAccount>- Overrides:
toJsonin classCognitiveServicesAccount- 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.
-