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

com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTable Maven / Gradle / Ivy

The newest version!
package com.hashicorp.cdktf.providers.snowflake.external_table;

/**
 * Represents a {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table snowflake_external_table}.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.383Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.externalTable.ExternalTable")
public class ExternalTable extends com.hashicorp.cdktf.TerraformResource {

    protected ExternalTable(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected ExternalTable(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    static {
        TF_RESOURCE_TYPE = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTable.class, "tfResourceType", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
    }

    /**
     * Create a new {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table snowflake_external_table} Resource.
     * 

* @param scope The scope in which to define this construct. This parameter is required. * @param id The scoped construct ID. This parameter is required. * @param config This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public ExternalTable(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTableConfig config) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(config, "config is required") }); } /** * Generates CDKTF code for importing a ExternalTable resource upon running "cdktf plan ". *

* @param scope The scope in which to define this construct. This parameter is required. * @param importToId The construct id used in the generated config for the ExternalTable to import. This parameter is required. * @param importFromId The id of the existing ExternalTable that should be imported. This parameter is required. * @param provider ? Optional instance of the provider where the ExternalTable to import is found. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.ImportableResource generateConfigForImport(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String importToId, final @org.jetbrains.annotations.NotNull java.lang.String importFromId, final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformProvider provider) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTable.class, "generateConfigForImport", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.ImportableResource.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(importToId, "importToId is required"), java.util.Objects.requireNonNull(importFromId, "importFromId is required"), provider }); } /** * Generates CDKTF code for importing a ExternalTable resource upon running "cdktf plan ". *

* @param scope The scope in which to define this construct. This parameter is required. * @param importToId The construct id used in the generated config for the ExternalTable to import. This parameter is required. * @param importFromId The id of the existing ExternalTable that should be imported. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.ImportableResource generateConfigForImport(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String importToId, final @org.jetbrains.annotations.NotNull java.lang.String importFromId) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTable.class, "generateConfigForImport", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.ImportableResource.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(importToId, "importToId is required"), java.util.Objects.requireNonNull(importFromId, "importFromId is required") }); } /** * @param value This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void putColumn(final @org.jetbrains.annotations.NotNull java.lang.Object value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { if ( !(value instanceof com.hashicorp.cdktf.IResolvable) && !(value instanceof java.util.List) && !(value.getClass().equals(software.amazon.jsii.JsiiObject.class)) ) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value") .append(" to be one of: com.hashicorp.cdktf.IResolvable, java.util.List; received ") .append(value.getClass()).toString()); } if (value instanceof java.util.List) { @SuppressWarnings("unchecked") final java.util.List __cast_cd4240 = (java.util.List)value; for (int __idx_ac66f0 = 0; __idx_ac66f0 < __cast_cd4240.size(); __idx_ac66f0++) { final com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTableColumn __val_ac66f0 = __cast_cd4240.get(__idx_ac66f0); } } } software.amazon.jsii.Kernel.call(this, "putColumn", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** * @param value This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void putTag(final @org.jetbrains.annotations.NotNull java.lang.Object value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { if ( !(value instanceof com.hashicorp.cdktf.IResolvable) && !(value instanceof java.util.List) && !(value.getClass().equals(software.amazon.jsii.JsiiObject.class)) ) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value") .append(" to be one of: com.hashicorp.cdktf.IResolvable, java.util.List; received ") .append(value.getClass()).toString()); } if (value instanceof java.util.List) { @SuppressWarnings("unchecked") final java.util.List __cast_cd4240 = (java.util.List)value; for (int __idx_ac66f0 = 0; __idx_ac66f0 < __cast_cd4240.size(); __idx_ac66f0++) { final com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTableTag __val_ac66f0 = __cast_cd4240.get(__idx_ac66f0); } } } software.amazon.jsii.Kernel.call(this, "putTag", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(value, "value is required") }); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void resetAutoRefresh() { software.amazon.jsii.Kernel.call(this, "resetAutoRefresh", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void resetAwsSnsTopic() { software.amazon.jsii.Kernel.call(this, "resetAwsSnsTopic", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void resetComment() { software.amazon.jsii.Kernel.call(this, "resetComment", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void resetCopyGrants() { software.amazon.jsii.Kernel.call(this, "resetCopyGrants", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void resetId() { software.amazon.jsii.Kernel.call(this, "resetId", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void resetPartitionBy() { software.amazon.jsii.Kernel.call(this, "resetPartitionBy", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void resetPattern() { software.amazon.jsii.Kernel.call(this, "resetPattern", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void resetRefreshOnCreate() { software.amazon.jsii.Kernel.call(this, "resetRefreshOnCreate", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void resetTableFormat() { software.amazon.jsii.Kernel.call(this, "resetTableFormat", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void resetTag() { software.amazon.jsii.Kernel.call(this, "resetTag", software.amazon.jsii.NativeType.VOID); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override protected @org.jetbrains.annotations.NotNull java.util.Map synthesizeAttributes() { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "synthesizeAttributes", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override protected @org.jetbrains.annotations.NotNull java.util.Map synthesizeHclAttributes() { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "synthesizeHclAttributes", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static java.lang.String TF_RESOURCE_TYPE; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTableColumnList getColumn() { return software.amazon.jsii.Kernel.get(this, "column", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTableColumnList.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getOwner() { return software.amazon.jsii.Kernel.get(this, "owner", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTableTagList getTag() { return software.amazon.jsii.Kernel.get(this, "tag", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTableTagList.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Object getAutoRefreshInput() { return software.amazon.jsii.Kernel.get(this, "autoRefreshInput", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getAwsSnsTopicInput() { return software.amazon.jsii.Kernel.get(this, "awsSnsTopicInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Object getColumnInput() { return software.amazon.jsii.Kernel.get(this, "columnInput", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getCommentInput() { return software.amazon.jsii.Kernel.get(this, "commentInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Object getCopyGrantsInput() { return software.amazon.jsii.Kernel.get(this, "copyGrantsInput", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getDatabaseInput() { return software.amazon.jsii.Kernel.get(this, "databaseInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getFileFormatInput() { return software.amazon.jsii.Kernel.get(this, "fileFormatInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getIdInput() { return software.amazon.jsii.Kernel.get(this, "idInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getLocationInput() { return software.amazon.jsii.Kernel.get(this, "locationInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getNameInput() { return software.amazon.jsii.Kernel.get(this, "nameInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.util.List getPartitionByInput() { return java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.Kernel.get(this, "partitionByInput", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getPatternInput() { return software.amazon.jsii.Kernel.get(this, "patternInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Object getRefreshOnCreateInput() { return software.amazon.jsii.Kernel.get(this, "refreshOnCreateInput", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getSchemaInput() { return software.amazon.jsii.Kernel.get(this, "schemaInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.String getTableFormatInput() { return software.amazon.jsii.Kernel.get(this, "tableFormatInput", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.Nullable java.lang.Object getTagInput() { return software.amazon.jsii.Kernel.get(this, "tagInput", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.Object getAutoRefresh() { return software.amazon.jsii.Kernel.get(this, "autoRefresh", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setAutoRefresh(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "autoRefresh", java.util.Objects.requireNonNull(value, "autoRefresh is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setAutoRefresh(final @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.IResolvable value) { software.amazon.jsii.Kernel.set(this, "autoRefresh", java.util.Objects.requireNonNull(value, "autoRefresh is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getAwsSnsTopic() { return software.amazon.jsii.Kernel.get(this, "awsSnsTopic", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setAwsSnsTopic(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "awsSnsTopic", java.util.Objects.requireNonNull(value, "awsSnsTopic is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getComment() { return software.amazon.jsii.Kernel.get(this, "comment", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setComment(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "comment", java.util.Objects.requireNonNull(value, "comment is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.Object getCopyGrants() { return software.amazon.jsii.Kernel.get(this, "copyGrants", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setCopyGrants(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "copyGrants", java.util.Objects.requireNonNull(value, "copyGrants is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setCopyGrants(final @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.IResolvable value) { software.amazon.jsii.Kernel.set(this, "copyGrants", java.util.Objects.requireNonNull(value, "copyGrants is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getDatabase() { return software.amazon.jsii.Kernel.get(this, "database", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setDatabase(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "database", java.util.Objects.requireNonNull(value, "database is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getFileFormat() { return software.amazon.jsii.Kernel.get(this, "fileFormat", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setFileFormat(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "fileFormat", java.util.Objects.requireNonNull(value, "fileFormat is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getId() { return software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setId(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "id", java.util.Objects.requireNonNull(value, "id is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getLocation() { return software.amazon.jsii.Kernel.get(this, "location", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setLocation(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "location", java.util.Objects.requireNonNull(value, "location is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getName() { return software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setName(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "name", java.util.Objects.requireNonNull(value, "name is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.util.List getPartitionBy() { return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "partitionBy", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setPartitionBy(final @org.jetbrains.annotations.NotNull java.util.List value) { software.amazon.jsii.Kernel.set(this, "partitionBy", java.util.Objects.requireNonNull(value, "partitionBy is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getPattern() { return software.amazon.jsii.Kernel.get(this, "pattern", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setPattern(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "pattern", java.util.Objects.requireNonNull(value, "pattern is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.Object getRefreshOnCreate() { return software.amazon.jsii.Kernel.get(this, "refreshOnCreate", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setRefreshOnCreate(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "refreshOnCreate", java.util.Objects.requireNonNull(value, "refreshOnCreate is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setRefreshOnCreate(final @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.IResolvable value) { software.amazon.jsii.Kernel.set(this, "refreshOnCreate", java.util.Objects.requireNonNull(value, "refreshOnCreate is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getSchema() { return software.amazon.jsii.Kernel.get(this, "schema", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setSchema(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "schema", java.util.Objects.requireNonNull(value, "schema is required")); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getTableFormat() { return software.amazon.jsii.Kernel.get(this, "tableFormat", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public void setTableFormat(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "tableFormat", java.util.Objects.requireNonNull(value, "tableFormat is required")); } /** * A fluent builder for {@link com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTable}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope The scope in which to define this construct. This parameter is required. * @param id The scoped construct ID. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.constructs.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.constructs.Construct scope; private final java.lang.String id; private final com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTableConfig.Builder config; private Builder(final software.constructs.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.config = new com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTableConfig.Builder(); } /** * @return {@code this} * @param connection This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder connection(final com.hashicorp.cdktf.SSHProvisionerConnection connection) { this.config.connection(connection); return this; } /** * @return {@code this} * @param connection This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder connection(final com.hashicorp.cdktf.WinrmProvisionerConnection connection) { this.config.connection(connection); return this; } /** * @return {@code this} * @param count This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder count(final java.lang.Number count) { this.config.count(count); return this; } /** * @return {@code this} * @param count This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder count(final com.hashicorp.cdktf.TerraformCount count) { this.config.count(count); return this; } /** * @return {@code this} * @param dependsOn This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder dependsOn(final java.util.List dependsOn) { this.config.dependsOn(dependsOn); return this; } /** * @return {@code this} * @param forEach This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder forEach(final com.hashicorp.cdktf.ITerraformIterator forEach) { this.config.forEach(forEach); return this; } /** * @return {@code this} * @param lifecycle This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder lifecycle(final com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle) { this.config.lifecycle(lifecycle); return this; } /** * @return {@code this} * @param provider This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder provider(final com.hashicorp.cdktf.TerraformProvider provider) { this.config.provider(provider); return this; } /** * @return {@code this} * @param provisioners This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder provisioners(final java.util.List provisioners) { this.config.provisioners(provisioners); return this; } /** * column block. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#column ExternalTable#column} *

* @return {@code this} * @param column column block. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder column(final com.hashicorp.cdktf.IResolvable column) { this.config.column(column); return this; } /** * column block. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#column ExternalTable#column} *

* @return {@code this} * @param column column block. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder column(final java.util.List column) { this.config.column(column); return this; } /** * The database in which to create the external table. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#database ExternalTable#database} *

* @return {@code this} * @param database The database in which to create the external table. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder database(final java.lang.String database) { this.config.database(database); return this; } /** * Specifies the file format for the external table. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#file_format ExternalTable#file_format} *

* @return {@code this} * @param fileFormat Specifies the file format for the external table. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder fileFormat(final java.lang.String fileFormat) { this.config.fileFormat(fileFormat); return this; } /** * Specifies a location for the external table. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#location ExternalTable#location} *

* @return {@code this} * @param location Specifies a location for the external table. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder location(final java.lang.String location) { this.config.location(location); return this; } /** * Specifies the identifier for the external table; *

* must be unique for the database and schema in which the externalTable is created. * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#name ExternalTable#name} *

* @return {@code this} * @param name Specifies the identifier for the external table;. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(final java.lang.String name) { this.config.name(name); return this; } /** * The schema in which to create the external table. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#schema ExternalTable#schema} *

* @return {@code this} * @param schema The schema in which to create the external table. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder schema(final java.lang.String schema) { this.config.schema(schema); return this; } /** * Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#auto_refresh ExternalTable#auto_refresh} *

* @return {@code this} * @param autoRefresh Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder autoRefresh(final java.lang.Boolean autoRefresh) { this.config.autoRefresh(autoRefresh); return this; } /** * Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#auto_refresh ExternalTable#auto_refresh} *

* @return {@code this} * @param autoRefresh Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder autoRefresh(final com.hashicorp.cdktf.IResolvable autoRefresh) { this.config.autoRefresh(autoRefresh); return this; } /** * Specifies the aws sns topic for the external table. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#aws_sns_topic ExternalTable#aws_sns_topic} *

* @return {@code this} * @param awsSnsTopic Specifies the aws sns topic for the external table. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder awsSnsTopic(final java.lang.String awsSnsTopic) { this.config.awsSnsTopic(awsSnsTopic); return this; } /** * Specifies a comment for the external table. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#comment ExternalTable#comment} *

* @return {@code this} * @param comment Specifies a comment for the external table. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder comment(final java.lang.String comment) { this.config.comment(comment); return this; } /** * Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#copy_grants ExternalTable#copy_grants} *

* @return {@code this} * @param copyGrants Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder copyGrants(final java.lang.Boolean copyGrants) { this.config.copyGrants(copyGrants); return this; } /** * Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#copy_grants ExternalTable#copy_grants} *

* @return {@code this} * @param copyGrants Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder copyGrants(final com.hashicorp.cdktf.IResolvable copyGrants) { this.config.copyGrants(copyGrants); return this; } /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#id ExternalTable#id}. *

* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. *

* @return {@code this} * @param id Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#id ExternalTable#id}. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder id(final java.lang.String id) { this.config.id(id); return this; } /** * Specifies any partition columns to evaluate for the external table. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#partition_by ExternalTable#partition_by} *

* @return {@code this} * @param partitionBy Specifies any partition columns to evaluate for the external table. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder partitionBy(final java.util.List partitionBy) { this.config.partitionBy(partitionBy); return this; } /** * Specifies the file names and/or paths on the external stage to match. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#pattern ExternalTable#pattern} *

* @return {@code this} * @param pattern Specifies the file names and/or paths on the external stage to match. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder pattern(final java.lang.String pattern) { this.config.pattern(pattern); return this; } /** * Specifies weather to refresh when an external table is created. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#refresh_on_create ExternalTable#refresh_on_create} *

* @return {@code this} * @param refreshOnCreate Specifies weather to refresh when an external table is created. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder refreshOnCreate(final java.lang.Boolean refreshOnCreate) { this.config.refreshOnCreate(refreshOnCreate); return this; } /** * Specifies weather to refresh when an external table is created. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#refresh_on_create ExternalTable#refresh_on_create} *

* @return {@code this} * @param refreshOnCreate Specifies weather to refresh when an external table is created. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder refreshOnCreate(final com.hashicorp.cdktf.IResolvable refreshOnCreate) { this.config.refreshOnCreate(refreshOnCreate); return this; } /** * Identifies the external table table type. For now, only "delta" for Delta Lake table format is supported. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#table_format ExternalTable#table_format} *

* @return {@code this} * @param tableFormat Identifies the external table table type. For now, only "delta" for Delta Lake table format is supported. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder tableFormat(final java.lang.String tableFormat) { this.config.tableFormat(tableFormat); return this; } /** * tag block. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#tag ExternalTable#tag} *

* @return {@code this} * @param tag tag block. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder tag(final com.hashicorp.cdktf.IResolvable tag) { this.config.tag(tag); return this; } /** * tag block. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/external_table#tag ExternalTable#tag} *

* @return {@code this} * @param tag tag block. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder tag(final java.util.List tag) { this.config.tag(tag); return this; } /** * @return a newly built instance of {@link com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTable}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTable build() { return new com.hashicorp.cdktf.providers.snowflake.external_table.ExternalTable( this.scope, this.id, this.config.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy