Class RegistryCredentials


  • public final class RegistryCredentials
    extends Object
    Container App Private Registry.
    • Constructor Detail

      • RegistryCredentials

        public RegistryCredentials()
    • Method Detail

      • server

        public String server()
        Get the server property: Container Registry Server.
        Returns:
        the server value.
      • withServer

        public RegistryCredentials withServer​(String server)
        Set the server property: Container Registry Server.
        Parameters:
        server - the server value to set.
        Returns:
        the RegistryCredentials object itself.
      • username

        public String username()
        Get the username property: Container Registry Username.
        Returns:
        the username value.
      • withUsername

        public RegistryCredentials withUsername​(String username)
        Set the username property: Container Registry Username.
        Parameters:
        username - the username value to set.
        Returns:
        the RegistryCredentials object itself.
      • passwordSecretRef

        public String passwordSecretRef()
        Get the passwordSecretRef property: The name of the Secret that contains the registry login password.
        Returns:
        the passwordSecretRef value.
      • withPasswordSecretRef

        public RegistryCredentials withPasswordSecretRef​(String passwordSecretRef)
        Set the passwordSecretRef property: The name of the Secret that contains the registry login password.
        Parameters:
        passwordSecretRef - the passwordSecretRef value to set.
        Returns:
        the RegistryCredentials object itself.
      • identity

        public String identity()
        Get the identity property: A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'.
        Returns:
        the identity value.
      • withIdentity

        public RegistryCredentials withIdentity​(String identity)
        Set the identity property: A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'.
        Parameters:
        identity - the identity value to set.
        Returns:
        the RegistryCredentials object itself.
      • validate

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