CognitiveServicesAccountKey Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. CognitiveServicesAccount - com.
azure. search. documents. indexes. models. CognitiveServicesAccountKey
- com.
- com.
public final class CognitiveServicesAccountKey
extends CognitiveServicesAccount
The multi-region account key of an Azure AI service resource that's attached to a skillset.
Constructor Summary
| Constructor | Description |
|---|---|
| CognitiveServicesAccountKey(String key) |
Creates an instance of Cognitive |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Cognitive |
fromJson(JsonReader jsonReader)
Reads an instance of Cognitive |
| String |
getKey()
Get the key property: The key used to provision the Azure AI service resource attached to a skillset. |
| String |
getOdataType()
Get the odata |
|
Cognitive |
setDescription(String description)
Set the description property: Description of the Azure AI service resource attached to a skillset. |
|
Cognitive |
setKey(String key)
Set the key property: The key used to provision the cognitive service resource attached to a skillset. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from CognitiveServicesAccount
Methods inherited from java.lang.Object
Constructor Details
CognitiveServicesAccountKey
public CognitiveServicesAccountKey(String key)
Creates an instance of CognitiveServicesAccountKey class.
Parameters:
Method Details
fromJson
public static CognitiveServicesAccountKey fromJson(JsonReader jsonReader)
Reads an instance of CognitiveServicesAccountKey from the JsonReader.
Parameters:
Returns:
Throws:
getKey
public String getKey()
Get the key property: The key used to provision the Azure AI service resource attached to a skillset.
Returns:
getOdataType
public String getOdataType()
Get the odataType property: A URI fragment specifying the type of Azure AI service resource attached to a skillset.
Overrides:
CognitiveServicesAccountKey.getOdataType()Returns:
setDescription
public CognitiveServicesAccountKey setDescription(String description)
Set the description property: Description of the Azure AI service resource attached to a skillset.
Overrides:
CognitiveServicesAccountKey.setDescription(String description)Parameters:
setKey
public CognitiveServicesAccountKey setKey(String key)
Set the key property: The key used to provision the cognitive service resource attached to a skillset.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CognitiveServicesAccountKey.toJson(JsonWriter jsonWriter)Parameters:
Throws: