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

CognitiveServicesAccount Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.CognitiveServicesAccount

Implements

public abstract class CognitiveServicesAccount
implements JsonSerializable<CognitiveServicesAccount>

Base type for describing any Azure AI service resource attached to a skillset.

Constructor Summary

Constructor Description
CognitiveServicesAccount()

Creates an instance of CognitiveServicesAccount class.

Method Summary

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

Reads an instance of CognitiveServicesAccount from the JsonReader.

String getDescription()

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

CognitiveServicesAccount 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 java.lang.Object

Constructor Details

CognitiveServicesAccount

public CognitiveServicesAccount()

Creates an instance of CognitiveServicesAccount class.

Method Details

fromJson

public static CognitiveServicesAccount fromJson(JsonReader jsonReader)

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 the deserialized JSON object was missing the polymorphic discriminator.

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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to