Class BigtableInstanceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.bigtable_instance.BigtableInstanceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BigtableInstanceConfig>
- Enclosing interface:
- BigtableInstanceConfig
@Stability(Stable) public static final class BigtableInstanceConfig.Builder extends Object implements software.amazon.jsii.Builder<BigtableInstanceConfig>
A builder forBigtableInstanceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigtableInstanceConfigbuild()Builds the configured instance.BigtableInstanceConfig.Buildercluster(com.hashicorp.cdktf.IResolvable cluster)Sets the value ofBigtableInstanceConfig.getCluster()BigtableInstanceConfig.Buildercluster(List<? extends BigtableInstanceCluster> cluster)Sets the value ofBigtableInstanceConfig.getCluster()BigtableInstanceConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()BigtableInstanceConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()BigtableInstanceConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()BigtableInstanceConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()BigtableInstanceConfig.BuilderdeletionProtection(com.hashicorp.cdktf.IResolvable deletionProtection)Sets the value ofBigtableInstanceConfig.getDeletionProtection()BigtableInstanceConfig.BuilderdeletionProtection(Boolean deletionProtection)Sets the value ofBigtableInstanceConfig.getDeletionProtection()BigtableInstanceConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()BigtableInstanceConfig.BuilderdisplayName(String displayName)Sets the value ofBigtableInstanceConfig.getDisplayName()BigtableInstanceConfig.BuilderforceDestroy(com.hashicorp.cdktf.IResolvable forceDestroy)Sets the value ofBigtableInstanceConfig.getForceDestroy()BigtableInstanceConfig.BuilderforceDestroy(Boolean forceDestroy)Sets the value ofBigtableInstanceConfig.getForceDestroy()BigtableInstanceConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()BigtableInstanceConfig.Builderid(String id)Sets the value ofBigtableInstanceConfig.getId()BigtableInstanceConfig.BuilderinstanceType(String instanceType)Sets the value ofBigtableInstanceConfig.getInstanceType()BigtableInstanceConfig.Builderlabels(Map<String,String> labels)Sets the value ofBigtableInstanceConfig.getLabels()BigtableInstanceConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()BigtableInstanceConfig.Buildername(String name)Sets the value ofBigtableInstanceConfig.getName()BigtableInstanceConfig.Builderproject(String project)Sets the value ofBigtableInstanceConfig.getProject()BigtableInstanceConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()BigtableInstanceConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()BigtableInstanceConfig.Buildertimeouts(BigtableInstanceTimeouts timeouts)Sets the value ofBigtableInstanceConfig.getTimeouts()
-
-
-
Method Detail
-
name
@Stability(Stable) public BigtableInstanceConfig.Builder name(String name)
Sets the value ofBigtableInstanceConfig.getName()- Parameters:
name- The name (also called Instance Id in the Cloud Console) of the Cloud Bigtable instance. This parameter is required. Must be 6-33 characters and must only contain hyphens, lowercase letters and numbers. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#name BigtableInstance#name}- Returns:
this
-
cluster
@Stability(Stable) public BigtableInstanceConfig.Builder cluster(com.hashicorp.cdktf.IResolvable cluster)
Sets the value ofBigtableInstanceConfig.getCluster()- Parameters:
cluster- cluster block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#cluster BigtableInstance#cluster}- Returns:
this
-
cluster
@Stability(Stable) public BigtableInstanceConfig.Builder cluster(List<? extends BigtableInstanceCluster> cluster)
Sets the value ofBigtableInstanceConfig.getCluster()- Parameters:
cluster- cluster block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#cluster BigtableInstance#cluster}- Returns:
this
-
deletionProtection
@Stability(Stable) public BigtableInstanceConfig.Builder deletionProtection(Boolean deletionProtection)
Sets the value ofBigtableInstanceConfig.getDeletionProtection()- Parameters:
deletionProtection- When the field is set to true or unset in Terraform state, a terraform apply or terraform destroy that would delete the instance will fail. When the field is set to false, deleting the instance is allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#deletion_protection BigtableInstance#deletion_protection}- Returns:
this
-
deletionProtection
@Stability(Stable) public BigtableInstanceConfig.Builder deletionProtection(com.hashicorp.cdktf.IResolvable deletionProtection)
Sets the value ofBigtableInstanceConfig.getDeletionProtection()- Parameters:
deletionProtection- When the field is set to true or unset in Terraform state, a terraform apply or terraform destroy that would delete the instance will fail. When the field is set to false, deleting the instance is allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#deletion_protection BigtableInstance#deletion_protection}- Returns:
this
-
displayName
@Stability(Stable) public BigtableInstanceConfig.Builder displayName(String displayName)
Sets the value ofBigtableInstanceConfig.getDisplayName()- Parameters:
displayName- The human-readable display name of the Bigtable instance. Defaults to the instance name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#display_name BigtableInstance#display_name}- Returns:
this
-
forceDestroy
@Stability(Stable) public BigtableInstanceConfig.Builder forceDestroy(Boolean forceDestroy)
Sets the value ofBigtableInstanceConfig.getForceDestroy()- Parameters:
forceDestroy- When deleting a BigTable instance, this boolean option will delete all backups within the instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#force_destroy BigtableInstance#force_destroy}- Returns:
this
-
forceDestroy
@Stability(Stable) public BigtableInstanceConfig.Builder forceDestroy(com.hashicorp.cdktf.IResolvable forceDestroy)
Sets the value ofBigtableInstanceConfig.getForceDestroy()- Parameters:
forceDestroy- When deleting a BigTable instance, this boolean option will delete all backups within the instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#force_destroy BigtableInstance#force_destroy}- Returns:
this
-
id
@Stability(Stable) public BigtableInstanceConfig.Builder id(String id)
Sets the value ofBigtableInstanceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#id BigtableInstance#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
-
instanceType
@Stability(Stable) public BigtableInstanceConfig.Builder instanceType(String instanceType)
Sets the value ofBigtableInstanceConfig.getInstanceType()- Parameters:
instanceType- The instance type to create. One of "DEVELOPMENT" or "PRODUCTION". Defaults to "PRODUCTION". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#instance_type BigtableInstance#instance_type}- Returns:
this
-
labels
@Stability(Stable) public BigtableInstanceConfig.Builder labels(Map<String,String> labels)
Sets the value ofBigtableInstanceConfig.getLabels()- Parameters:
labels- A mapping of labels to assign to the resource. **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/bigtable_instance#labels BigtableInstance#labels}- Returns:
this
-
project
@Stability(Stable) public BigtableInstanceConfig.Builder project(String project)
Sets the value ofBigtableInstanceConfig.getProject()- Parameters:
project- The ID of the project in which the resource belongs. If it is not provided, the provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#project BigtableInstance#project}- Returns:
this
-
timeouts
@Stability(Stable) public BigtableInstanceConfig.Builder timeouts(BigtableInstanceTimeouts timeouts)
Sets the value ofBigtableInstanceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#timeouts BigtableInstance#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public BigtableInstanceConfig.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 BigtableInstanceConfig.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 BigtableInstanceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public BigtableInstanceConfig.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 BigtableInstanceConfig.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 BigtableInstanceConfig.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 BigtableInstanceConfig.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 BigtableInstanceConfig.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 BigtableInstanceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public BigtableInstanceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BigtableInstanceConfig>- Returns:
- a new instance of
BigtableInstanceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-