All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.trino.plugin.snowflake.SnowflakeConfig Maven / Gradle / Ivy

There is a newer version: 468
Show newest version
/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.trino.plugin.snowflake;

import io.airlift.configuration.Config;
import io.airlift.configuration.ConfigSecuritySensitive;

import java.util.Optional;

public class SnowflakeConfig
{
    private String account;
    private String database;
    private String role;
    private String warehouse;
    private String httpProxy;

    public Optional getAccount()
    {
        return Optional.ofNullable(account);
    }

    @Config("snowflake.account")
    public SnowflakeConfig setAccount(String account)
    {
        this.account = account;
        return this;
    }

    public Optional getDatabase()
    {
        return Optional.ofNullable(database);
    }

    @Config("snowflake.database")
    public SnowflakeConfig setDatabase(String database)
    {
        this.database = database;
        return this;
    }

    public Optional getRole()
    {
        return Optional.ofNullable(role);
    }

    @Config("snowflake.role")
    public SnowflakeConfig setRole(String role)
    {
        this.role = role;
        return this;
    }

    public Optional getWarehouse()
    {
        return Optional.ofNullable(warehouse);
    }

    @Config("snowflake.warehouse")
    public SnowflakeConfig setWarehouse(String warehouse)
    {
        this.warehouse = warehouse;
        return this;
    }

    public Optional getHttpProxy()
    {
        return Optional.ofNullable(httpProxy);
    }

    @Config("snowflake.http-proxy")
    @ConfigSecuritySensitive
    public SnowflakeConfig setHttpProxy(String httpProxy)
    {
        this.httpProxy = httpProxy;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy