Class SourceRegistryCredentials
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.SourceRegistryCredentials
-
public final class SourceRegistryCredentials extends Object
Describes the credential parameters for accessing the source registry.
-
-
Constructor Summary
Constructors Constructor Description SourceRegistryCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceRegistryLoginModeloginMode()Get the loginMode property: The authentication mode which determines the source registry login scope.voidvalidate()Validates the instance.SourceRegistryCredentialswithLoginMode(SourceRegistryLoginMode loginMode)Set the loginMode property: The authentication mode which determines the source registry login scope.
-
-
-
Method Detail
-
loginMode
public SourceRegistryLoginMode loginMode()
Get the loginMode property: The authentication mode which determines the source registry login scope. The credentials for the source registry will be generated using the given scope. These credentials will be used to login to the source registry during the run.- Returns:
- the loginMode value.
-
withLoginMode
public SourceRegistryCredentials withLoginMode(SourceRegistryLoginMode loginMode)
Set the loginMode property: The authentication mode which determines the source registry login scope. The credentials for the source registry will be generated using the given scope. These credentials will be used to login to the source registry during the run.- Parameters:
loginMode- the loginMode value to set.- Returns:
- the SourceRegistryCredentials object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-