Class ComputeRegionInstanceGroupManagerStatefulDisk.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_instance_group_manager.ComputeRegionInstanceGroupManagerStatefulDisk.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionInstanceGroupManagerStatefulDisk>
- Enclosing interface:
- ComputeRegionInstanceGroupManagerStatefulDisk
@Stability(Stable) public static final class ComputeRegionInstanceGroupManagerStatefulDisk.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionInstanceGroupManagerStatefulDisk>
A builder forComputeRegionInstanceGroupManagerStatefulDisk
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionInstanceGroupManagerStatefulDiskbuild()Builds the configured instance.ComputeRegionInstanceGroupManagerStatefulDisk.BuilderdeleteRule(String deleteRule)Sets the value ofComputeRegionInstanceGroupManagerStatefulDisk.getDeleteRule()ComputeRegionInstanceGroupManagerStatefulDisk.BuilderdeviceName(String deviceName)Sets the value ofComputeRegionInstanceGroupManagerStatefulDisk.getDeviceName()
-
-
-
Method Detail
-
deviceName
@Stability(Stable) public ComputeRegionInstanceGroupManagerStatefulDisk.Builder deviceName(String deviceName)
Sets the value ofComputeRegionInstanceGroupManagerStatefulDisk.getDeviceName()- Parameters:
deviceName- The device name of the disk to be attached. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_instance_group_manager#device_name ComputeRegionInstanceGroupManager#device_name}- Returns:
this
-
deleteRule
@Stability(Stable) public ComputeRegionInstanceGroupManagerStatefulDisk.Builder deleteRule(String deleteRule)
Sets the value ofComputeRegionInstanceGroupManagerStatefulDisk.getDeleteRule()- Parameters:
deleteRule- A value that prescribes what should happen to the stateful disk when the VM instance is deleted. The available options are NEVER and ON_PERMANENT_INSTANCE_DELETION. NEVER - detach the disk when the VM is deleted, but do not delete the disk. ON_PERMANENT_INSTANCE_DELETION will delete the stateful disk when the VM is permanently deleted from the instance group. The default is NEVER. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_instance_group_manager#delete_rule ComputeRegionInstanceGroupManager#delete_rule}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionInstanceGroupManagerStatefulDisk build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionInstanceGroupManagerStatefulDisk>- Returns:
- a new instance of
ComputeRegionInstanceGroupManagerStatefulDisk - Throws:
NullPointerException- if any required attribute was not provided
-
-