Share via


ContainerRegistryReference Class

  • java.lang.Object
    • com.azure.compute.batch.models.ContainerRegistryReference

Implements

public final class ContainerRegistryReference
implements JsonSerializable<ContainerRegistryReference>

A private container registry.

Constructor Summary

Constructor Description
ContainerRegistryReference()

Creates an instance of ContainerRegistryReference class.

Method Summary

Modifier and Type Method and Description
static ContainerRegistryReference fromJson(JsonReader jsonReader)

Reads an instance of ContainerRegistryReference from the JsonReader.

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.

String getPassword()

Get the password property: The password to log into the registry server.

String getRegistryServer()

Get the registryServer property: The registry URL.

String getUsername()

Get the username property: The user name to log into the registry server.

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.

ContainerRegistryReference setPassword(String password)

Set the password property: The password to log into the registry server.

ContainerRegistryReference setRegistryServer(String registryServer)

Set the registryServer property: The registry URL.

ContainerRegistryReference setUsername(String username)

Set the username property: The user name to log into the registry server.

JsonWriter 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:

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.

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.

getPassword

public String getPassword()

Get the password property: The password to log into the registry server.

Returns:

the password value.

getRegistryServer

public String getRegistryServer()

Get the registryServer property: The registry URL. If omitted, the default is "docker.io".

Returns:

the registryServer value.

getUsername

public String getUsername()

Get the username property: The user name to log into the registry server.

Returns:

the username 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.

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.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to