Class ComputeInstanceGroupManagerVersionTargetSize.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance_group_manager.ComputeInstanceGroupManagerVersionTargetSize.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceGroupManagerVersionTargetSize>
- Enclosing interface:
- ComputeInstanceGroupManagerVersionTargetSize
@Stability(Stable) public static final class ComputeInstanceGroupManagerVersionTargetSize.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceGroupManagerVersionTargetSize>
A builder forComputeInstanceGroupManagerVersionTargetSize
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInstanceGroupManagerVersionTargetSizebuild()Builds the configured instance.ComputeInstanceGroupManagerVersionTargetSize.Builderfixed(Number fixed)Sets the value ofComputeInstanceGroupManagerVersionTargetSize.getFixed()ComputeInstanceGroupManagerVersionTargetSize.Builderpercent(Number percent)Sets the value ofComputeInstanceGroupManagerVersionTargetSize.getPercent()
-
-
-
Method Detail
-
fixed
@Stability(Stable) public ComputeInstanceGroupManagerVersionTargetSize.Builder fixed(Number fixed)
Sets the value ofComputeInstanceGroupManagerVersionTargetSize.getFixed()- Parameters:
fixed- The number of instances which are managed for this version. Conflicts with percent. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_group_manager#fixed ComputeInstanceGroupManager#fixed}- Returns:
this
-
percent
@Stability(Stable) public ComputeInstanceGroupManagerVersionTargetSize.Builder percent(Number percent)
Sets the value ofComputeInstanceGroupManagerVersionTargetSize.getPercent()- Parameters:
percent- The number of instances (calculated as percentage) which are managed for this version. Conflicts with fixed. Note that when using percent, rounding will be in favor of explicitly set target_size values; a managed instance group with 2 instances and 2 versions, one of which has a target_size.percent of 60 will create 2 instances of that version. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_group_manager#percent ComputeInstanceGroupManager#percent}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceGroupManagerVersionTargetSize build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceGroupManagerVersionTargetSize>- Returns:
- a new instance of
ComputeInstanceGroupManagerVersionTargetSize - Throws:
NullPointerException- if any required attribute was not provided
-
-