Class DataprocClusterClusterConfigMasterConfigDiskConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_cluster.DataprocClusterClusterConfigMasterConfigDiskConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocClusterClusterConfigMasterConfigDiskConfig>
- Enclosing interface:
- DataprocClusterClusterConfigMasterConfigDiskConfig
@Stability(Stable) public static final class DataprocClusterClusterConfigMasterConfigDiskConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocClusterClusterConfigMasterConfigDiskConfig>
A builder forDataprocClusterClusterConfigMasterConfigDiskConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataprocClusterClusterConfigMasterConfigDiskConfig.BuilderbootDiskSizeGb(Number bootDiskSizeGb)Sets the value ofDataprocClusterClusterConfigMasterConfigDiskConfig.getBootDiskSizeGb()DataprocClusterClusterConfigMasterConfigDiskConfig.BuilderbootDiskType(String bootDiskType)Sets the value ofDataprocClusterClusterConfigMasterConfigDiskConfig.getBootDiskType()DataprocClusterClusterConfigMasterConfigDiskConfigbuild()Builds the configured instance.DataprocClusterClusterConfigMasterConfigDiskConfig.BuilderlocalSsdInterface(String localSsdInterface)DataprocClusterClusterConfigMasterConfigDiskConfig.BuildernumLocalSsds(Number numLocalSsds)Sets the value ofDataprocClusterClusterConfigMasterConfigDiskConfig.getNumLocalSsds()
-
-
-
Method Detail
-
bootDiskSizeGb
@Stability(Stable) public DataprocClusterClusterConfigMasterConfigDiskConfig.Builder bootDiskSizeGb(Number bootDiskSizeGb)
Sets the value ofDataprocClusterClusterConfigMasterConfigDiskConfig.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 DataprocClusterClusterConfigMasterConfigDiskConfig.Builder bootDiskType(String bootDiskType)
Sets the value ofDataprocClusterClusterConfigMasterConfigDiskConfig.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 DataprocClusterClusterConfigMasterConfigDiskConfig.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 DataprocClusterClusterConfigMasterConfigDiskConfig.Builder numLocalSsds(Number numLocalSsds)
Sets the value ofDataprocClusterClusterConfigMasterConfigDiskConfig.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 DataprocClusterClusterConfigMasterConfigDiskConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocClusterClusterConfigMasterConfigDiskConfig>- Returns:
- a new instance of
DataprocClusterClusterConfigMasterConfigDiskConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-