Class ImportSourceCredentials
java.lang.Object
com.azure.resourcemanager.containerregistry.models.ImportSourceCredentials
The ImportSourceCredentials model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ImportSourceCredentials class. -
Method Summary
Modifier and TypeMethodDescriptionpassword()Get the password property: The password used to authenticate with the source registry.username()Get the username property: The username to authenticate with the source registry.voidvalidate()Validates the instance.withPassword(String password) Set the password property: The password used to authenticate with the source registry.withUsername(String username) Set the username property: The username to authenticate with the source registry.
-
Constructor Details
-
ImportSourceCredentials
public ImportSourceCredentials()Creates an instance of ImportSourceCredentials class.
-
-
Method Details
-
username
Get the username property: The username to authenticate with the source registry.- Returns:
- the username value.
-
withUsername
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
Get the password property: The password used to authenticate with the source registry.- Returns:
- the password value.
-
withPassword
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.
-