Class ContainerRegistry
java.lang.Object
com.azure.resourcemanager.batch.models.ContainerRegistry
A private container registry.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the identityReference property: The reference to a user assigned identity associated with the Batch pool which a compute node will use.password()
Get the password property: The password to log into the registry server.Get the registryServer property: The registry URL.username()
Get the username property: The user name to log into the registry server.void
validate()
Validates the instance.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.withPassword
(String password) Set the password property: The password to log into the registry server.withRegistryServer
(String registryServer) Set the registryServer property: The registry URL.withUsername
(String username) Set the username property: The user name to log into the registry server.
-
Constructor Details
-
ContainerRegistry
public ContainerRegistry()Creates an instance of ContainerRegistry class.
-
-
Method Details
-
username
Get the username property: The user name to log into the registry server.- Returns:
- the username value.
-
withUsername
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
Get the password property: The password to log into the registry server.- Returns:
- the password value.
-
withPassword
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
Get the registryServer property: The registry URL.If omitted, the default is "docker.io".
- Returns:
- the registryServer value.
-
withRegistryServer
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
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
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.
-