Class ContainerRegistryReference

java.lang.Object
com.azure.compute.batch.models.ContainerRegistryReference
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerRegistryReference>

public final class ContainerRegistryReference extends Object implements com.azure.json.JsonSerializable<ContainerRegistryReference>
A private container registry.
  • Constructor Details

    • ContainerRegistryReference

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

    • getUsername

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

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

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

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

      public String getRegistryServer()
      Get the registryServer property: The registry URL. If omitted, the default is "docker.io".
      Returns:
      the registryServer value.
    • setRegistryServer

      public ContainerRegistryReference setRegistryServer(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 ContainerRegistryReference object itself.
    • getIdentityReference

      public BatchNodeIdentityReference getIdentityReference()
      Get the identityReference property: The reference to the user assigned identity to use to access an Azure Container Registry instead of username and password.
      Returns:
      the identityReference value.
    • setIdentityReference

      public ContainerRegistryReference setIdentityReference(BatchNodeIdentityReference identityReference)
      Set the identityReference property: The reference to the user assigned identity to use to access an Azure Container Registry instead of username and password.
      Parameters:
      identityReference - the identityReference value to set.
      Returns:
      the ContainerRegistryReference object itself.
    • toJson

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

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