Class DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_cluster.DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig>
- Enclosing interface:
- DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig
@Stability(Stable) public static final class DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.BuilderbootDiskSizeGb(Number bootDiskSizeGb)DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.BuilderbootDiskType(String bootDiskType)DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfigbuild()Builds the configured instance.DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.BuilderlocalSsdInterface(String localSsdInterface)DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.BuildernumLocalSsds(Number numLocalSsds)
-
-
-
Method Detail
-
bootDiskSizeGb
@Stability(Stable) public DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.Builder bootDiskSizeGb(Number bootDiskSizeGb)
- Parameters:
bootDiskSizeGb- Size of the primary disk attached to each preemptible worker node, specified in GB. 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 DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.Builder bootDiskType(String bootDiskType)
- Parameters:
bootDiskType- The disk type of the primary disk attached to each preemptible worker 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 DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.Builder localSsdInterface(String localSsdInterface)
Sets the value ofDataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.getLocalSsdInterface()- 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 DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig.Builder numLocalSsds(Number numLocalSsds)
- Parameters:
numLocalSsds- The amount of local SSD disks that will be attached to each preemptible worker 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 DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig>- Returns:
- a new instance of
DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-