Class ComputeNodeGroupAutoscalingPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_node_group.ComputeNodeGroupAutoscalingPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNodeGroupAutoscalingPolicy>
- Enclosing interface:
- ComputeNodeGroupAutoscalingPolicy
@Stability(Stable) public static final class ComputeNodeGroupAutoscalingPolicy.Builder extends Object implements software.amazon.jsii.Builder<ComputeNodeGroupAutoscalingPolicy>
A builder forComputeNodeGroupAutoscalingPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeNodeGroupAutoscalingPolicybuild()Builds the configured instance.ComputeNodeGroupAutoscalingPolicy.BuildermaxNodes(Number maxNodes)Sets the value ofComputeNodeGroupAutoscalingPolicy.getMaxNodes()ComputeNodeGroupAutoscalingPolicy.BuilderminNodes(Number minNodes)Sets the value ofComputeNodeGroupAutoscalingPolicy.getMinNodes()ComputeNodeGroupAutoscalingPolicy.Buildermode(String mode)Sets the value ofComputeNodeGroupAutoscalingPolicy.getMode()
-
-
-
Method Detail
-
maxNodes
@Stability(Stable) public ComputeNodeGroupAutoscalingPolicy.Builder maxNodes(Number maxNodes)
Sets the value ofComputeNodeGroupAutoscalingPolicy.getMaxNodes()- Parameters:
maxNodes- Maximum size of the node group. Set to a value less than or equal to 100 and greater than or equal to min-nodes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_group#max_nodes ComputeNodeGroup#max_nodes}- Returns:
this
-
minNodes
@Stability(Stable) public ComputeNodeGroupAutoscalingPolicy.Builder minNodes(Number minNodes)
Sets the value ofComputeNodeGroupAutoscalingPolicy.getMinNodes()- Parameters:
minNodes- Minimum size of the node group. Must be less than or equal to max-nodes. The default value is 0. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_group#min_nodes ComputeNodeGroup#min_nodes}- Returns:
this
-
mode
@Stability(Stable) public ComputeNodeGroupAutoscalingPolicy.Builder mode(String mode)
Sets the value ofComputeNodeGroupAutoscalingPolicy.getMode()- Parameters:
mode- The autoscaling mode. Set to one of the following: * OFF: Disables the autoscaler. * ON: Enables scaling in and scaling out. * ONLY_SCALE_OUT: Enables only scaling out. You must use this mode if your node groups are configured to restart their hosted VMs on minimal servers. Possible values: ["OFF", "ON", "ONLY_SCALE_OUT"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_group#mode ComputeNodeGroup#mode}- Returns:
this
-
build
@Stability(Stable) public ComputeNodeGroupAutoscalingPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNodeGroupAutoscalingPolicy>- Returns:
- a new instance of
ComputeNodeGroupAutoscalingPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-