Class AuthConfig

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.AuthConfig
All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthConfig>

public final class AuthConfig extends Object implements com.azure.json.JsonSerializable<AuthConfig>
Authentication configuration properties of a server.
  • Constructor Details

    • AuthConfig

      public AuthConfig()
      Creates an instance of AuthConfig class.
  • Method Details

    • activeDirectoryAuth

      public MicrosoftEntraAuth activeDirectoryAuth()
      Get the activeDirectoryAuth property: Indicates if the server supports Microsoft Entra authentication.
      Returns:
      the activeDirectoryAuth value.
    • withActiveDirectoryAuth

      public AuthConfig withActiveDirectoryAuth(MicrosoftEntraAuth activeDirectoryAuth)
      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

      public PasswordBasedAuth passwordAuth()
      Get the passwordAuth property: Indicates if the server supports password based authentication.
      Returns:
      the passwordAuth value.
    • withPasswordAuth

      public AuthConfig withPasswordAuth(PasswordBasedAuth passwordAuth)
      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

      public String tenantId()
      Get the tenantId property: Identifier of the tenant of the delegated resource.
      Returns:
      the tenantId value.
    • withTenantId

      public AuthConfig withTenantId(String tenantId)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AuthConfig>
      Throws:
      IOException
    • fromJson

      public static AuthConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.