Class BigqueryTableConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.bigquery_table.BigqueryTableConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BigqueryTableConfig>
- Enclosing interface:
- BigqueryTableConfig
@Stability(Stable) public static final class BigqueryTableConfig.Builder extends Object implements software.amazon.jsii.Builder<BigqueryTableConfig>
A builder forBigqueryTableConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
datasetId
@Stability(Stable) public BigqueryTableConfig.Builder datasetId(String datasetId)
Sets the value ofBigqueryTableConfig.getDatasetId()- Parameters:
datasetId- The dataset ID to create the table in. Changing this forces a new resource to be created. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#dataset_id BigqueryTable#dataset_id}- Returns:
this
-
tableId
@Stability(Stable) public BigqueryTableConfig.Builder tableId(String tableId)
Sets the value ofBigqueryTableConfig.getTableId()- Parameters:
tableId- A unique ID for the resource. Changing this forces a new resource to be created. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#table_id BigqueryTable#table_id}- Returns:
this
-
allowResourceTagsOnDeletion
@Stability(Stable) public BigqueryTableConfig.Builder allowResourceTagsOnDeletion(Boolean allowResourceTagsOnDeletion)
Sets the value ofBigqueryTableConfig.getAllowResourceTagsOnDeletion()- Parameters:
allowResourceTagsOnDeletion- Deprecated Whether or not to allow table deletion when there are still resource tags attached. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#allow_resource_tags_on_deletion BigqueryTable#allow_resource_tags_on_deletion}- Returns:
this
-
allowResourceTagsOnDeletion
@Stability(Stable) public BigqueryTableConfig.Builder allowResourceTagsOnDeletion(com.hashicorp.cdktf.IResolvable allowResourceTagsOnDeletion)
Sets the value ofBigqueryTableConfig.getAllowResourceTagsOnDeletion()- Parameters:
allowResourceTagsOnDeletion- Deprecated Whether or not to allow table deletion when there are still resource tags attached. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#allow_resource_tags_on_deletion BigqueryTable#allow_resource_tags_on_deletion}- Returns:
this
-
clustering
@Stability(Stable) public BigqueryTableConfig.Builder clustering(List<String> clustering)
Sets the value ofBigqueryTableConfig.getClustering()- Parameters:
clustering- Specifies column names to use for data clustering. Up to four top-level columns are allowed, and should be specified in descending priority order. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#clustering BigqueryTable#clustering}- Returns:
this
-
deletionProtection
@Stability(Stable) public BigqueryTableConfig.Builder deletionProtection(Boolean deletionProtection)
Sets the value ofBigqueryTableConfig.getDeletionProtection()- Parameters:
deletionProtection- Whether Terraform will be prevented from destroying the instance. When the field is set to true or unset in Terraform state, a terraform apply or terraform destroy that would delete the table will fail. When the field is set to false, deleting the table is allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#deletion_protection BigqueryTable#deletion_protection}- Returns:
this
-
deletionProtection
@Stability(Stable) public BigqueryTableConfig.Builder deletionProtection(com.hashicorp.cdktf.IResolvable deletionProtection)
Sets the value ofBigqueryTableConfig.getDeletionProtection()- Parameters:
deletionProtection- Whether Terraform will be prevented from destroying the instance. When the field is set to true or unset in Terraform state, a terraform apply or terraform destroy that would delete the table will fail. When the field is set to false, deleting the table is allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#deletion_protection BigqueryTable#deletion_protection}- Returns:
this
-
description
@Stability(Stable) public BigqueryTableConfig.Builder description(String description)
Sets the value ofBigqueryTableConfig.getDescription()- Parameters:
description- The field description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#description BigqueryTable#description}- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public BigqueryTableConfig.Builder encryptionConfiguration(BigqueryTableEncryptionConfiguration encryptionConfiguration)
Sets the value ofBigqueryTableConfig.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- encryption_configuration block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#encryption_configuration BigqueryTable#encryption_configuration}- Returns:
this
-
expirationTime
@Stability(Stable) public BigqueryTableConfig.Builder expirationTime(Number expirationTime)
Sets the value ofBigqueryTableConfig.getExpirationTime()- Parameters:
expirationTime- The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#expiration_time BigqueryTable#expiration_time}- Returns:
this
-
externalDataConfiguration
@Stability(Stable) public BigqueryTableConfig.Builder externalDataConfiguration(BigqueryTableExternalDataConfiguration externalDataConfiguration)
Sets the value ofBigqueryTableConfig.getExternalDataConfiguration()- Parameters:
externalDataConfiguration- external_data_configuration block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#external_data_configuration BigqueryTable#external_data_configuration}- Returns:
this
-
friendlyName
@Stability(Stable) public BigqueryTableConfig.Builder friendlyName(String friendlyName)
Sets the value ofBigqueryTableConfig.getFriendlyName()- Parameters:
friendlyName- A descriptive name for the table. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#friendly_name BigqueryTable#friendly_name}- Returns:
this
-
id
@Stability(Stable) public BigqueryTableConfig.Builder id(String id)
Sets the value ofBigqueryTableConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#id BigqueryTable#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.- Returns:
this
-
labels
@Stability(Stable) public BigqueryTableConfig.Builder labels(Map<String,String> labels)
Sets the value ofBigqueryTableConfig.getLabels()- Parameters:
labels- A mapping of labels to assign to the resource. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#labels BigqueryTable#labels}- Returns:
this
-
materializedView
@Stability(Stable) public BigqueryTableConfig.Builder materializedView(BigqueryTableMaterializedView materializedView)
Sets the value ofBigqueryTableConfig.getMaterializedView()- Parameters:
materializedView- materialized_view block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#materialized_view BigqueryTable#materialized_view}- Returns:
this
-
maxStaleness
@Stability(Stable) public BigqueryTableConfig.Builder maxStaleness(String maxStaleness)
Sets the value ofBigqueryTableConfig.getMaxStaleness()- Parameters:
maxStaleness- The maximum staleness of data that could be returned when the table (or stale MV) is queried. Staleness encoded as a string encoding of [SQL IntervalValue type](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#interval_type). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#max_staleness BigqueryTable#max_staleness}- Returns:
this
-
project
@Stability(Stable) public BigqueryTableConfig.Builder project(String project)
Sets the value ofBigqueryTableConfig.getProject()- Parameters:
project- The ID of the project in which the resource belongs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#project BigqueryTable#project}- Returns:
this
-
rangePartitioning
@Stability(Stable) public BigqueryTableConfig.Builder rangePartitioning(BigqueryTableRangePartitioning rangePartitioning)
Sets the value ofBigqueryTableConfig.getRangePartitioning()- Parameters:
rangePartitioning- range_partitioning block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#range_partitioning BigqueryTable#range_partitioning}- Returns:
this
-
requirePartitionFilter
@Stability(Stable) public BigqueryTableConfig.Builder requirePartitionFilter(Boolean requirePartitionFilter)
Sets the value ofBigqueryTableConfig.getRequirePartitionFilter()- Parameters:
requirePartitionFilter- If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#require_partition_filter BigqueryTable#require_partition_filter}- Returns:
this
-
requirePartitionFilter
@Stability(Stable) public BigqueryTableConfig.Builder requirePartitionFilter(com.hashicorp.cdktf.IResolvable requirePartitionFilter)
Sets the value ofBigqueryTableConfig.getRequirePartitionFilter()- Parameters:
requirePartitionFilter- If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#require_partition_filter BigqueryTable#require_partition_filter}- Returns:
this
-
resourceTags
@Stability(Stable) public BigqueryTableConfig.Builder resourceTags(Map<String,String> resourceTags)
Sets the value ofBigqueryTableConfig.getResourceTags()- Parameters:
resourceTags- The tags attached to this table. Tag keys are globally unique. Tag key is expected to be in the namespaced format, for example "123456789012/environment" where 123456789012 is the ID of the parent organization or project resource for this tag key. Tag value is expected to be the short name, for example "Production". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#resource_tags BigqueryTable#resource_tags}- Returns:
this
-
schema
@Stability(Stable) public BigqueryTableConfig.Builder schema(String schema)
Sets the value ofBigqueryTableConfig.getSchema()- Parameters:
schema- A JSON schema for the table. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#schema BigqueryTable#schema}- Returns:
this
-
tableConstraints
@Stability(Stable) public BigqueryTableConfig.Builder tableConstraints(BigqueryTableTableConstraints tableConstraints)
Sets the value ofBigqueryTableConfig.getTableConstraints()- Parameters:
tableConstraints- table_constraints block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#table_constraints BigqueryTable#table_constraints}- Returns:
this
-
tableReplicationInfo
@Stability(Stable) public BigqueryTableConfig.Builder tableReplicationInfo(BigqueryTableTableReplicationInfo tableReplicationInfo)
Sets the value ofBigqueryTableConfig.getTableReplicationInfo()- Parameters:
tableReplicationInfo- table_replication_info block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#table_replication_info BigqueryTable#table_replication_info}- Returns:
this
-
timePartitioning
@Stability(Stable) public BigqueryTableConfig.Builder timePartitioning(BigqueryTableTimePartitioning timePartitioning)
Sets the value ofBigqueryTableConfig.getTimePartitioning()- Parameters:
timePartitioning- time_partitioning block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#time_partitioning BigqueryTable#time_partitioning}- Returns:
this
-
view
@Stability(Stable) public BigqueryTableConfig.Builder view(BigqueryTableView view)
Sets the value ofBigqueryTableConfig.getView()- Parameters:
view- view block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#view BigqueryTable#view}- Returns:
this
-
connection
@Stability(Experimental) public BigqueryTableConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public BigqueryTableConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public BigqueryTableConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public BigqueryTableConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public BigqueryTableConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public BigqueryTableConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public BigqueryTableConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public BigqueryTableConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public BigqueryTableConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public BigqueryTableConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BigqueryTableConfig>- Returns:
- a new instance of
BigqueryTableConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-