public Properties asProperties()

in fastmodel-driver/fastmodel-driver-cli/src/main/java/com/aliyun/fastmodel/driver/cli/command/ClientOptions.java [68:101]


    public Properties asProperties() {
        Properties properties = new Properties();
        if (ssl != null) {
            properties.setProperty("ssl", ssl);
        }
        if (server != null) {
            properties.setProperty("url", server);
        }
        if (path != null) {
            properties.setProperty("path", path);
        }
        if (baseKey != null) {
            properties.setProperty("baseKey", baseKey);
        }
        if (accessToken != null) {
            properties.setProperty("token", accessToken);
        }
        if (database != null) {
            properties.setProperty("database", database);
        }
        if (tenantId != null) {
            properties.setProperty("tenantId", tenantId);
        }
        if (user != null) {
            properties.setProperty("user", user);
        }
        if (showName != null) {
            properties.setProperty("showName", showName);
        }
        if (buCode != null) {
            properties.setProperty("buCode", buCode);
        }
        return properties;
    }