Class PrivateRegistryCredentials

java.lang.Object
com.microsoft.azure.management.batchai.PrivateRegistryCredentials

public class PrivateRegistryCredentials extends Object
Credentials to access a container image in a private repository.
  • Constructor Details

    • PrivateRegistryCredentials

      public PrivateRegistryCredentials()
  • Method Details

    • username

      public String username()
      Get user name to login to the repository.
      Returns:
      the username value
    • withUsername

      public PrivateRegistryCredentials withUsername(String username)
      Set user name to login to the repository.
      Parameters:
      username - the username value to set
      Returns:
      the PrivateRegistryCredentials object itself.
    • password

      public String password()
      Get user password to login to the docker repository. One of password or passwordSecretReference must be specified.
      Returns:
      the password value
    • withPassword

      public PrivateRegistryCredentials withPassword(String password)
      Set user password to login to the docker repository. One of password or passwordSecretReference must be specified.
      Parameters:
      password - the password value to set
      Returns:
      the PrivateRegistryCredentials object itself.
    • passwordSecretReference

      public KeyVaultSecretReference passwordSecretReference()
      Get keyVault Secret storing the password. Users can store their secrets in Azure KeyVault and pass it to the Batch AI service to integrate with KeyVault. One of password or passwordSecretReference must be specified.
      Returns:
      the passwordSecretReference value
    • withPasswordSecretReference

      public PrivateRegistryCredentials withPasswordSecretReference(KeyVaultSecretReference passwordSecretReference)
      Set keyVault Secret storing the password. Users can store their secrets in Azure KeyVault and pass it to the Batch AI service to integrate with KeyVault. One of password or passwordSecretReference must be specified.
      Parameters:
      passwordSecretReference - the passwordSecretReference value to set
      Returns:
      the PrivateRegistryCredentials object itself.