Class ComputeRegionPerInstanceConfigConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Stable)
        public ComputeRegionPerInstanceConfigConfig.Builder name​(String name)
        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)
        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)
        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)
        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)
        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
      • removeInstanceOnDestroy

        @Stability(Stable)
        public ComputeRegionPerInstanceConfigConfig.Builder removeInstanceOnDestroy​(Boolean removeInstanceOnDestroy)
        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)
        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)
        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)
        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
      • connection

        @Stability(Experimental)
        public ComputeRegionPerInstanceConfigConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public ComputeRegionPerInstanceConfigConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this