你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DefaultCognitiveServicesAccount Class

public final class DefaultCognitiveServicesAccount
extends CognitiveServicesAccount

An empty object that represents the default Azure AI service resource for a skillset.

Constructor Summary

Constructor Description
DefaultCognitiveServicesAccount()

Creates an instance of DefaultCognitiveServicesAccount class.

Method Summary

Modifier and Type Method and Description
static DefaultCognitiveServicesAccount fromJson(JsonReader jsonReader)

Reads an instance of DefaultCognitiveServicesAccount from the JsonReader.

String getOdataType()

Get the odataType property: The discriminator for derived types.

DefaultCognitiveServicesAccount setDescription(String description)

Set the description property: Description of the Azure AI service resource attached to a skillset.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from CognitiveServicesAccount

Methods inherited from java.lang.Object

Constructor Details

DefaultCognitiveServicesAccount

public DefaultCognitiveServicesAccount()

Creates an instance of DefaultCognitiveServicesAccount class.

Method Details

fromJson

public static DefaultCognitiveServicesAccount fromJson(JsonReader jsonReader)

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.

getOdataType

public String getOdataType()

Get the odataType property: The discriminator for derived types.

Overrides:

DefaultCognitiveServicesAccount.getOdataType()

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:

DefaultCognitiveServicesAccount.setDescription(String description)

Parameters:

description

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DefaultCognitiveServicesAccount.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to