Class DataprocClusterClusterConfigWorkerConfigDiskConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_cluster.DataprocClusterClusterConfigWorkerConfigDiskConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocClusterClusterConfigWorkerConfigDiskConfig>
- Enclosing interface:
- DataprocClusterClusterConfigWorkerConfigDiskConfig
@Stability(Stable) public static final class DataprocClusterClusterConfigWorkerConfigDiskConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocClusterClusterConfigWorkerConfigDiskConfig>
A builder forDataprocClusterClusterConfigWorkerConfigDiskConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataprocClusterClusterConfigWorkerConfigDiskConfig.BuilderbootDiskSizeGb(Number bootDiskSizeGb)Sets the value ofDataprocClusterClusterConfigWorkerConfigDiskConfig.getBootDiskSizeGb()DataprocClusterClusterConfigWorkerConfigDiskConfig.BuilderbootDiskType(String bootDiskType)Sets the value ofDataprocClusterClusterConfigWorkerConfigDiskConfig.getBootDiskType()DataprocClusterClusterConfigWorkerConfigDiskConfigbuild()Builds the configured instance.DataprocClusterClusterConfigWorkerConfigDiskConfig.BuilderlocalSsdInterface(String localSsdInterface)DataprocClusterClusterConfigWorkerConfigDiskConfig.BuildernumLocalSsds(Number numLocalSsds)Sets the value ofDataprocClusterClusterConfigWorkerConfigDiskConfig.getNumLocalSsds()
-
-
-
Method Detail
-
bootDiskSizeGb
@Stability(Stable) public DataprocClusterClusterConfigWorkerConfigDiskConfig.Builder bootDiskSizeGb(Number bootDiskSizeGb)
Sets the value ofDataprocClusterClusterConfigWorkerConfigDiskConfig.getBootDiskSizeGb()- Parameters:
bootDiskSizeGb- Size of the primary disk attached to each node, specified in GB. The primary disk contains the boot volume and system libraries, and the smallest allowed disk size is 10GB. GCP will default to a predetermined computed value if not set (currently 500GB). Note: If SSDs are not attached, it also contains the HDFS data blocks and Hadoop working directories. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#boot_disk_size_gb DataprocCluster#boot_disk_size_gb}- Returns:
this
-
bootDiskType
@Stability(Stable) public DataprocClusterClusterConfigWorkerConfigDiskConfig.Builder bootDiskType(String bootDiskType)
Sets the value ofDataprocClusterClusterConfigWorkerConfigDiskConfig.getBootDiskType()- Parameters:
bootDiskType- The disk type of the primary disk attached to each node. Such as "pd-ssd" or "pd-standard". Defaults to "pd-standard". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#boot_disk_type DataprocCluster#boot_disk_type}- Returns:
this
-
localSsdInterface
@Stability(Stable) public DataprocClusterClusterConfigWorkerConfigDiskConfig.Builder localSsdInterface(String localSsdInterface)
- Parameters:
localSsdInterface- Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#local_ssd_interface DataprocCluster#local_ssd_interface}- Returns:
this
-
numLocalSsds
@Stability(Stable) public DataprocClusterClusterConfigWorkerConfigDiskConfig.Builder numLocalSsds(Number numLocalSsds)
Sets the value ofDataprocClusterClusterConfigWorkerConfigDiskConfig.getNumLocalSsds()- Parameters:
numLocalSsds- The amount of local SSD disks that will be attached to each master cluster node. Defaults to 0. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#num_local_ssds DataprocCluster#num_local_ssds}- Returns:
this
-
build
@Stability(Stable) public DataprocClusterClusterConfigWorkerConfigDiskConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocClusterClusterConfigWorkerConfigDiskConfig>- Returns:
- a new instance of
DataprocClusterClusterConfigWorkerConfigDiskConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-