Class ContainerRegistry

java.lang.Object
com.azure.resourcemanager.batch.models.ContainerRegistry

public final class ContainerRegistry extends Object
A private container registry.
  • Constructor Details

    • ContainerRegistry

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

    • username

      public String username()
      Get the username property: The user name to log into the registry server.
      Returns:
      the username value.
    • withUsername

      public ContainerRegistry withUsername(String username)
      Set the username property: The user name to log into the registry server.
      Parameters:
      username - the username value to set.
      Returns:
      the ContainerRegistry object itself.
    • password

      public String password()
      Get the password property: The password to log into the registry server.
      Returns:
      the password value.
    • withPassword

      public ContainerRegistry withPassword(String password)
      Set the password property: The password to log into the registry server.
      Parameters:
      password - the password value to set.
      Returns:
      the ContainerRegistry object itself.
    • registryServer

      public String registryServer()
      Get the registryServer property: The registry URL.

      If omitted, the default is "docker.io".

      Returns:
      the registryServer value.
    • withRegistryServer

      public ContainerRegistry withRegistryServer(String registryServer)
      Set the registryServer property: The registry URL.

      If omitted, the default is "docker.io".

      Parameters:
      registryServer - the registryServer value to set.
      Returns:
      the ContainerRegistry object itself.
    • identityReference

      public ComputeNodeIdentityReference identityReference()
      Get the identityReference property: The reference to a user assigned identity associated with the Batch pool which a compute node will use.
      Returns:
      the identityReference value.
    • withIdentityReference

      public ContainerRegistry withIdentityReference(ComputeNodeIdentityReference identityReference)
      Set the identityReference property: The reference to a user assigned identity associated with the Batch pool which a compute node will use.
      Parameters:
      identityReference - the identityReference value to set.
      Returns:
      the ContainerRegistry object itself.
    • validate

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