Class ManagedIdentityCredential

java.lang.Object
com.azure.resourcemanager.machinelearning.models.DataReferenceCredential
com.azure.resourcemanager.machinelearning.models.ManagedIdentityCredential
All Implemented Interfaces:
com.azure.json.JsonSerializable<DataReferenceCredential>

public final class ManagedIdentityCredential extends DataReferenceCredential
Credential for user managed identity.
  • Constructor Details

    • ManagedIdentityCredential

      public ManagedIdentityCredential()
      Creates an instance of ManagedIdentityCredential class.
  • Method Details

    • credentialType

      public DataReferenceCredentialType credentialType()
      Get the credentialType property: [Required] Credential type used to authentication with storage.
      Overrides:
      credentialType in class DataReferenceCredential
      Returns:
      the credentialType value.
    • managedIdentityType

      public String managedIdentityType()
      Get the managedIdentityType property: ManagedIdentityCredential identity type.
      Returns:
      the managedIdentityType value.
    • withManagedIdentityType

      public ManagedIdentityCredential withManagedIdentityType(String managedIdentityType)
      Set the managedIdentityType property: ManagedIdentityCredential identity type.
      Parameters:
      managedIdentityType - the managedIdentityType value to set.
      Returns:
      the ManagedIdentityCredential object itself.
    • userManagedIdentityResourceId

      public String userManagedIdentityResourceId()
      Get the userManagedIdentityResourceId property: Full arm scope for the Id. For ManagedIdentityType = SystemManaged, this field is null.
      Returns:
      the userManagedIdentityResourceId value.
    • withUserManagedIdentityResourceId

      public ManagedIdentityCredential withUserManagedIdentityResourceId(String userManagedIdentityResourceId)
      Set the userManagedIdentityResourceId property: Full arm scope for the Id. For ManagedIdentityType = SystemManaged, this field is null.
      Parameters:
      userManagedIdentityResourceId - the userManagedIdentityResourceId value to set.
      Returns:
      the ManagedIdentityCredential object itself.
    • userManagedIdentityClientId

      public String userManagedIdentityClientId()
      Get the userManagedIdentityClientId property: ClientId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.
      Returns:
      the userManagedIdentityClientId value.
    • withUserManagedIdentityClientId

      public ManagedIdentityCredential withUserManagedIdentityClientId(String userManagedIdentityClientId)
      Set the userManagedIdentityClientId property: ClientId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.
      Parameters:
      userManagedIdentityClientId - the userManagedIdentityClientId value to set.
      Returns:
      the ManagedIdentityCredential object itself.
    • userManagedIdentityPrincipalId

      public String userManagedIdentityPrincipalId()
      Get the userManagedIdentityPrincipalId property: PrincipalId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.
      Returns:
      the userManagedIdentityPrincipalId value.
    • withUserManagedIdentityPrincipalId

      public ManagedIdentityCredential withUserManagedIdentityPrincipalId(String userManagedIdentityPrincipalId)
      Set the userManagedIdentityPrincipalId property: PrincipalId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.
      Parameters:
      userManagedIdentityPrincipalId - the userManagedIdentityPrincipalId value to set.
      Returns:
      the ManagedIdentityCredential object itself.
    • userManagedIdentityTenantId

      public String userManagedIdentityTenantId()
      Get the userManagedIdentityTenantId property: TenantId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.
      Returns:
      the userManagedIdentityTenantId value.
    • withUserManagedIdentityTenantId

      public ManagedIdentityCredential withUserManagedIdentityTenantId(String userManagedIdentityTenantId)
      Set the userManagedIdentityTenantId property: TenantId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.
      Parameters:
      userManagedIdentityTenantId - the userManagedIdentityTenantId value to set.
      Returns:
      the ManagedIdentityCredential object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DataReferenceCredential>
      Overrides:
      toJson in class DataReferenceCredential
      Throws:
      IOException
    • fromJson

      public static ManagedIdentityCredential fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedIdentityCredential from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedIdentityCredential 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 ManagedIdentityCredential.