Class ComputeRegionPerInstanceConfigConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_per_instance_config.ComputeRegionPerInstanceConfigConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionPerInstanceConfigConfig>
- Enclosing interface:
- ComputeRegionPerInstanceConfigConfig
@Stability(Stable) public static final class ComputeRegionPerInstanceConfigConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionPerInstanceConfigConfig>
A builder forComputeRegionPerInstanceConfigConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder name(String name)
Sets the value ofComputeRegionPerInstanceConfigConfig.getName()- Parameters:
name- The name for this per-instance config and its corresponding instance. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#name ComputeRegionPerInstanceConfig#name}- Returns:
this
-
regionInstanceGroupManager
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder regionInstanceGroupManager(String regionInstanceGroupManager)
Sets the value ofComputeRegionPerInstanceConfigConfig.getRegionInstanceGroupManager()- Parameters:
regionInstanceGroupManager- The region instance group manager this instance config is part of. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#region_instance_group_manager ComputeRegionPerInstanceConfig#region_instance_group_manager}- Returns:
this
-
id
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder id(String id)
Sets the value ofComputeRegionPerInstanceConfigConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#id ComputeRegionPerInstanceConfig#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
-
minimalAction
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder minimalAction(String minimalAction)
Sets the value ofComputeRegionPerInstanceConfigConfig.getMinimalAction()- Parameters:
minimalAction- The minimal action to perform on the instance during an update. Default is 'NONE'. Possible values are: * REPLACE * RESTART * REFRESH * NONE Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#minimal_action ComputeRegionPerInstanceConfig#minimal_action}- Returns:
this
-
mostDisruptiveAllowedAction
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder mostDisruptiveAllowedAction(String mostDisruptiveAllowedAction)
Sets the value ofComputeRegionPerInstanceConfigConfig.getMostDisruptiveAllowedAction()- Parameters:
mostDisruptiveAllowedAction- The most disruptive action to perform on the instance during an update. Default is 'REPLACE'. Possible values are: * REPLACE * RESTART * REFRESH * NONE Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#most_disruptive_allowed_action ComputeRegionPerInstanceConfig#most_disruptive_allowed_action}- Returns:
this
-
preservedState
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder preservedState(ComputeRegionPerInstanceConfigPreservedState preservedState)
Sets the value ofComputeRegionPerInstanceConfigConfig.getPreservedState()- Parameters:
preservedState- preserved_state block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#preserved_state ComputeRegionPerInstanceConfig#preserved_state}- Returns:
this
-
project
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder project(String project)
Sets the value ofComputeRegionPerInstanceConfigConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#project ComputeRegionPerInstanceConfig#project}.- Returns:
this
-
region
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder region(String region)
Sets the value ofComputeRegionPerInstanceConfigConfig.getRegion()- Parameters:
region- Region where the containing instance group manager is located. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#region ComputeRegionPerInstanceConfig#region}- Returns:
this
-
removeInstanceOnDestroy
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder removeInstanceOnDestroy(Boolean removeInstanceOnDestroy)
Sets the value ofComputeRegionPerInstanceConfigConfig.getRemoveInstanceOnDestroy()- Parameters:
removeInstanceOnDestroy- When true, deleting this config will immediately remove the underlying instance. When false, deleting this config will use the behavior as determined by remove_instance_on_destroy. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#remove_instance_on_destroy ComputeRegionPerInstanceConfig#remove_instance_on_destroy}- Returns:
this
-
removeInstanceOnDestroy
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder removeInstanceOnDestroy(com.hashicorp.cdktf.IResolvable removeInstanceOnDestroy)
Sets the value ofComputeRegionPerInstanceConfigConfig.getRemoveInstanceOnDestroy()- Parameters:
removeInstanceOnDestroy- When true, deleting this config will immediately remove the underlying instance. When false, deleting this config will use the behavior as determined by remove_instance_on_destroy. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#remove_instance_on_destroy ComputeRegionPerInstanceConfig#remove_instance_on_destroy}- Returns:
this
-
removeInstanceStateOnDestroy
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder removeInstanceStateOnDestroy(Boolean removeInstanceStateOnDestroy)
Sets the value ofComputeRegionPerInstanceConfigConfig.getRemoveInstanceStateOnDestroy()- Parameters:
removeInstanceStateOnDestroy- When true, deleting this config will immediately remove any specified state from the underlying instance. When false, deleting this config will *not* immediately remove any state from the underlying instance. State will be removed on the next instance recreation or update. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#remove_instance_state_on_destroy ComputeRegionPerInstanceConfig#remove_instance_state_on_destroy}- Returns:
this
-
removeInstanceStateOnDestroy
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder removeInstanceStateOnDestroy(com.hashicorp.cdktf.IResolvable removeInstanceStateOnDestroy)
Sets the value ofComputeRegionPerInstanceConfigConfig.getRemoveInstanceStateOnDestroy()- Parameters:
removeInstanceStateOnDestroy- When true, deleting this config will immediately remove any specified state from the underlying instance. When false, deleting this config will *not* immediately remove any state from the underlying instance. State will be removed on the next instance recreation or update. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#remove_instance_state_on_destroy ComputeRegionPerInstanceConfig#remove_instance_state_on_destroy}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig.Builder timeouts(ComputeRegionPerInstanceConfigTimeouts timeouts)
Sets the value ofComputeRegionPerInstanceConfigConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#timeouts ComputeRegionPerInstanceConfig#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeRegionPerInstanceConfigConfig.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 ComputeRegionPerInstanceConfigConfig.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 ComputeRegionPerInstanceConfigConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeRegionPerInstanceConfigConfig.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 ComputeRegionPerInstanceConfigConfig.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 ComputeRegionPerInstanceConfigConfig.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 ComputeRegionPerInstanceConfigConfig.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 ComputeRegionPerInstanceConfigConfig.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 ComputeRegionPerInstanceConfigConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeRegionPerInstanceConfigConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionPerInstanceConfigConfig>- Returns:
- a new instance of
ComputeRegionPerInstanceConfigConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-