Class BigqueryReservationConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.bigquery_reservation.BigqueryReservationConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BigqueryReservationConfig>
- Enclosing interface:
- BigqueryReservationConfig
@Stability(Stable) public static final class BigqueryReservationConfig.Builder extends Object implements software.amazon.jsii.Builder<BigqueryReservationConfig>
A builder forBigqueryReservationConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public BigqueryReservationConfig.Builder name(String name)
Sets the value ofBigqueryReservationConfig.getName()- Parameters:
name- The name of the reservation. This field must only contain alphanumeric characters or dash. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#name BigqueryReservation#name}- Returns:
this
-
slotCapacity
@Stability(Stable) public BigqueryReservationConfig.Builder slotCapacity(Number slotCapacity)
Sets the value ofBigqueryReservationConfig.getSlotCapacity()- Parameters:
slotCapacity- Minimum slots available to this reservation. This parameter is required. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignoreIdleSlots is set to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#slot_capacity BigqueryReservation#slot_capacity}- Returns:
this
-
autoscale
@Stability(Stable) public BigqueryReservationConfig.Builder autoscale(BigqueryReservationAutoscale autoscale)
Sets the value ofBigqueryReservationConfig.getAutoscale()- Parameters:
autoscale- autoscale block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#autoscale BigqueryReservation#autoscale}- Returns:
this
-
concurrency
@Stability(Stable) public BigqueryReservationConfig.Builder concurrency(Number concurrency)
Sets the value ofBigqueryReservationConfig.getConcurrency()- Parameters:
concurrency- Maximum number of queries that are allowed to run concurrently in this reservation. This is a soft limit due to asynchronous nature of the system and various optimizations for small queries. Default value is 0 which means that concurrency will be automatically set based on the reservation size. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#concurrency BigqueryReservation#concurrency}- Returns:
this
-
edition
@Stability(Stable) public BigqueryReservationConfig.Builder edition(String edition)
Sets the value ofBigqueryReservationConfig.getEdition()- Parameters:
edition- The edition type. Valid values are STANDARD, ENTERPRISE, ENTERPRISE_PLUS. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#edition BigqueryReservation#edition}- Returns:
this
-
id
@Stability(Stable) public BigqueryReservationConfig.Builder id(String id)
Sets the value ofBigqueryReservationConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#id BigqueryReservation#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
-
ignoreIdleSlots
@Stability(Stable) public BigqueryReservationConfig.Builder ignoreIdleSlots(Boolean ignoreIdleSlots)
Sets the value ofBigqueryReservationConfig.getIgnoreIdleSlots()- Parameters:
ignoreIdleSlots- If false, any query using this reservation will use idle slots from other reservations within the same admin project. If true, a query using this reservation will execute with the slot capacity specified above at most. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#ignore_idle_slots BigqueryReservation#ignore_idle_slots}- Returns:
this
-
ignoreIdleSlots
@Stability(Stable) public BigqueryReservationConfig.Builder ignoreIdleSlots(com.hashicorp.cdktf.IResolvable ignoreIdleSlots)
Sets the value ofBigqueryReservationConfig.getIgnoreIdleSlots()- Parameters:
ignoreIdleSlots- If false, any query using this reservation will use idle slots from other reservations within the same admin project. If true, a query using this reservation will execute with the slot capacity specified above at most. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#ignore_idle_slots BigqueryReservation#ignore_idle_slots}- Returns:
this
-
location
@Stability(Stable) public BigqueryReservationConfig.Builder location(String location)
Sets the value ofBigqueryReservationConfig.getLocation()- Parameters:
location- The geographic location where the transfer config should reside. Examples: US, EU, asia-northeast1. The default value is US. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#location BigqueryReservation#location}- Returns:
this
-
multiRegionAuxiliary
@Stability(Stable) public BigqueryReservationConfig.Builder multiRegionAuxiliary(Boolean multiRegionAuxiliary)
Sets the value ofBigqueryReservationConfig.getMultiRegionAuxiliary()- Parameters:
multiRegionAuxiliary- Applicable only for reservations located within one of the BigQuery multi-regions (US or EU). If set to true, this reservation is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization's default region. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#multi_region_auxiliary BigqueryReservation#multi_region_auxiliary}- Returns:
this
-
multiRegionAuxiliary
@Stability(Stable) public BigqueryReservationConfig.Builder multiRegionAuxiliary(com.hashicorp.cdktf.IResolvable multiRegionAuxiliary)
Sets the value ofBigqueryReservationConfig.getMultiRegionAuxiliary()- Parameters:
multiRegionAuxiliary- Applicable only for reservations located within one of the BigQuery multi-regions (US or EU). If set to true, this reservation is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization's default region. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#multi_region_auxiliary BigqueryReservation#multi_region_auxiliary}- Returns:
this
-
project
@Stability(Stable) public BigqueryReservationConfig.Builder project(String project)
Sets the value ofBigqueryReservationConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#project BigqueryReservation#project}.- Returns:
this
-
timeouts
@Stability(Stable) public BigqueryReservationConfig.Builder timeouts(BigqueryReservationTimeouts timeouts)
Sets the value ofBigqueryReservationConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_reservation#timeouts BigqueryReservation#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public BigqueryReservationConfig.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 BigqueryReservationConfig.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 BigqueryReservationConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public BigqueryReservationConfig.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 BigqueryReservationConfig.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 BigqueryReservationConfig.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 BigqueryReservationConfig.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 BigqueryReservationConfig.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 BigqueryReservationConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public BigqueryReservationConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BigqueryReservationConfig>- Returns:
- a new instance of
BigqueryReservationConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-