Class ContainerNodePoolAutoscaling.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_node_pool.ContainerNodePoolAutoscaling.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerNodePoolAutoscaling>
- Enclosing interface:
- ContainerNodePoolAutoscaling
@Stability(Stable) public static final class ContainerNodePoolAutoscaling.Builder extends Object implements software.amazon.jsii.Builder<ContainerNodePoolAutoscaling>
A builder forContainerNodePoolAutoscaling
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerNodePoolAutoscalingbuild()Builds the configured instance.ContainerNodePoolAutoscaling.BuilderlocationPolicy(String locationPolicy)Sets the value ofContainerNodePoolAutoscaling.getLocationPolicy()ContainerNodePoolAutoscaling.BuildermaxNodeCount(Number maxNodeCount)Sets the value ofContainerNodePoolAutoscaling.getMaxNodeCount()ContainerNodePoolAutoscaling.BuilderminNodeCount(Number minNodeCount)Sets the value ofContainerNodePoolAutoscaling.getMinNodeCount()ContainerNodePoolAutoscaling.BuildertotalMaxNodeCount(Number totalMaxNodeCount)Sets the value ofContainerNodePoolAutoscaling.getTotalMaxNodeCount()ContainerNodePoolAutoscaling.BuildertotalMinNodeCount(Number totalMinNodeCount)Sets the value ofContainerNodePoolAutoscaling.getTotalMinNodeCount()
-
-
-
Method Detail
-
locationPolicy
@Stability(Stable) public ContainerNodePoolAutoscaling.Builder locationPolicy(String locationPolicy)
Sets the value ofContainerNodePoolAutoscaling.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_node_pool#location_policy ContainerNodePool#location_policy}- Returns:
this
-
maxNodeCount
@Stability(Stable) public ContainerNodePoolAutoscaling.Builder maxNodeCount(Number maxNodeCount)
Sets the value ofContainerNodePoolAutoscaling.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_node_pool#max_node_count ContainerNodePool#max_node_count}- Returns:
this
-
minNodeCount
@Stability(Stable) public ContainerNodePoolAutoscaling.Builder minNodeCount(Number minNodeCount)
Sets the value ofContainerNodePoolAutoscaling.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_node_pool#min_node_count ContainerNodePool#min_node_count}- Returns:
this
-
totalMaxNodeCount
@Stability(Stable) public ContainerNodePoolAutoscaling.Builder totalMaxNodeCount(Number totalMaxNodeCount)
Sets the value ofContainerNodePoolAutoscaling.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_node_pool#total_max_node_count ContainerNodePool#total_max_node_count}- Returns:
this
-
totalMinNodeCount
@Stability(Stable) public ContainerNodePoolAutoscaling.Builder totalMinNodeCount(Number totalMinNodeCount)
Sets the value ofContainerNodePoolAutoscaling.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_node_pool#total_min_node_count ContainerNodePool#total_min_node_count}- Returns:
this
-
build
@Stability(Stable) public ContainerNodePoolAutoscaling build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerNodePoolAutoscaling>- Returns:
- a new instance of
ContainerNodePoolAutoscaling - Throws:
NullPointerException- if any required attribute was not provided
-
-