Class AuthConfig
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.AuthConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthConfig>
Authentication configuration properties of a server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the activeDirectoryAuth property: Indicates if the server supports Microsoft Entra authentication.static AuthConfigfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AuthConfig from the JsonReader.Get the passwordAuth property: Indicates if the server supports password based authentication.tenantId()Get the tenantId property: Identifier of the tenant of the delegated resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withActiveDirectoryAuth(MicrosoftEntraAuth activeDirectoryAuth) Set the activeDirectoryAuth property: Indicates if the server supports Microsoft Entra authentication.withPasswordAuth(PasswordBasedAuth passwordAuth) Set the passwordAuth property: Indicates if the server supports password based authentication.withTenantId(String tenantId) Set the tenantId property: Identifier of the tenant of the delegated resource.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AuthConfig
public AuthConfig()Creates an instance of AuthConfig class.
-
-
Method Details
-
activeDirectoryAuth
Get the activeDirectoryAuth property: Indicates if the server supports Microsoft Entra authentication.- Returns:
- the activeDirectoryAuth value.
-
withActiveDirectoryAuth
Set the activeDirectoryAuth property: Indicates if the server supports Microsoft Entra authentication.- Parameters:
activeDirectoryAuth- the activeDirectoryAuth value to set.- Returns:
- the AuthConfig object itself.
-
passwordAuth
Get the passwordAuth property: Indicates if the server supports password based authentication.- Returns:
- the passwordAuth value.
-
withPasswordAuth
Set the passwordAuth property: Indicates if the server supports password based authentication.- Parameters:
passwordAuth- the passwordAuth value to set.- Returns:
- the AuthConfig object itself.
-
tenantId
Get the tenantId property: Identifier of the tenant of the delegated resource.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: Identifier of the tenant of the delegated resource.- 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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AuthConfig>- Throws:
IOException
-
fromJson
Reads an instance of AuthConfig from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AuthConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AuthConfig.
-