Class SecretAuthInfo
- java.lang.Object
-
- com.azure.resourcemanager.servicelinker.models.AuthInfoBase
-
- com.azure.resourcemanager.servicelinker.models.SecretAuthInfo
-
public final class SecretAuthInfo extends AuthInfoBase
The authentication info when authType is secret.
-
-
Constructor Summary
Constructors Constructor Description SecretAuthInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: Username or account name for secret auth.SecretInfoBase
secretInfo()
Get the secretInfo property: Password or key vault secret for secret auth.void
validate()
Validates the instance.SecretAuthInfo
withName(String name)
Set the name property: Username or account name for secret auth.SecretAuthInfo
withSecretInfo(SecretInfoBase secretInfo)
Set the secretInfo property: Password or key vault secret for secret auth.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Username or account name for secret auth.- Returns:
- the name value.
-
withName
public SecretAuthInfo withName(String name)
Set the name property: Username or account name for secret auth.- Parameters:
name
- the name value to set.- Returns:
- the SecretAuthInfo object itself.
-
secretInfo
public SecretInfoBase secretInfo()
Get the secretInfo property: Password or key vault secret for secret auth.- Returns:
- the secretInfo value.
-
withSecretInfo
public SecretAuthInfo withSecretInfo(SecretInfoBase secretInfo)
Set the secretInfo property: Password or key vault secret for secret auth.- Parameters:
secretInfo
- the secretInfo value to set.- Returns:
- the SecretAuthInfo object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAuthInfoBase
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-