Class BigqueryCapacityCommitmentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.bigquery_capacity_commitment.BigqueryCapacityCommitmentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BigqueryCapacityCommitmentConfig>
- Enclosing interface:
- BigqueryCapacityCommitmentConfig
@Stability(Stable) public static final class BigqueryCapacityCommitmentConfig.Builder extends Object implements software.amazon.jsii.Builder<BigqueryCapacityCommitmentConfig>
A builder forBigqueryCapacityCommitmentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
plan
@Stability(Stable) public BigqueryCapacityCommitmentConfig.Builder plan(String plan)
Sets the value ofBigqueryCapacityCommitmentConfig.getPlan()- Parameters:
plan- Capacity commitment plan. Valid values are at https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1#commitmentplan. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_capacity_commitment#plan BigqueryCapacityCommitment#plan}- Returns:
this
-
slotCount
@Stability(Stable) public BigqueryCapacityCommitmentConfig.Builder slotCount(Number slotCount)
Sets the value ofBigqueryCapacityCommitmentConfig.getSlotCount()- Parameters:
slotCount- Number of slots in this commitment. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_capacity_commitment#slot_count BigqueryCapacityCommitment#slot_count}- Returns:
this
-
capacityCommitmentId
@Stability(Stable) public BigqueryCapacityCommitmentConfig.Builder capacityCommitmentId(String capacityCommitmentId)
Sets the value ofBigqueryCapacityCommitmentConfig.getCapacityCommitmentId()- Parameters:
capacityCommitmentId- The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_capacity_commitment#capacity_commitment_id BigqueryCapacityCommitment#capacity_commitment_id}- Returns:
this
-
edition
@Stability(Stable) public BigqueryCapacityCommitmentConfig.Builder edition(String edition)
Sets the value ofBigqueryCapacityCommitmentConfig.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_capacity_commitment#edition BigqueryCapacityCommitment#edition}- Returns:
this
-
enforceSingleAdminProjectPerOrg
@Stability(Stable) public BigqueryCapacityCommitmentConfig.Builder enforceSingleAdminProjectPerOrg(String enforceSingleAdminProjectPerOrg)
Sets the value ofBigqueryCapacityCommitmentConfig.getEnforceSingleAdminProjectPerOrg()- Parameters:
enforceSingleAdminProjectPerOrg- If true, fail the request if another project in the organization has a capacity commitment. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_capacity_commitment#enforce_single_admin_project_per_org BigqueryCapacityCommitment#enforce_single_admin_project_per_org}- Returns:
this
-
id
@Stability(Stable) public BigqueryCapacityCommitmentConfig.Builder id(String id)
Sets the value ofBigqueryCapacityCommitmentConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_capacity_commitment#id BigqueryCapacityCommitment#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
-
location
@Stability(Stable) public BigqueryCapacityCommitmentConfig.Builder location(String location)
Sets the value ofBigqueryCapacityCommitmentConfig.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_capacity_commitment#location BigqueryCapacityCommitment#location}- Returns:
this
-
project
@Stability(Stable) public BigqueryCapacityCommitmentConfig.Builder project(String project)
Sets the value ofBigqueryCapacityCommitmentConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_capacity_commitment#project BigqueryCapacityCommitment#project}.- Returns:
this
-
renewalPlan
@Stability(Stable) public BigqueryCapacityCommitmentConfig.Builder renewalPlan(String renewalPlan)
Sets the value ofBigqueryCapacityCommitmentConfig.getRenewalPlan()- Parameters:
renewalPlan- The plan this capacity commitment is converted to after commitmentEndTime passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for some commitment plans. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_capacity_commitment#renewal_plan BigqueryCapacityCommitment#renewal_plan}- Returns:
this
-
timeouts
@Stability(Stable) public BigqueryCapacityCommitmentConfig.Builder timeouts(BigqueryCapacityCommitmentTimeouts timeouts)
Sets the value ofBigqueryCapacityCommitmentConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_capacity_commitment#timeouts BigqueryCapacityCommitment#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public BigqueryCapacityCommitmentConfig.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 BigqueryCapacityCommitmentConfig.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 BigqueryCapacityCommitmentConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public BigqueryCapacityCommitmentConfig.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 BigqueryCapacityCommitmentConfig.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 BigqueryCapacityCommitmentConfig.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 BigqueryCapacityCommitmentConfig.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 BigqueryCapacityCommitmentConfig.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 BigqueryCapacityCommitmentConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public BigqueryCapacityCommitmentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BigqueryCapacityCommitmentConfig>- Returns:
- a new instance of
BigqueryCapacityCommitmentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-