Class ContainerClusterNodePoolAutoscaling.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_cluster.ContainerClusterNodePoolAutoscaling.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerClusterNodePoolAutoscaling>
- Enclosing interface:
- ContainerClusterNodePoolAutoscaling
@Stability(Stable) public static final class ContainerClusterNodePoolAutoscaling.Builder extends Object implements software.amazon.jsii.Builder<ContainerClusterNodePoolAutoscaling>
A builder forContainerClusterNodePoolAutoscaling
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerClusterNodePoolAutoscalingbuild()Builds the configured instance.ContainerClusterNodePoolAutoscaling.BuilderlocationPolicy(String locationPolicy)Sets the value ofContainerClusterNodePoolAutoscaling.getLocationPolicy()ContainerClusterNodePoolAutoscaling.BuildermaxNodeCount(Number maxNodeCount)Sets the value ofContainerClusterNodePoolAutoscaling.getMaxNodeCount()ContainerClusterNodePoolAutoscaling.BuilderminNodeCount(Number minNodeCount)Sets the value ofContainerClusterNodePoolAutoscaling.getMinNodeCount()ContainerClusterNodePoolAutoscaling.BuildertotalMaxNodeCount(Number totalMaxNodeCount)Sets the value ofContainerClusterNodePoolAutoscaling.getTotalMaxNodeCount()ContainerClusterNodePoolAutoscaling.BuildertotalMinNodeCount(Number totalMinNodeCount)Sets the value ofContainerClusterNodePoolAutoscaling.getTotalMinNodeCount()
-
-
-
Method Detail
-
locationPolicy
@Stability(Stable) public ContainerClusterNodePoolAutoscaling.Builder locationPolicy(String locationPolicy)
Sets the value ofContainerClusterNodePoolAutoscaling.getLocationPolicy()- Parameters:
locationPolicy- Location policy specifies the algorithm used when scaling-up the node pool. "BALANCED" - Is a best effort policy that aims to balance the sizes of available zones. "ANY" - Instructs the cluster autoscaler to prioritize utilization of unused reservations, and reduces preemption risk for Spot VMs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#location_policy ContainerCluster#location_policy}- Returns:
this
-
maxNodeCount
@Stability(Stable) public ContainerClusterNodePoolAutoscaling.Builder maxNodeCount(Number maxNodeCount)
Sets the value ofContainerClusterNodePoolAutoscaling.getMaxNodeCount()- Parameters:
maxNodeCount- Maximum number of nodes per zone in the node pool. Must be >= min_node_count. Cannot be used with total limits. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#max_node_count ContainerCluster#max_node_count}- Returns:
this
-
minNodeCount
@Stability(Stable) public ContainerClusterNodePoolAutoscaling.Builder minNodeCount(Number minNodeCount)
Sets the value ofContainerClusterNodePoolAutoscaling.getMinNodeCount()- Parameters:
minNodeCount- Minimum number of nodes per zone in the node pool. Must be >=0 and <= max_node_count. Cannot be used with total limits. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#min_node_count ContainerCluster#min_node_count}- Returns:
this
-
totalMaxNodeCount
@Stability(Stable) public ContainerClusterNodePoolAutoscaling.Builder totalMaxNodeCount(Number totalMaxNodeCount)
Sets the value ofContainerClusterNodePoolAutoscaling.getTotalMaxNodeCount()- Parameters:
totalMaxNodeCount- Maximum number of all nodes in the node pool. Must be >= total_min_node_count. Cannot be used with per zone limits. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#total_max_node_count ContainerCluster#total_max_node_count}- Returns:
this
-
totalMinNodeCount
@Stability(Stable) public ContainerClusterNodePoolAutoscaling.Builder totalMinNodeCount(Number totalMinNodeCount)
Sets the value ofContainerClusterNodePoolAutoscaling.getTotalMinNodeCount()- Parameters:
totalMinNodeCount- Minimum number of all nodes in the node pool. Must be >=0 and <= total_max_node_count. Cannot be used with per zone limits. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#total_min_node_count ContainerCluster#total_min_node_count}- Returns:
this
-
build
@Stability(Stable) public ContainerClusterNodePoolAutoscaling build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerClusterNodePoolAutoscaling>- Returns:
- a new instance of
ContainerClusterNodePoolAutoscaling - Throws:
NullPointerException- if any required attribute was not provided
-
-