Class AuthConfigForPatch
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.AuthConfigForPatch
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthConfigForPatch>
public final class AuthConfigForPatch
extends Object
implements com.azure.json.JsonSerializable<AuthConfigForPatch>
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 AuthConfigForPatchfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AuthConfigForPatch 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
-
AuthConfigForPatch
public AuthConfigForPatch()Creates an instance of AuthConfigForPatch 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 AuthConfigForPatch 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 AuthConfigForPatch 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 AuthConfigForPatch 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<AuthConfigForPatch>- Throws:
IOException
-
fromJson
Reads an instance of AuthConfigForPatch from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AuthConfigForPatch 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 AuthConfigForPatch.
-