Class ComputeInstanceScratchDisk.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance.ComputeInstanceScratchDisk.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceScratchDisk>
- Enclosing interface:
- ComputeInstanceScratchDisk
@Stability(Stable) public static final class ComputeInstanceScratchDisk.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceScratchDisk>
A builder forComputeInstanceScratchDisk
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInstanceScratchDiskbuild()Builds the configured instance.ComputeInstanceScratchDisk.BuilderdeviceName(String deviceName)Sets the value ofComputeInstanceScratchDisk.getDeviceName()ComputeInstanceScratchDisk.BuilderinterfaceValue(String interfaceValue)Sets the value ofComputeInstanceScratchDisk.getInterfaceValue()ComputeInstanceScratchDisk.Buildersize(Number size)Sets the value ofComputeInstanceScratchDisk.getSize()
-
-
-
Method Detail
-
interfaceValue
@Stability(Stable) public ComputeInstanceScratchDisk.Builder interfaceValue(String interfaceValue)
Sets the value ofComputeInstanceScratchDisk.getInterfaceValue()- Parameters:
interfaceValue- The disk interface used for attaching this disk. One of SCSI or NVME. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#interface ComputeInstance#interface}- Returns:
this
-
deviceName
@Stability(Stable) public ComputeInstanceScratchDisk.Builder deviceName(String deviceName)
Sets the value ofComputeInstanceScratchDisk.getDeviceName()- Parameters:
deviceName- Name with which the attached disk is accessible under /dev/disk/by-id/. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#device_name ComputeInstance#device_name}- Returns:
this
-
size
@Stability(Stable) public ComputeInstanceScratchDisk.Builder size(Number size)
Sets the value ofComputeInstanceScratchDisk.getSize()- Parameters:
size- The size of the disk in gigabytes. One of 375 or 3000. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#size ComputeInstance#size}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceScratchDisk build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceScratchDisk>- Returns:
- a new instance of
ComputeInstanceScratchDisk - Throws:
NullPointerException- if any required attribute was not provided
-
-