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

com.pulumi.snowflake.StorageIntegrationArgs Maven / Gradle / Ivy

// *** 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.snowflake;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class StorageIntegrationArgs extends com.pulumi.resources.ResourceArgs {

    public static final StorageIntegrationArgs Empty = new StorageIntegrationArgs();

    @Import(name="azureTenantId")
    private @Nullable Output azureTenantId;

    public Optional> azureTenantId() {
        return Optional.ofNullable(this.azureTenantId);
    }

    @Import(name="comment")
    private @Nullable Output comment;

    public Optional> comment() {
        return Optional.ofNullable(this.comment);
    }

    @Import(name="enabled")
    private @Nullable Output enabled;

    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    @Import(name="name")
    private @Nullable Output name;

    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Explicitly limits external stages that use the integration to reference one or more storage locations.
     * 
     */
    @Import(name="storageAllowedLocations", required=true)
    private Output> storageAllowedLocations;

    /**
     * @return Explicitly limits external stages that use the integration to reference one or more storage locations.
     * 
     */
    public Output> storageAllowedLocations() {
        return this.storageAllowedLocations;
    }

    /**
     * "bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.
     * 
     */
    @Import(name="storageAwsObjectAcl")
    private @Nullable Output storageAwsObjectAcl;

    /**
     * @return "bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.
     * 
     */
    public Optional> storageAwsObjectAcl() {
        return Optional.ofNullable(this.storageAwsObjectAcl);
    }

    @Import(name="storageAwsRoleArn")
    private @Nullable Output storageAwsRoleArn;

    public Optional> storageAwsRoleArn() {
        return Optional.ofNullable(this.storageAwsRoleArn);
    }

    /**
     * Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
     * 
     */
    @Import(name="storageBlockedLocations")
    private @Nullable Output> storageBlockedLocations;

    /**
     * @return Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
     * 
     */
    public Optional>> storageBlockedLocations() {
        return Optional.ofNullable(this.storageBlockedLocations);
    }

    /**
     * Specifies the storage provider for the integration. Valid options are: `S3` | `S3GOV` | `S3CHINA` | `GCS` | `AZURE`
     * 
     */
    @Import(name="storageProvider", required=true)
    private Output storageProvider;

    /**
     * @return Specifies the storage provider for the integration. Valid options are: `S3` | `S3GOV` | `S3CHINA` | `GCS` | `AZURE`
     * 
     */
    public Output storageProvider() {
        return this.storageProvider;
    }

    @Import(name="type")
    private @Nullable Output type;

    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private StorageIntegrationArgs() {}

    private StorageIntegrationArgs(StorageIntegrationArgs $) {
        this.azureTenantId = $.azureTenantId;
        this.comment = $.comment;
        this.enabled = $.enabled;
        this.name = $.name;
        this.storageAllowedLocations = $.storageAllowedLocations;
        this.storageAwsObjectAcl = $.storageAwsObjectAcl;
        this.storageAwsRoleArn = $.storageAwsRoleArn;
        this.storageBlockedLocations = $.storageBlockedLocations;
        this.storageProvider = $.storageProvider;
        this.type = $.type;
    }

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

    public static final class Builder {
        private StorageIntegrationArgs $;

        public Builder() {
            $ = new StorageIntegrationArgs();
        }

        public Builder(StorageIntegrationArgs defaults) {
            $ = new StorageIntegrationArgs(Objects.requireNonNull(defaults));
        }

        public Builder azureTenantId(@Nullable Output azureTenantId) {
            $.azureTenantId = azureTenantId;
            return this;
        }

        public Builder azureTenantId(String azureTenantId) {
            return azureTenantId(Output.of(azureTenantId));
        }

        public Builder comment(@Nullable Output comment) {
            $.comment = comment;
            return this;
        }

        public Builder comment(String comment) {
            return comment(Output.of(comment));
        }

        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param storageAllowedLocations Explicitly limits external stages that use the integration to reference one or more storage locations.
         * 
         * @return builder
         * 
         */
        public Builder storageAllowedLocations(Output> storageAllowedLocations) {
            $.storageAllowedLocations = storageAllowedLocations;
            return this;
        }

        /**
         * @param storageAllowedLocations Explicitly limits external stages that use the integration to reference one or more storage locations.
         * 
         * @return builder
         * 
         */
        public Builder storageAllowedLocations(List storageAllowedLocations) {
            return storageAllowedLocations(Output.of(storageAllowedLocations));
        }

        /**
         * @param storageAllowedLocations Explicitly limits external stages that use the integration to reference one or more storage locations.
         * 
         * @return builder
         * 
         */
        public Builder storageAllowedLocations(String... storageAllowedLocations) {
            return storageAllowedLocations(List.of(storageAllowedLocations));
        }

        /**
         * @param storageAwsObjectAcl "bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.
         * 
         * @return builder
         * 
         */
        public Builder storageAwsObjectAcl(@Nullable Output storageAwsObjectAcl) {
            $.storageAwsObjectAcl = storageAwsObjectAcl;
            return this;
        }

        /**
         * @param storageAwsObjectAcl "bucket-owner-full-control" Enables support for AWS access control lists (ACLs) to grant the bucket owner full control.
         * 
         * @return builder
         * 
         */
        public Builder storageAwsObjectAcl(String storageAwsObjectAcl) {
            return storageAwsObjectAcl(Output.of(storageAwsObjectAcl));
        }

        public Builder storageAwsRoleArn(@Nullable Output storageAwsRoleArn) {
            $.storageAwsRoleArn = storageAwsRoleArn;
            return this;
        }

        public Builder storageAwsRoleArn(String storageAwsRoleArn) {
            return storageAwsRoleArn(Output.of(storageAwsRoleArn));
        }

        /**
         * @param storageBlockedLocations Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
         * 
         * @return builder
         * 
         */
        public Builder storageBlockedLocations(@Nullable Output> storageBlockedLocations) {
            $.storageBlockedLocations = storageBlockedLocations;
            return this;
        }

        /**
         * @param storageBlockedLocations Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
         * 
         * @return builder
         * 
         */
        public Builder storageBlockedLocations(List storageBlockedLocations) {
            return storageBlockedLocations(Output.of(storageBlockedLocations));
        }

        /**
         * @param storageBlockedLocations Explicitly prohibits external stages that use the integration from referencing one or more storage locations.
         * 
         * @return builder
         * 
         */
        public Builder storageBlockedLocations(String... storageBlockedLocations) {
            return storageBlockedLocations(List.of(storageBlockedLocations));
        }

        /**
         * @param storageProvider Specifies the storage provider for the integration. Valid options are: `S3` | `S3GOV` | `S3CHINA` | `GCS` | `AZURE`
         * 
         * @return builder
         * 
         */
        public Builder storageProvider(Output storageProvider) {
            $.storageProvider = storageProvider;
            return this;
        }

        /**
         * @param storageProvider Specifies the storage provider for the integration. Valid options are: `S3` | `S3GOV` | `S3CHINA` | `GCS` | `AZURE`
         * 
         * @return builder
         * 
         */
        public Builder storageProvider(String storageProvider) {
            return storageProvider(Output.of(storageProvider));
        }

        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        public Builder type(String type) {
            return type(Output.of(type));
        }

        public StorageIntegrationArgs build() {
            if ($.storageAllowedLocations == null) {
                throw new MissingRequiredPropertyException("StorageIntegrationArgs", "storageAllowedLocations");
            }
            if ($.storageProvider == null) {
                throw new MissingRequiredPropertyException("StorageIntegrationArgs", "storageProvider");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy