Class ManagedIdentityCredential

java.lang.Object
com.azure.resourcemanager.datafactory.models.Credential
com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential

public final class ManagedIdentityCredential extends Credential
Managed identity credential.
  • Constructor Details

    • ManagedIdentityCredential

      public ManagedIdentityCredential()
  • Method Details

    • withDescription

      public ManagedIdentityCredential withDescription(String description)
      Set the description property: Credential description.
      Overrides:
      withDescription in class Credential
      Parameters:
      description - the description value to set.
      Returns:
      the Credential object itself.
    • withAnnotations

      public ManagedIdentityCredential withAnnotations(List<Object> annotations)
      Set the annotations property: List of tags that can be used for describing the Credential.
      Overrides:
      withAnnotations in class Credential
      Parameters:
      annotations - the annotations value to set.
      Returns:
      the Credential object itself.
    • resourceId

      public String resourceId()
      Get the resourceId property: The resource id of user assigned managed identity.
      Returns:
      the resourceId value.
    • withResourceId

      public ManagedIdentityCredential withResourceId(String resourceId)
      Set the resourceId property: The resource id of user assigned managed identity.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the ManagedIdentityCredential object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Credential
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.