class AzureDatabaseServerView {

    public String getDatabaseType() {
        if (databaseServer.getEngine() == null) {
            return null;
        }
        switch (databaseServer.getEngine()) {
            case POSTGRESQL:
                return "postgres";
            default:
                throw new IllegalStateException("Unsupported Azure Database Server engine " + databaseServer.getEngine());
        }
    }

    public  AzureDatabaseServerView(DatabaseServer databaseServer);

}