Class BigtableInstanceCluster.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.bigtable_instance.BigtableInstanceCluster.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BigtableInstanceCluster>
- Enclosing interface:
- BigtableInstanceCluster
@Stability(Stable) public static final class BigtableInstanceCluster.Builder extends Object implements software.amazon.jsii.Builder<BigtableInstanceCluster>
A builder forBigtableInstanceCluster
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigtableInstanceCluster.BuilderautoscalingConfig(BigtableInstanceClusterAutoscalingConfig autoscalingConfig)Sets the value ofBigtableInstanceCluster.getAutoscalingConfig()BigtableInstanceClusterbuild()Builds the configured instance.BigtableInstanceCluster.BuilderclusterId(String clusterId)Sets the value ofBigtableInstanceCluster.getClusterId()BigtableInstanceCluster.BuilderkmsKeyName(String kmsKeyName)Sets the value ofBigtableInstanceCluster.getKmsKeyName()BigtableInstanceCluster.BuildernumNodes(Number numNodes)Sets the value ofBigtableInstanceCluster.getNumNodes()BigtableInstanceCluster.BuilderstorageType(String storageType)Sets the value ofBigtableInstanceCluster.getStorageType()BigtableInstanceCluster.Builderzone(String zone)Sets the value ofBigtableInstanceCluster.getZone()
-
-
-
Method Detail
-
clusterId
@Stability(Stable) public BigtableInstanceCluster.Builder clusterId(String clusterId)
Sets the value ofBigtableInstanceCluster.getClusterId()- Parameters:
clusterId- The ID of the Cloud Bigtable cluster. This parameter is required. Must be 6-30 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#cluster_id BigtableInstance#cluster_id}- Returns:
this
-
autoscalingConfig
@Stability(Stable) public BigtableInstanceCluster.Builder autoscalingConfig(BigtableInstanceClusterAutoscalingConfig autoscalingConfig)
Sets the value ofBigtableInstanceCluster.getAutoscalingConfig()- Parameters:
autoscalingConfig- autoscaling_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#autoscaling_config BigtableInstance#autoscaling_config}- Returns:
this
-
kmsKeyName
@Stability(Stable) public BigtableInstanceCluster.Builder kmsKeyName(String kmsKeyName)
Sets the value ofBigtableInstanceCluster.getKmsKeyName()- Parameters:
kmsKeyName- Describes the Cloud KMS encryption key that will be used to protect the destination Bigtable cluster. The requirements for this key are: 1) The Cloud Bigtable service account associated with the project that contains this cluster must be granted the cloudkms.cryptoKeyEncrypterDecrypter role on the CMEK key. 2) Only regional keys can be used and the region of the CMEK key must match the region of the cluster. 3) All clusters within an instance must use the same CMEK key. Values are of the form projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key} Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#kms_key_name BigtableInstance#kms_key_name}- Returns:
this
-
numNodes
@Stability(Stable) public BigtableInstanceCluster.Builder numNodes(Number numNodes)
Sets the value ofBigtableInstanceCluster.getNumNodes()- Parameters:
numNodes- The number of nodes in the cluster. If no value is set, Cloud Bigtable automatically allocates nodes based on your data footprint and optimized for 50% storage utilization. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#num_nodes BigtableInstance#num_nodes}- Returns:
this
-
storageType
@Stability(Stable) public BigtableInstanceCluster.Builder storageType(String storageType)
Sets the value ofBigtableInstanceCluster.getStorageType()- Parameters:
storageType- The storage type to use. One of "SSD" or "HDD". Defaults to "SSD". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#storage_type BigtableInstance#storage_type}- Returns:
this
-
zone
@Stability(Stable) public BigtableInstanceCluster.Builder zone(String zone)
Sets the value ofBigtableInstanceCluster.getZone()- Parameters:
zone- The zone to create the Cloud Bigtable cluster in. Each cluster must have a different zone in the same region. Zones that support Bigtable instances are noted on the Cloud Bigtable locations page. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#zone BigtableInstance#zone}- Returns:
this
-
build
@Stability(Stable) public BigtableInstanceCluster build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BigtableInstanceCluster>- Returns:
- a new instance of
BigtableInstanceCluster - Throws:
NullPointerException- if any required attribute was not provided
-
-