Class ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_autoscaler.ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas>
- Enclosing interface:
- ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas
@Stability(Stable) public static final class ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicasbuild()Builds the configured instance.ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas.Builderfixed(Number fixed)ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas.Builderpercent(Number percent)
-
-
-
Method Detail
-
fixed
@Stability(Stable) public ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas.Builder fixed(Number fixed)
Sets the value ofComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas.getFixed()- Parameters:
fixed- Specifies a fixed number of VM instances. This must be a positive integer. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#fixed ComputeRegionAutoscaler#fixed}- Returns:
this
-
percent
@Stability(Stable) public ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas.Builder percent(Number percent)
Sets the value ofComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas.getPercent()- Parameters:
percent- Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#percent ComputeRegionAutoscaler#percent}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas>- Returns:
- a new instance of
ComputeRegionAutoscalerAutoscalingPolicyScaleInControlMaxScaledInReplicas - Throws:
NullPointerException- if any required attribute was not provided
-
-