Class BigtableInstanceClusterAutoscalingConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.bigtable_instance.BigtableInstanceClusterAutoscalingConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BigtableInstanceClusterAutoscalingConfig>
- Enclosing interface:
- BigtableInstanceClusterAutoscalingConfig
@Stability(Stable) public static final class BigtableInstanceClusterAutoscalingConfig.Builder extends Object implements software.amazon.jsii.Builder<BigtableInstanceClusterAutoscalingConfig>
A builder forBigtableInstanceClusterAutoscalingConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigtableInstanceClusterAutoscalingConfigbuild()Builds the configured instance.BigtableInstanceClusterAutoscalingConfig.BuildercpuTarget(Number cpuTarget)Sets the value ofBigtableInstanceClusterAutoscalingConfig.getCpuTarget()BigtableInstanceClusterAutoscalingConfig.BuildermaxNodes(Number maxNodes)Sets the value ofBigtableInstanceClusterAutoscalingConfig.getMaxNodes()BigtableInstanceClusterAutoscalingConfig.BuilderminNodes(Number minNodes)Sets the value ofBigtableInstanceClusterAutoscalingConfig.getMinNodes()BigtableInstanceClusterAutoscalingConfig.BuilderstorageTarget(Number storageTarget)Sets the value ofBigtableInstanceClusterAutoscalingConfig.getStorageTarget()
-
-
-
Method Detail
-
cpuTarget
@Stability(Stable) public BigtableInstanceClusterAutoscalingConfig.Builder cpuTarget(Number cpuTarget)
Sets the value ofBigtableInstanceClusterAutoscalingConfig.getCpuTarget()- Parameters:
cpuTarget- The target CPU utilization for autoscaling. Value must be between 10 and 80. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#cpu_target BigtableInstance#cpu_target}- Returns:
this
-
maxNodes
@Stability(Stable) public BigtableInstanceClusterAutoscalingConfig.Builder maxNodes(Number maxNodes)
Sets the value ofBigtableInstanceClusterAutoscalingConfig.getMaxNodes()- Parameters:
maxNodes- The maximum number of nodes for autoscaling. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#max_nodes BigtableInstance#max_nodes}- Returns:
this
-
minNodes
@Stability(Stable) public BigtableInstanceClusterAutoscalingConfig.Builder minNodes(Number minNodes)
Sets the value ofBigtableInstanceClusterAutoscalingConfig.getMinNodes()- Parameters:
minNodes- The minimum number of nodes for autoscaling. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#min_nodes BigtableInstance#min_nodes}- Returns:
this
-
storageTarget
@Stability(Stable) public BigtableInstanceClusterAutoscalingConfig.Builder storageTarget(Number storageTarget)
Sets the value ofBigtableInstanceClusterAutoscalingConfig.getStorageTarget()- Parameters:
storageTarget- The target storage utilization for autoscaling, in GB, for each node in a cluster. This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD cluster and between 8192 (8TiB) and 16384 (16 TiB) for an HDD cluster. If not set, whatever is already set for the cluster will not change, or if the cluster is just being created, it will use the default value of 2560 for SSD clusters and 8192 for HDD clusters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigtable_instance#storage_target BigtableInstance#storage_target}- Returns:
this
-
build
@Stability(Stable) public BigtableInstanceClusterAutoscalingConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BigtableInstanceClusterAutoscalingConfig>- Returns:
- a new instance of
BigtableInstanceClusterAutoscalingConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-