java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.AuthConfig

public final class AuthConfig extends Object
Authentication configuration properties of a server.
  • Constructor Details

    • AuthConfig

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

    • activeDirectoryAuth

      public ActiveDirectoryAuthEnum activeDirectoryAuth()
      Get the activeDirectoryAuth property: If Enabled, Azure Active Directory authentication is enabled.
      Returns:
      the activeDirectoryAuth value.
    • withActiveDirectoryAuth

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

      public PasswordAuthEnum passwordAuth()
      Get the passwordAuth property: If Enabled, Password authentication is enabled.
      Returns:
      the passwordAuth value.
    • withPasswordAuth

      public AuthConfig withPasswordAuth(PasswordAuthEnum passwordAuth)
      Set the passwordAuth property: If Enabled, Password authentication is enabled.
      Parameters:
      passwordAuth - the passwordAuth value to set.
      Returns:
      the AuthConfig object itself.
    • tenantId

      public String tenantId()
      Get the tenantId property: Tenant id of the server.
      Returns:
      the tenantId value.
    • withTenantId

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