Class ComputeRegionAutoscalerConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_autoscaler.ComputeRegionAutoscalerConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionAutoscalerConfig>
- Enclosing interface:
- ComputeRegionAutoscalerConfig
@Stability(Stable) public static final class ComputeRegionAutoscalerConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionAutoscalerConfig>
A builder forComputeRegionAutoscalerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
autoscalingPolicy
@Stability(Stable) public ComputeRegionAutoscalerConfig.Builder autoscalingPolicy(ComputeRegionAutoscalerAutoscalingPolicy autoscalingPolicy)
Sets the value ofComputeRegionAutoscalerConfig.getAutoscalingPolicy()- Parameters:
autoscalingPolicy- autoscaling_policy block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#autoscaling_policy ComputeRegionAutoscaler#autoscaling_policy}- Returns:
this
-
name
@Stability(Stable) public ComputeRegionAutoscalerConfig.Builder name(String name)
Sets the value ofComputeRegionAutoscalerConfig.getName()- Parameters:
name- Name of the resource. This parameter is required. The name must be 1-63 characters long and match the regular expression '[a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#name ComputeRegionAutoscaler#name}- Returns:
this
-
target
@Stability(Stable) public ComputeRegionAutoscalerConfig.Builder target(String target)
Sets the value ofComputeRegionAutoscalerConfig.getTarget()- Parameters:
target- URL of the managed instance group that this autoscaler will scale. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#target ComputeRegionAutoscaler#target}- Returns:
this
-
description
@Stability(Stable) public ComputeRegionAutoscalerConfig.Builder description(String description)
Sets the value ofComputeRegionAutoscalerConfig.getDescription()- Parameters:
description- An optional description of this resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#description ComputeRegionAutoscaler#description}- Returns:
this
-
id
@Stability(Stable) public ComputeRegionAutoscalerConfig.Builder id(String id)
Sets the value ofComputeRegionAutoscalerConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#id ComputeRegionAutoscaler#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
project
@Stability(Stable) public ComputeRegionAutoscalerConfig.Builder project(String project)
Sets the value ofComputeRegionAutoscalerConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#project ComputeRegionAutoscaler#project}.- Returns:
this
-
region
@Stability(Stable) public ComputeRegionAutoscalerConfig.Builder region(String region)
Sets the value ofComputeRegionAutoscalerConfig.getRegion()- Parameters:
region- URL of the region where the instance group resides. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#region ComputeRegionAutoscaler#region}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeRegionAutoscalerConfig.Builder timeouts(ComputeRegionAutoscalerTimeouts timeouts)
Sets the value ofComputeRegionAutoscalerConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_autoscaler#timeouts ComputeRegionAutoscaler#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeRegionAutoscalerConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public ComputeRegionAutoscalerConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeRegionAutoscalerConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeRegionAutoscalerConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComputeRegionAutoscalerConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public ComputeRegionAutoscalerConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComputeRegionAutoscalerConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public ComputeRegionAutoscalerConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeRegionAutoscalerConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeRegionAutoscalerConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionAutoscalerConfig>- Returns:
- a new instance of
ComputeRegionAutoscalerConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-