Class AuthConfig
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.AuthConfig
Authentication configuration properties of a server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the activeDirectoryAuth property: If Enabled, Azure Active Directory authentication is enabled.Get the passwordAuth property: If Enabled, Password authentication is enabled.tenantId()Get the tenantId property: Tenant id of the server.voidvalidate()Validates the instance.withActiveDirectoryAuth(ActiveDirectoryAuthEnum activeDirectoryAuth) Set the activeDirectoryAuth property: If Enabled, Azure Active Directory authentication is enabled.withPasswordAuth(PasswordAuthEnum passwordAuth) Set the passwordAuth property: If Enabled, Password authentication is enabled.withTenantId(String tenantId) Set the tenantId property: Tenant id of the server.
-
Constructor Details
-
AuthConfig
public AuthConfig()Creates an instance of AuthConfig class.
-
-
Method Details
-
activeDirectoryAuth
Get the activeDirectoryAuth property: If Enabled, Azure Active Directory authentication is enabled.- Returns:
- the activeDirectoryAuth value.
-
withActiveDirectoryAuth
Set the activeDirectoryAuth property: If Enabled, Azure Active Directory authentication is enabled.- Parameters:
activeDirectoryAuth- the activeDirectoryAuth value to set.- Returns:
- the AuthConfig object itself.
-
passwordAuth
Get the passwordAuth property: If Enabled, Password authentication is enabled.- Returns:
- the passwordAuth value.
-
withPasswordAuth
Set the passwordAuth property: If Enabled, Password authentication is enabled.- Parameters:
passwordAuth- the passwordAuth value to set.- Returns:
- the AuthConfig object itself.
-
tenantId
Get the tenantId property: Tenant id of the server.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: Tenant id of the server.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the AuthConfig object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-