Class BigqueryDataset.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static BigqueryDataset.Builder create​(software.constructs.Construct scope,
                                                     String id)
        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        Returns:
        a new instance of BigqueryDataset.Builder.
      • connection

        @Stability(Experimental)
        public BigqueryDataset.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public BigqueryDataset.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public BigqueryDataset.Builder count​(Number count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public BigqueryDataset.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public BigqueryDataset.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public BigqueryDataset.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public BigqueryDataset.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public BigqueryDataset.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public BigqueryDataset.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • datasetId

        @Stability(Stable)
        public BigqueryDataset.Builder datasetId​(String datasetId)
        A unique ID for this dataset, without the project name.

        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}

        Parameters:
        datasetId - A unique ID for this dataset, without the project name. This parameter is required.
        Returns:
        this
      • access

        @Stability(Stable)
        public BigqueryDataset.Builder access​(com.hashicorp.cdktf.IResolvable 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}

        Parameters:
        access - access block. This parameter is required.
        Returns:
        this
      • access

        @Stability(Stable)
        public BigqueryDataset.Builder access​(List<? extends BigqueryDatasetAccess> 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}

        Parameters:
        access - access block. This parameter is required.
        Returns:
        this
      • defaultCollation

        @Stability(Stable)
        public BigqueryDataset.Builder defaultCollation​(String 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}

        Parameters:
        defaultCollation - Defines the default collation specification of future tables created in the dataset. This parameter is required.
        Returns:
        this
      • defaultEncryptionConfiguration

        @Stability(Stable)
        public BigqueryDataset.Builder defaultEncryptionConfiguration​(BigqueryDatasetDefaultEncryptionConfiguration 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}

        Parameters:
        defaultEncryptionConfiguration - default_encryption_configuration block. This parameter is required.
        Returns:
        this
      • defaultPartitionExpirationMs

        @Stability(Stable)
        public BigqueryDataset.Builder defaultPartitionExpirationMs​(Number 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}

        Parameters:
        defaultPartitionExpirationMs - The default partition expiration for all partitioned tables in the dataset, in milliseconds. This parameter is required.
        Returns:
        this
      • defaultTableExpirationMs

        @Stability(Stable)
        public BigqueryDataset.Builder defaultTableExpirationMs​(Number 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}

        Parameters:
        defaultTableExpirationMs - The default lifetime of all tables in the dataset, in milliseconds. This parameter is required.
        Returns:
        this
      • deleteContentsOnDestroy

        @Stability(Stable)
        public BigqueryDataset.Builder deleteContentsOnDestroy​(Boolean 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}

        Parameters:
        deleteContentsOnDestroy - If set to 'true', delete all the tables in the dataset when destroying the resource;. This parameter is required.
        Returns:
        this
      • deleteContentsOnDestroy

        @Stability(Stable)
        public BigqueryDataset.Builder deleteContentsOnDestroy​(com.hashicorp.cdktf.IResolvable 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}

        Parameters:
        deleteContentsOnDestroy - If set to 'true', delete all the tables in the dataset when destroying the resource;. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public BigqueryDataset.Builder description​(String 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}

        Parameters:
        description - A user-friendly description of the dataset. This parameter is required.
        Returns:
        this
      • externalDatasetReference

        @Stability(Stable)
        public BigqueryDataset.Builder externalDatasetReference​(BigqueryDatasetExternalDatasetReference 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}

        Parameters:
        externalDatasetReference - external_dataset_reference block. This parameter is required.
        Returns:
        this
      • friendlyName

        @Stability(Stable)
        public BigqueryDataset.Builder friendlyName​(String 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}

        Parameters:
        friendlyName - A descriptive name for the dataset. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public BigqueryDataset.Builder id​(String 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.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#id BigqueryDataset#id}. This parameter is required.
        Returns:
        this
      • isCaseInsensitive

        @Stability(Stable)
        public BigqueryDataset.Builder isCaseInsensitive​(Boolean 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}

        Parameters:
        isCaseInsensitive - TRUE if the dataset and its table names are case-insensitive, otherwise FALSE. This parameter is required.
        Returns:
        this
      • isCaseInsensitive

        @Stability(Stable)
        public BigqueryDataset.Builder isCaseInsensitive​(com.hashicorp.cdktf.IResolvable 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}

        Parameters:
        isCaseInsensitive - TRUE if the dataset and its table names are case-insensitive, otherwise FALSE. This parameter is required.
        Returns:
        this
      • labels

        @Stability(Stable)
        public BigqueryDataset.Builder labels​(Map<String,​String> 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}

        Parameters:
        labels - The labels associated with this dataset. You can use these to organize and group your datasets. This parameter is required.
        Returns:
        this
      • location

        @Stability(Stable)
        public BigqueryDataset.Builder location​(String 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}

        Parameters:
        location - The geographic location where the dataset should reside. This parameter is required.
        Returns:
        this
      • maxTimeTravelHours

        @Stability(Stable)
        public BigqueryDataset.Builder maxTimeTravelHours​(String 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}

        Parameters:
        maxTimeTravelHours - Defines the time travel window in hours. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public BigqueryDataset.Builder project​(String project)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#project BigqueryDataset#project}.

        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_dataset#project BigqueryDataset#project}. This parameter is required.
        Returns:
        this
      • resourceTags

        @Stability(Stable)
        public BigqueryDataset.Builder resourceTags​(Map<String,​String> 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}

        Parameters:
        resourceTags - The tags attached to this table. This parameter is required.
        Returns:
        this
      • storageBillingModel

        @Stability(Stable)
        public BigqueryDataset.Builder storageBillingModel​(String 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}

        Parameters:
        storageBillingModel - Specifies the storage billing model for the dataset. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public BigqueryDataset.Builder timeouts​(BigqueryDatasetTimeouts 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}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this