Class ComputeAutoscalerConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_autoscaler.ComputeAutoscalerConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeAutoscalerConfig>
- Enclosing interface:
- ComputeAutoscalerConfig
@Stability(Stable) public static final class ComputeAutoscalerConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeAutoscalerConfig>
A builder forComputeAutoscalerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeAutoscalerConfig.BuilderautoscalingPolicy(ComputeAutoscalerAutoscalingPolicy autoscalingPolicy)Sets the value ofComputeAutoscalerConfig.getAutoscalingPolicy()ComputeAutoscalerConfigbuild()Builds the configured instance.ComputeAutoscalerConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ComputeAutoscalerConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ComputeAutoscalerConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()ComputeAutoscalerConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()ComputeAutoscalerConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()ComputeAutoscalerConfig.Builderdescription(String description)Sets the value ofComputeAutoscalerConfig.getDescription()ComputeAutoscalerConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()ComputeAutoscalerConfig.Builderid(String id)Sets the value ofComputeAutoscalerConfig.getId()ComputeAutoscalerConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()ComputeAutoscalerConfig.Buildername(String name)Sets the value ofComputeAutoscalerConfig.getName()ComputeAutoscalerConfig.Builderproject(String project)Sets the value ofComputeAutoscalerConfig.getProject()ComputeAutoscalerConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()ComputeAutoscalerConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()ComputeAutoscalerConfig.Buildertarget(String target)Sets the value ofComputeAutoscalerConfig.getTarget()ComputeAutoscalerConfig.Buildertimeouts(ComputeAutoscalerTimeouts timeouts)Sets the value ofComputeAutoscalerConfig.getTimeouts()ComputeAutoscalerConfig.Builderzone(String zone)Sets the value ofComputeAutoscalerConfig.getZone()
-
-
-
Method Detail
-
autoscalingPolicy
@Stability(Stable) public ComputeAutoscalerConfig.Builder autoscalingPolicy(ComputeAutoscalerAutoscalingPolicy autoscalingPolicy)
Sets the value ofComputeAutoscalerConfig.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_autoscaler#autoscaling_policy ComputeAutoscaler#autoscaling_policy}- Returns:
this
-
name
@Stability(Stable) public ComputeAutoscalerConfig.Builder name(String name)
Sets the value ofComputeAutoscalerConfig.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_autoscaler#name ComputeAutoscaler#name}- Returns:
this
-
target
@Stability(Stable) public ComputeAutoscalerConfig.Builder target(String target)
Sets the value ofComputeAutoscalerConfig.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_autoscaler#target ComputeAutoscaler#target}- Returns:
this
-
description
@Stability(Stable) public ComputeAutoscalerConfig.Builder description(String description)
Sets the value ofComputeAutoscalerConfig.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_autoscaler#description ComputeAutoscaler#description}- Returns:
this
-
id
@Stability(Stable) public ComputeAutoscalerConfig.Builder id(String id)
Sets the value ofComputeAutoscalerConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#id ComputeAutoscaler#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 ComputeAutoscalerConfig.Builder project(String project)
Sets the value ofComputeAutoscalerConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#project ComputeAutoscaler#project}.- Returns:
this
-
timeouts
@Stability(Stable) public ComputeAutoscalerConfig.Builder timeouts(ComputeAutoscalerTimeouts timeouts)
Sets the value ofComputeAutoscalerConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#timeouts ComputeAutoscaler#timeouts}- Returns:
this
-
zone
@Stability(Stable) public ComputeAutoscalerConfig.Builder zone(String zone)
Sets the value ofComputeAutoscalerConfig.getZone()- Parameters:
zone- URL of the zone where the instance group resides. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#zone ComputeAutoscaler#zone}- Returns:
this
-
connection
@Stability(Experimental) public ComputeAutoscalerConfig.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 ComputeAutoscalerConfig.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 ComputeAutoscalerConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeAutoscalerConfig.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 ComputeAutoscalerConfig.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 ComputeAutoscalerConfig.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 ComputeAutoscalerConfig.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 ComputeAutoscalerConfig.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 ComputeAutoscalerConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeAutoscalerConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeAutoscalerConfig>- Returns:
- a new instance of
ComputeAutoscalerConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-