Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerRegistryReference class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerRegistryReferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerRegistryReference from the JsonReader.Get the identityReference property: The reference to the user assigned identity to use to access an Azure Container Registry instead of username and password.Get the password property: The password to log into the registry server.Get the registryServer property: The registry URL.Get the username property: The user name to log into the registry server.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.setPassword(String password) Set the password property: The password to log into the registry server.setRegistryServer(String registryServer) Set the registryServer property: The registry URL.setUsername(String username) Set the username property: The user name to log into the registry server.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerRegistryReference
public ContainerRegistryReference()Creates an instance of ContainerRegistryReference class.
-
-
Method Details
-
getUsername
Get the username property: The user name to log into the registry server.- Returns:
- the username value.
-
setUsername
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
Get the password property: The password to log into the registry server.- Returns:
- the password value.
-
setPassword
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
Get the registryServer property: The registry URL. If omitted, the default is "docker.io".- Returns:
- the registryServer value.
-
setRegistryServer
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
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
- Specified by:
toJsonin interfacecom.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.
-