Class BigqueryDatasetConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.bigquery_dataset.BigqueryDatasetConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BigqueryDatasetConfig>
- Enclosing interface:
- BigqueryDatasetConfig
@Stability(Stable) public static final class BigqueryDatasetConfig.Builder extends Object implements software.amazon.jsii.Builder<BigqueryDatasetConfig>
A builder forBigqueryDatasetConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
datasetId
@Stability(Stable) public BigqueryDatasetConfig.Builder datasetId(String datasetId)
Sets the value ofBigqueryDatasetConfig.getDatasetId()- Parameters:
datasetId- A unique ID for this dataset, without the project name. This parameter is required. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#dataset_id BigqueryDataset#dataset_id}- Returns:
this
-
access
@Stability(Stable) public BigqueryDatasetConfig.Builder access(com.hashicorp.cdktf.IResolvable access)
Sets the value ofBigqueryDatasetConfig.getAccess()- Parameters:
access- access block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#access BigqueryDataset#access}- Returns:
this
-
access
@Stability(Stable) public BigqueryDatasetConfig.Builder access(List<? extends BigqueryDatasetAccess> access)
Sets the value ofBigqueryDatasetConfig.getAccess()- Parameters:
access- access block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#access BigqueryDataset#access}- Returns:
this
-
defaultCollation
@Stability(Stable) public BigqueryDatasetConfig.Builder defaultCollation(String defaultCollation)
Sets the value ofBigqueryDatasetConfig.getDefaultCollation()- Parameters:
defaultCollation- Defines the default collation specification of future tables created in the dataset. If a table is created in this dataset without table-level default collation, then the table inherits the dataset default collation, which is applied to the string fields that do not have explicit collation specified. A change to this field affects only tables created afterwards, and does not alter the existing tables. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#default_collation BigqueryDataset#default_collation}- Returns:
this
-
defaultEncryptionConfiguration
@Stability(Stable) public BigqueryDatasetConfig.Builder defaultEncryptionConfiguration(BigqueryDatasetDefaultEncryptionConfiguration defaultEncryptionConfiguration)
Sets the value ofBigqueryDatasetConfig.getDefaultEncryptionConfiguration()- Parameters:
defaultEncryptionConfiguration- default_encryption_configuration block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#default_encryption_configuration BigqueryDataset#default_encryption_configuration}- Returns:
this
-
defaultPartitionExpirationMs
@Stability(Stable) public BigqueryDatasetConfig.Builder defaultPartitionExpirationMs(Number defaultPartitionExpirationMs)
Sets the value ofBigqueryDatasetConfig.getDefaultPartitionExpirationMs()- Parameters:
defaultPartitionExpirationMs- The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an 'expirationMs' property in the 'timePartitioning' settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of 'defaultTableExpirationMs' for partitioned tables: only one of 'defaultTableExpirationMs' and 'defaultPartitionExpirationMs' will be used for any new partitioned table. If you provide an explicit 'timePartitioning.expirationMs' when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#default_partition_expiration_ms BigqueryDataset#default_partition_expiration_ms}- Returns:
this
-
defaultTableExpirationMs
@Stability(Stable) public BigqueryDatasetConfig.Builder defaultTableExpirationMs(Number defaultTableExpirationMs)
Sets the value ofBigqueryDatasetConfig.getDefaultTableExpirationMs()- Parameters:
defaultTableExpirationMs- The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an 'expirationTime' property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the 'expirationTime' for a given table is reached, that table will be deleted automatically. If a table's 'expirationTime' is modified or removed before the table expires, or if you provide an explicit 'expirationTime' when creating a table, that value takes precedence over the default expiration time indicated by this property. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#default_table_expiration_ms BigqueryDataset#default_table_expiration_ms}- Returns:
this
-
deleteContentsOnDestroy
@Stability(Stable) public BigqueryDatasetConfig.Builder deleteContentsOnDestroy(Boolean deleteContentsOnDestroy)
Sets the value ofBigqueryDatasetConfig.getDeleteContentsOnDestroy()- Parameters:
deleteContentsOnDestroy- If set to 'true', delete all the tables in the dataset when destroying the resource;. otherwise, destroying the resource will fail if tables are present. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#delete_contents_on_destroy BigqueryDataset#delete_contents_on_destroy}- Returns:
this
-
deleteContentsOnDestroy
@Stability(Stable) public BigqueryDatasetConfig.Builder deleteContentsOnDestroy(com.hashicorp.cdktf.IResolvable deleteContentsOnDestroy)
Sets the value ofBigqueryDatasetConfig.getDeleteContentsOnDestroy()- Parameters:
deleteContentsOnDestroy- If set to 'true', delete all the tables in the dataset when destroying the resource;. otherwise, destroying the resource will fail if tables are present. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#delete_contents_on_destroy BigqueryDataset#delete_contents_on_destroy}- Returns:
this
-
description
@Stability(Stable) public BigqueryDatasetConfig.Builder description(String description)
Sets the value ofBigqueryDatasetConfig.getDescription()- Parameters:
description- A user-friendly description of the dataset. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#description BigqueryDataset#description}- Returns:
this
-
externalDatasetReference
@Stability(Stable) public BigqueryDatasetConfig.Builder externalDatasetReference(BigqueryDatasetExternalDatasetReference externalDatasetReference)
Sets the value ofBigqueryDatasetConfig.getExternalDatasetReference()- Parameters:
externalDatasetReference- external_dataset_reference block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#external_dataset_reference BigqueryDataset#external_dataset_reference}- Returns:
this
-
friendlyName
@Stability(Stable) public BigqueryDatasetConfig.Builder friendlyName(String friendlyName)
Sets the value ofBigqueryDatasetConfig.getFriendlyName()- Parameters:
friendlyName- A descriptive name for the dataset. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#friendly_name BigqueryDataset#friendly_name}- Returns:
this
-
id
@Stability(Stable) public BigqueryDatasetConfig.Builder id(String id)
Sets the value ofBigqueryDatasetConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#id BigqueryDataset#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
-
isCaseInsensitive
@Stability(Stable) public BigqueryDatasetConfig.Builder isCaseInsensitive(Boolean isCaseInsensitive)
Sets the value ofBigqueryDatasetConfig.getIsCaseInsensitive()- Parameters:
isCaseInsensitive- TRUE if the dataset and its table names are case-insensitive, otherwise FALSE. By default, this is FALSE, which means the dataset and its table names are case-sensitive. This field does not affect routine references. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#is_case_insensitive BigqueryDataset#is_case_insensitive}- Returns:
this
-
isCaseInsensitive
@Stability(Stable) public BigqueryDatasetConfig.Builder isCaseInsensitive(com.hashicorp.cdktf.IResolvable isCaseInsensitive)
Sets the value ofBigqueryDatasetConfig.getIsCaseInsensitive()- Parameters:
isCaseInsensitive- TRUE if the dataset and its table names are case-insensitive, otherwise FALSE. By default, this is FALSE, which means the dataset and its table names are case-sensitive. This field does not affect routine references. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#is_case_insensitive BigqueryDataset#is_case_insensitive}- Returns:
this
-
labels
@Stability(Stable) public BigqueryDatasetConfig.Builder labels(Map<String,String> labels)
Sets the value ofBigqueryDatasetConfig.getLabels()- Parameters:
labels- The labels associated with this dataset. You can use these to organize and group your datasets. **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_dataset#labels BigqueryDataset#labels}- Returns:
this
-
location
@Stability(Stable) public BigqueryDatasetConfig.Builder location(String location)
Sets the value ofBigqueryDatasetConfig.getLocation()- Parameters:
location- The geographic location where the dataset should reside. See [official docs](https://cloud.google.com/bigquery/docs/dataset-locations). There are two types of locations, regional or multi-regional. A regional location is a specific geographic place, such as Tokyo, and a multi-regional location is a large geographic area, such as the United States, that contains at least two geographic places. The default value is multi-regional location 'US'. Changing this forces a new resource to be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#location BigqueryDataset#location}- Returns:
this
-
maxTimeTravelHours
@Stability(Stable) public BigqueryDatasetConfig.Builder maxTimeTravelHours(String maxTimeTravelHours)
Sets the value ofBigqueryDatasetConfig.getMaxTimeTravelHours()- Parameters:
maxTimeTravelHours- Defines the time travel window in hours. The value can be from 48 to 168 hours (2 to 7 days). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#max_time_travel_hours BigqueryDataset#max_time_travel_hours}- Returns:
this
-
project
@Stability(Stable) public BigqueryDatasetConfig.Builder project(String project)
Sets the value ofBigqueryDatasetConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#project BigqueryDataset#project}.- Returns:
this
-
resourceTags
@Stability(Stable) public BigqueryDatasetConfig.Builder resourceTags(Map<String,String> resourceTags)
Sets the value ofBigqueryDatasetConfig.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". See [Tag definitions](/iam/docs/tags-access-control#definitions) for more details. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#resource_tags BigqueryDataset#resource_tags}- Returns:
this
-
storageBillingModel
@Stability(Stable) public BigqueryDatasetConfig.Builder storageBillingModel(String storageBillingModel)
Sets the value ofBigqueryDatasetConfig.getStorageBillingModel()- Parameters:
storageBillingModel- Specifies the storage billing model for the dataset. Set this flag value to LOGICAL to use logical bytes for storage billing, or to PHYSICAL to use physical bytes instead. LOGICAL is the default if this flag isn't specified. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#storage_billing_model BigqueryDataset#storage_billing_model}- Returns:
this
-
timeouts
@Stability(Stable) public BigqueryDatasetConfig.Builder timeouts(BigqueryDatasetTimeouts timeouts)
Sets the value ofBigqueryDatasetConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#timeouts BigqueryDataset#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public BigqueryDatasetConfig.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 BigqueryDatasetConfig.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 BigqueryDatasetConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public BigqueryDatasetConfig.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 BigqueryDatasetConfig.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 BigqueryDatasetConfig.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 BigqueryDatasetConfig.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 BigqueryDatasetConfig.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 BigqueryDatasetConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public BigqueryDatasetConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BigqueryDatasetConfig>- Returns:
- a new instance of
BigqueryDatasetConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-