Class ComputeInstanceGroupManagerStatefulDisk.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance_group_manager.ComputeInstanceGroupManagerStatefulDisk.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceGroupManagerStatefulDisk>
- Enclosing interface:
- ComputeInstanceGroupManagerStatefulDisk
@Stability(Stable) public static final class ComputeInstanceGroupManagerStatefulDisk.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceGroupManagerStatefulDisk>
A builder forComputeInstanceGroupManagerStatefulDisk
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInstanceGroupManagerStatefulDiskbuild()Builds the configured instance.ComputeInstanceGroupManagerStatefulDisk.BuilderdeleteRule(String deleteRule)Sets the value ofComputeInstanceGroupManagerStatefulDisk.getDeleteRule()ComputeInstanceGroupManagerStatefulDisk.BuilderdeviceName(String deviceName)Sets the value ofComputeInstanceGroupManagerStatefulDisk.getDeviceName()
-
-
-
Method Detail
-
deviceName
@Stability(Stable) public ComputeInstanceGroupManagerStatefulDisk.Builder deviceName(String deviceName)
Sets the value ofComputeInstanceGroupManagerStatefulDisk.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_instance_group_manager#device_name ComputeInstanceGroupManager#device_name}- Returns:
this
-
deleteRule
@Stability(Stable) public ComputeInstanceGroupManagerStatefulDisk.Builder deleteRule(String deleteRule)
Sets the value ofComputeInstanceGroupManagerStatefulDisk.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_instance_group_manager#delete_rule ComputeInstanceGroupManager#delete_rule}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceGroupManagerStatefulDisk build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceGroupManagerStatefulDisk>- Returns:
- a new instance of
ComputeInstanceGroupManagerStatefulDisk - Throws:
NullPointerException- if any required attribute was not provided
-
-