Class Credentials
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.Credentials
-
public final class Credentials extends Object
The parameters that describes a set of credentials that will be used when a run is invoked.
-
-
Constructor Summary
Constructors Constructor Description Credentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,CustomRegistryCredentials>customRegistries()Get the customRegistries property: Describes the credential parameters for accessing other custom registries.SourceRegistryCredentialssourceRegistry()Get the sourceRegistry property: Describes the credential parameters for accessing the source registry.voidvalidate()Validates the instance.CredentialswithCustomRegistries(Map<String,CustomRegistryCredentials> customRegistries)Set the customRegistries property: Describes the credential parameters for accessing other custom registries.CredentialswithSourceRegistry(SourceRegistryCredentials sourceRegistry)Set the sourceRegistry property: Describes the credential parameters for accessing the source registry.
-
-
-
Method Detail
-
sourceRegistry
public SourceRegistryCredentials sourceRegistry()
Get the sourceRegistry property: Describes the credential parameters for accessing the source registry.- Returns:
- the sourceRegistry value.
-
withSourceRegistry
public Credentials withSourceRegistry(SourceRegistryCredentials sourceRegistry)
Set the sourceRegistry property: Describes the credential parameters for accessing the source registry.- Parameters:
sourceRegistry- the sourceRegistry value to set.- Returns:
- the Credentials object itself.
-
customRegistries
public Map<String,CustomRegistryCredentials> customRegistries()
Get the customRegistries property: Describes the credential parameters for accessing other custom registries. The key for the dictionary item will be the registry login server (myregistry.azurecr.io) and the value of the item will be the registry credentials for accessing the registry.- Returns:
- the customRegistries value.
-
withCustomRegistries
public Credentials withCustomRegistries(Map<String,CustomRegistryCredentials> customRegistries)
Set the customRegistries property: Describes the credential parameters for accessing other custom registries. The key for the dictionary item will be the registry login server (myregistry.azurecr.io) and the value of the item will be the registry credentials for accessing the registry.- Parameters:
customRegistries- the customRegistries value to set.- Returns:
- the Credentials object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-