Class BigqueryTableTimePartitioning.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.bigquery_table.BigqueryTableTimePartitioning.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BigqueryTableTimePartitioning>
- Enclosing interface:
- BigqueryTableTimePartitioning
@Stability(Stable) public static final class BigqueryTableTimePartitioning.Builder extends Object implements software.amazon.jsii.Builder<BigqueryTableTimePartitioning>
A builder forBigqueryTableTimePartitioning
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigqueryTableTimePartitioningbuild()Builds the configured instance.BigqueryTableTimePartitioning.BuilderexpirationMs(Number expirationMs)Sets the value ofBigqueryTableTimePartitioning.getExpirationMs()BigqueryTableTimePartitioning.Builderfield(String field)Sets the value ofBigqueryTableTimePartitioning.getField()BigqueryTableTimePartitioning.BuilderrequirePartitionFilter(com.hashicorp.cdktf.IResolvable requirePartitionFilter)Sets the value ofBigqueryTableTimePartitioning.getRequirePartitionFilter()BigqueryTableTimePartitioning.BuilderrequirePartitionFilter(Boolean requirePartitionFilter)Sets the value ofBigqueryTableTimePartitioning.getRequirePartitionFilter()BigqueryTableTimePartitioning.Buildertype(String type)Sets the value ofBigqueryTableTimePartitioning.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public BigqueryTableTimePartitioning.Builder type(String type)
Sets the value ofBigqueryTableTimePartitioning.getType()- Parameters:
type- The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#type BigqueryTable#type}- Returns:
this
-
expirationMs
@Stability(Stable) public BigqueryTableTimePartitioning.Builder expirationMs(Number expirationMs)
Sets the value ofBigqueryTableTimePartitioning.getExpirationMs()- Parameters:
expirationMs- Number of milliseconds for which to keep the storage for a partition. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#expiration_ms BigqueryTable#expiration_ms}- Returns:
this
-
field
@Stability(Stable) public BigqueryTableTimePartitioning.Builder field(String field)
Sets the value ofBigqueryTableTimePartitioning.getField()- Parameters:
field- The field used to determine how to create a time-based partition. If time-based partitioning is enabled without this value, the table is partitioned based on the load time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_table#field BigqueryTable#field}- Returns:
this
-
requirePartitionFilter
@Stability(Stable) public BigqueryTableTimePartitioning.Builder requirePartitionFilter(Boolean requirePartitionFilter)
Sets the value ofBigqueryTableTimePartitioning.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 BigqueryTableTimePartitioning.Builder requirePartitionFilter(com.hashicorp.cdktf.IResolvable requirePartitionFilter)
Sets the value ofBigqueryTableTimePartitioning.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
-
build
@Stability(Stable) public BigqueryTableTimePartitioning build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BigqueryTableTimePartitioning>- Returns:
- a new instance of
BigqueryTableTimePartitioning - Throws:
NullPointerException- if any required attribute was not provided
-
-