Class ImageRegistryCredential
java.lang.Object
com.azure.resourcemanager.appplatform.models.ImageRegistryCredential
Credential of the image registry.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ImageRegistryCredential class. -
Method Summary
Modifier and TypeMethodDescriptionpassword()Get the password property: The password of the image registry credential.username()Get the username property: The username of the image registry credential.voidvalidate()Validates the instance.withPassword(String password) Set the password property: The password of the image registry credential.withUsername(String username) Set the username property: The username of the image registry credential.
-
Constructor Details
-
ImageRegistryCredential
public ImageRegistryCredential()Creates an instance of ImageRegistryCredential class.
-
-
Method Details
-
username
Get the username property: The username of the image registry credential.- Returns:
- the username value.
-
withUsername
Set the username property: The username of the image registry credential.- Parameters:
username- the username value to set.- Returns:
- the ImageRegistryCredential object itself.
-
password
Get the password property: The password of the image registry credential.- Returns:
- the password value.
-
withPassword
Set the password property: The password of the image registry credential.- Parameters:
password- the password value to set.- Returns:
- the ImageRegistryCredential object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-