Class ImportSourceCredentials
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.ImportSourceCredentials
-
public final class ImportSourceCredentials extends Object
The ImportSourceCredentials model.
-
-
Constructor Summary
Constructors Constructor Description ImportSourceCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringpassword()Get the password property: The password used to authenticate with the source registry.Stringusername()Get the username property: The username to authenticate with the source registry.voidvalidate()Validates the instance.ImportSourceCredentialswithPassword(String password)Set the password property: The password used to authenticate with the source registry.ImportSourceCredentialswithUsername(String username)Set the username property: The username to authenticate with the source registry.
-
-
-
Method Detail
-
username
public String username()
Get the username property: The username to authenticate with the source registry.- Returns:
- the username value.
-
withUsername
public ImportSourceCredentials withUsername(String username)
Set the username property: The username to authenticate with the source registry.- Parameters:
username- the username value to set.- Returns:
- the ImportSourceCredentials object itself.
-
password
public String password()
Get the password property: The password used to authenticate with the source registry.- Returns:
- the password value.
-
withPassword
public ImportSourceCredentials withPassword(String password)
Set the password property: The password used to authenticate with the source registry.- Parameters:
password- the password value to set.- Returns:
- the ImportSourceCredentials object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-