Class CognitiveServicesAccountKey

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

public final class CognitiveServicesAccountKey extends CognitiveServicesAccount
A cognitive service resource provisioned with a key that is attached to a skillset.
  • Constructor Details

    • CognitiveServicesAccountKey

      public CognitiveServicesAccountKey(String key)
      Creates an instance of CognitiveServicesAccountKey class.
      Parameters:
      key - the key value to set.
  • Method Details

    • getKey

      public String getKey()
      Get the key property: The key used to provision the cognitive service resource attached to a skillset.
      Returns:
      the key value.
    • setDescription

      public CognitiveServicesAccountKey setDescription(String description)
      Set the description property: Description of the cognitive service resource attached to a skillset.
      Overrides:
      setDescription in class CognitiveServicesAccount
      Parameters:
      description - the description value to set.
      Returns:
      the CognitiveServicesAccount object itself.
    • setKey

      public CognitiveServicesAccountKey setKey(String key)
      Set the key property: The key used to provision the cognitive service resource attached to a skillset.
      Parameters:
      key - the key value to set.
      Returns:
      the CognitiveServicesAccountKey object itself.