Class DataprocClusterClusterConfigMasterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_cluster.DataprocClusterClusterConfigMasterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocClusterClusterConfigMasterConfig>
- Enclosing interface:
- DataprocClusterClusterConfigMasterConfig
@Stability(Stable) public static final class DataprocClusterClusterConfigMasterConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocClusterClusterConfigMasterConfig>
A builder forDataprocClusterClusterConfigMasterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
accelerators
@Stability(Stable) public DataprocClusterClusterConfigMasterConfig.Builder accelerators(com.hashicorp.cdktf.IResolvable accelerators)
Sets the value ofDataprocClusterClusterConfigMasterConfig.getAccelerators()- Parameters:
accelerators- accelerators block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#accelerators DataprocCluster#accelerators}- Returns:
this
-
accelerators
@Stability(Stable) public DataprocClusterClusterConfigMasterConfig.Builder accelerators(List<? extends DataprocClusterClusterConfigMasterConfigAccelerators> accelerators)
Sets the value ofDataprocClusterClusterConfigMasterConfig.getAccelerators()- Parameters:
accelerators- accelerators block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#accelerators DataprocCluster#accelerators}- Returns:
this
-
diskConfig
@Stability(Stable) public DataprocClusterClusterConfigMasterConfig.Builder diskConfig(DataprocClusterClusterConfigMasterConfigDiskConfig diskConfig)
Sets the value ofDataprocClusterClusterConfigMasterConfig.getDiskConfig()- Parameters:
diskConfig- disk_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#disk_config DataprocCluster#disk_config}- Returns:
this
-
imageUri
@Stability(Stable) public DataprocClusterClusterConfigMasterConfig.Builder imageUri(String imageUri)
Sets the value ofDataprocClusterClusterConfigMasterConfig.getImageUri()- Parameters:
imageUri- The URI for the image to use for this master. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#image_uri DataprocCluster#image_uri}- Returns:
this
-
machineType
@Stability(Stable) public DataprocClusterClusterConfigMasterConfig.Builder machineType(String machineType)
Sets the value ofDataprocClusterClusterConfigMasterConfig.getMachineType()- Parameters:
machineType- The name of a Google Compute Engine machine type to create for the master. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#machine_type DataprocCluster#machine_type}- Returns:
this
-
minCpuPlatform
@Stability(Stable) public DataprocClusterClusterConfigMasterConfig.Builder minCpuPlatform(String minCpuPlatform)
Sets the value ofDataprocClusterClusterConfigMasterConfig.getMinCpuPlatform()- Parameters:
minCpuPlatform- The name of a minimum generation of CPU family for the master. If not specified, GCP will default to a predetermined computed value for each zone. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#min_cpu_platform DataprocCluster#min_cpu_platform}- Returns:
this
-
numInstances
@Stability(Stable) public DataprocClusterClusterConfigMasterConfig.Builder numInstances(Number numInstances)
Sets the value ofDataprocClusterClusterConfigMasterConfig.getNumInstances()- Parameters:
numInstances- Specifies the number of master nodes to create. If not specified, GCP will default to a predetermined computed value. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#num_instances DataprocCluster#num_instances}- Returns:
this
-
build
@Stability(Stable) public DataprocClusterClusterConfigMasterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocClusterClusterConfigMasterConfig>- Returns:
- a new instance of
DataprocClusterClusterConfigMasterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-