ContainerRegistryReference Class
- java.
lang. Object - com.
azure. compute. batch. models. ContainerRegistryReference
- com.
Implements
public final class ContainerRegistryReference
implements JsonSerializable<ContainerRegistryReference>
A private container registry.
Constructor Summary
| Constructor | Description |
|---|---|
| ContainerRegistryReference() |
Creates an instance of Container |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
|
Batch |
getIdentityReference()
Get the identity |
| String |
getPassword()
Get the password property: The password to log into the registry server. |
| String |
getRegistryServer()
Get the registry |
| String |
getUsername()
Get the username property: The user name to log into the registry server. |
|
Container |
setIdentityReference(BatchNodeIdentityReference identityReference)
Set the identity |
|
Container |
setPassword(String password)
Set the password property: The password to log into the registry server. |
|
Container |
setRegistryServer(String registryServer)
Set the registry |
|
Container |
setUsername(String username)
Set the username property: The user name to log into the registry server. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ContainerRegistryReference
public ContainerRegistryReference()
Creates an instance of ContainerRegistryReference class.
Method Details
fromJson
public static ContainerRegistryReference fromJson(JsonReader jsonReader)
Reads an instance of ContainerRegistryReference from the JsonReader.
Parameters:
Returns:
Throws:
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:
getPassword
public String getPassword()
Get the password property: The password to log into the registry server.
Returns:
getRegistryServer
public String getRegistryServer()
Get the registryServer property: The registry URL. If omitted, the default is "docker.io".
Returns:
getUsername
public String getUsername()
Get the username property: The user name to log into the registry server.
Returns:
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:
Returns:
setPassword
public ContainerRegistryReference setPassword(String password)
Set the password property: The password to log into the registry server.
Parameters:
Returns:
setRegistryServer
public ContainerRegistryReference setRegistryServer(String registryServer)
Set the registryServer property: The registry URL. If omitted, the default is "docker.io".
Parameters:
Returns:
setUsername
public ContainerRegistryReference setUsername(String username)
Set the username property: The user name to log into the registry server.
Parameters:
Returns: