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

com.pulumi.azurenative.datafactory.outputs.SnowflakeV2LinkedServiceResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.datafactory.outputs;

import com.pulumi.azurenative.datafactory.outputs.AzureKeyVaultSecretReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.IntegrationRuntimeReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.ParameterSpecificationResponse;
import com.pulumi.azurenative.datafactory.outputs.SecureStringResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SnowflakeV2LinkedServiceResponse {
    /**
     * @return The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure
     * 
     */
    private Object accountIdentifier;
    /**
     * @return List of tags that can be used for describing the linked service.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return The type used for authentication. Type: string.
     * 
     */
    private @Nullable String authenticationType;
    /**
     * @return The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    private @Nullable Object clientId;
    /**
     * @return The Azure key vault secret reference of client secret for AADServicePrincipal authentication.
     * 
     */
    private @Nullable Either clientSecret;
    /**
     * @return The integration runtime reference.
     * 
     */
    private @Nullable IntegrationRuntimeReferenceResponse connectVia;
    /**
     * @return The name of the Snowflake database.
     * 
     */
    private Object database;
    /**
     * @return Linked service description.
     * 
     */
    private @Nullable String description;
    /**
     * @return The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     * 
     */
    private @Nullable String encryptedCredential;
    /**
     * @return Parameters for linked service.
     * 
     */
    private @Nullable Map parameters;
    /**
     * @return The Azure key vault secret reference of password in connection string.
     * 
     */
    private @Nullable Either password;
    /**
     * @return The Azure key vault secret reference of privateKey for KeyPair auth.
     * 
     */
    private @Nullable Either privateKey;
    /**
     * @return The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key.
     * 
     */
    private @Nullable Either privateKeyPassphrase;
    /**
     * @return The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    private @Nullable Object scope;
    /**
     * @return The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    private @Nullable Object tenantId;
    /**
     * @return Type of linked service.
     * Expected value is 'SnowflakeV2'.
     * 
     */
    private String type;
    /**
     * @return The name of the Snowflake user.
     * 
     */
    private @Nullable Object user;
    /**
     * @return Version of the linked service.
     * 
     */
    private @Nullable String version;
    /**
     * @return The name of the Snowflake warehouse.
     * 
     */
    private Object warehouse;

    private SnowflakeV2LinkedServiceResponse() {}
    /**
     * @return The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure
     * 
     */
    public Object accountIdentifier() {
        return this.accountIdentifier;
    }
    /**
     * @return List of tags that can be used for describing the linked service.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return The type used for authentication. Type: string.
     * 
     */
    public Optional authenticationType() {
        return Optional.ofNullable(this.authenticationType);
    }
    /**
     * @return The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    public Optional clientId() {
        return Optional.ofNullable(this.clientId);
    }
    /**
     * @return The Azure key vault secret reference of client secret for AADServicePrincipal authentication.
     * 
     */
    public Optional> clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }
    /**
     * @return The integration runtime reference.
     * 
     */
    public Optional connectVia() {
        return Optional.ofNullable(this.connectVia);
    }
    /**
     * @return The name of the Snowflake database.
     * 
     */
    public Object database() {
        return this.database;
    }
    /**
     * @return Linked service description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     * 
     */
    public Optional encryptedCredential() {
        return Optional.ofNullable(this.encryptedCredential);
    }
    /**
     * @return Parameters for linked service.
     * 
     */
    public Map parameters() {
        return this.parameters == null ? Map.of() : this.parameters;
    }
    /**
     * @return The Azure key vault secret reference of password in connection string.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }
    /**
     * @return The Azure key vault secret reference of privateKey for KeyPair auth.
     * 
     */
    public Optional> privateKey() {
        return Optional.ofNullable(this.privateKey);
    }
    /**
     * @return The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key.
     * 
     */
    public Optional> privateKeyPassphrase() {
        return Optional.ofNullable(this.privateKeyPassphrase);
    }
    /**
     * @return The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    public Optional scope() {
        return Optional.ofNullable(this.scope);
    }
    /**
     * @return The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    public Optional tenantId() {
        return Optional.ofNullable(this.tenantId);
    }
    /**
     * @return Type of linked service.
     * Expected value is 'SnowflakeV2'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The name of the Snowflake user.
     * 
     */
    public Optional user() {
        return Optional.ofNullable(this.user);
    }
    /**
     * @return Version of the linked service.
     * 
     */
    public Optional version() {
        return Optional.ofNullable(this.version);
    }
    /**
     * @return The name of the Snowflake warehouse.
     * 
     */
    public Object warehouse() {
        return this.warehouse;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(SnowflakeV2LinkedServiceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Object accountIdentifier;
        private @Nullable List annotations;
        private @Nullable String authenticationType;
        private @Nullable Object clientId;
        private @Nullable Either clientSecret;
        private @Nullable IntegrationRuntimeReferenceResponse connectVia;
        private Object database;
        private @Nullable String description;
        private @Nullable String encryptedCredential;
        private @Nullable Map parameters;
        private @Nullable Either password;
        private @Nullable Either privateKey;
        private @Nullable Either privateKeyPassphrase;
        private @Nullable Object scope;
        private @Nullable Object tenantId;
        private String type;
        private @Nullable Object user;
        private @Nullable String version;
        private Object warehouse;
        public Builder() {}
        public Builder(SnowflakeV2LinkedServiceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accountIdentifier = defaults.accountIdentifier;
    	      this.annotations = defaults.annotations;
    	      this.authenticationType = defaults.authenticationType;
    	      this.clientId = defaults.clientId;
    	      this.clientSecret = defaults.clientSecret;
    	      this.connectVia = defaults.connectVia;
    	      this.database = defaults.database;
    	      this.description = defaults.description;
    	      this.encryptedCredential = defaults.encryptedCredential;
    	      this.parameters = defaults.parameters;
    	      this.password = defaults.password;
    	      this.privateKey = defaults.privateKey;
    	      this.privateKeyPassphrase = defaults.privateKeyPassphrase;
    	      this.scope = defaults.scope;
    	      this.tenantId = defaults.tenantId;
    	      this.type = defaults.type;
    	      this.user = defaults.user;
    	      this.version = defaults.version;
    	      this.warehouse = defaults.warehouse;
        }

        @CustomType.Setter
        public Builder accountIdentifier(Object accountIdentifier) {
            if (accountIdentifier == null) {
              throw new MissingRequiredPropertyException("SnowflakeV2LinkedServiceResponse", "accountIdentifier");
            }
            this.accountIdentifier = accountIdentifier;
            return this;
        }
        @CustomType.Setter
        public Builder annotations(@Nullable List annotations) {

            this.annotations = annotations;
            return this;
        }
        public Builder annotations(Object... annotations) {
            return annotations(List.of(annotations));
        }
        @CustomType.Setter
        public Builder authenticationType(@Nullable String authenticationType) {

            this.authenticationType = authenticationType;
            return this;
        }
        @CustomType.Setter
        public Builder clientId(@Nullable Object clientId) {

            this.clientId = clientId;
            return this;
        }
        @CustomType.Setter
        public Builder clientSecret(@Nullable Either clientSecret) {

            this.clientSecret = clientSecret;
            return this;
        }
        @CustomType.Setter
        public Builder connectVia(@Nullable IntegrationRuntimeReferenceResponse connectVia) {

            this.connectVia = connectVia;
            return this;
        }
        @CustomType.Setter
        public Builder database(Object database) {
            if (database == null) {
              throw new MissingRequiredPropertyException("SnowflakeV2LinkedServiceResponse", "database");
            }
            this.database = database;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder encryptedCredential(@Nullable String encryptedCredential) {

            this.encryptedCredential = encryptedCredential;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(@Nullable Map parameters) {

            this.parameters = parameters;
            return this;
        }
        @CustomType.Setter
        public Builder password(@Nullable Either password) {

            this.password = password;
            return this;
        }
        @CustomType.Setter
        public Builder privateKey(@Nullable Either privateKey) {

            this.privateKey = privateKey;
            return this;
        }
        @CustomType.Setter
        public Builder privateKeyPassphrase(@Nullable Either privateKeyPassphrase) {

            this.privateKeyPassphrase = privateKeyPassphrase;
            return this;
        }
        @CustomType.Setter
        public Builder scope(@Nullable Object scope) {

            this.scope = scope;
            return this;
        }
        @CustomType.Setter
        public Builder tenantId(@Nullable Object tenantId) {

            this.tenantId = tenantId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("SnowflakeV2LinkedServiceResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder user(@Nullable Object user) {

            this.user = user;
            return this;
        }
        @CustomType.Setter
        public Builder version(@Nullable String version) {

            this.version = version;
            return this;
        }
        @CustomType.Setter
        public Builder warehouse(Object warehouse) {
            if (warehouse == null) {
              throw new MissingRequiredPropertyException("SnowflakeV2LinkedServiceResponse", "warehouse");
            }
            this.warehouse = warehouse;
            return this;
        }
        public SnowflakeV2LinkedServiceResponse build() {
            final var _resultValue = new SnowflakeV2LinkedServiceResponse();
            _resultValue.accountIdentifier = accountIdentifier;
            _resultValue.annotations = annotations;
            _resultValue.authenticationType = authenticationType;
            _resultValue.clientId = clientId;
            _resultValue.clientSecret = clientSecret;
            _resultValue.connectVia = connectVia;
            _resultValue.database = database;
            _resultValue.description = description;
            _resultValue.encryptedCredential = encryptedCredential;
            _resultValue.parameters = parameters;
            _resultValue.password = password;
            _resultValue.privateKey = privateKey;
            _resultValue.privateKeyPassphrase = privateKeyPassphrase;
            _resultValue.scope = scope;
            _resultValue.tenantId = tenantId;
            _resultValue.type = type;
            _resultValue.user = user;
            _resultValue.version = version;
            _resultValue.warehouse = warehouse;
            return _resultValue;
        }
    }
}