Class CacheActiveDirectorySettingsCredentials
- java.lang.Object
-
- com.azure.resourcemanager.storagecache.models.CacheActiveDirectorySettingsCredentials
-
public final class CacheActiveDirectorySettingsCredentials extends Object
Active Directory admin credentials used to join the HPC Cache to a domain.
-
-
Constructor Summary
Constructors Constructor Description CacheActiveDirectorySettingsCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
password()
Get the password property: Plain text password of the Active Directory domain administrator.String
username()
Get the username property: Username of the Active Directory domain administrator.void
validate()
Validates the instance.CacheActiveDirectorySettingsCredentials
withPassword(String password)
Set the password property: Plain text password of the Active Directory domain administrator.CacheActiveDirectorySettingsCredentials
withUsername(String username)
Set the username property: Username of the Active Directory domain administrator.
-
-
-
Method Detail
-
username
public String username()
Get the username property: Username of the Active Directory domain administrator. This value is stored encrypted and not returned on response.- Returns:
- the username value.
-
withUsername
public CacheActiveDirectorySettingsCredentials withUsername(String username)
Set the username property: Username of the Active Directory domain administrator. This value is stored encrypted and not returned on response.- Parameters:
username
- the username value to set.- Returns:
- the CacheActiveDirectorySettingsCredentials object itself.
-
password
public String password()
Get the password property: Plain text password of the Active Directory domain administrator. This value is stored encrypted and not returned on response.- Returns:
- the password value.
-
withPassword
public CacheActiveDirectorySettingsCredentials withPassword(String password)
Set the password property: Plain text password of the Active Directory domain administrator. This value is stored encrypted and not returned on response.- Parameters:
password
- the password value to set.- Returns:
- the CacheActiveDirectorySettingsCredentials object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-