Class DataprocClusterClusterConfigPreemptibleWorkerConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_cluster.DataprocClusterClusterConfigPreemptibleWorkerConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocClusterClusterConfigPreemptibleWorkerConfig>
- Enclosing interface:
- DataprocClusterClusterConfigPreemptibleWorkerConfig
@Stability(Stable) public static final class DataprocClusterClusterConfigPreemptibleWorkerConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocClusterClusterConfigPreemptibleWorkerConfig>
A builder forDataprocClusterClusterConfigPreemptibleWorkerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataprocClusterClusterConfigPreemptibleWorkerConfigbuild()Builds the configured instance.DataprocClusterClusterConfigPreemptibleWorkerConfig.BuilderdiskConfig(DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig diskConfig)Sets the value ofDataprocClusterClusterConfigPreemptibleWorkerConfig.getDiskConfig()DataprocClusterClusterConfigPreemptibleWorkerConfig.BuilderinstanceFlexibilityPolicy(DataprocClusterClusterConfigPreemptibleWorkerConfigInstanceFlexibilityPolicy instanceFlexibilityPolicy)DataprocClusterClusterConfigPreemptibleWorkerConfig.BuildernumInstances(Number numInstances)Sets the value ofDataprocClusterClusterConfigPreemptibleWorkerConfig.getNumInstances()DataprocClusterClusterConfigPreemptibleWorkerConfig.Builderpreemptibility(String preemptibility)Sets the value ofDataprocClusterClusterConfigPreemptibleWorkerConfig.getPreemptibility()
-
-
-
Method Detail
-
diskConfig
@Stability(Stable) public DataprocClusterClusterConfigPreemptibleWorkerConfig.Builder diskConfig(DataprocClusterClusterConfigPreemptibleWorkerConfigDiskConfig diskConfig)
Sets the value ofDataprocClusterClusterConfigPreemptibleWorkerConfig.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
-
instanceFlexibilityPolicy
@Stability(Stable) public DataprocClusterClusterConfigPreemptibleWorkerConfig.Builder instanceFlexibilityPolicy(DataprocClusterClusterConfigPreemptibleWorkerConfigInstanceFlexibilityPolicy instanceFlexibilityPolicy)
Sets the value ofDataprocClusterClusterConfigPreemptibleWorkerConfig.getInstanceFlexibilityPolicy()- Parameters:
instanceFlexibilityPolicy- instance_flexibility_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#instance_flexibility_policy DataprocCluster#instance_flexibility_policy}- Returns:
this
-
numInstances
@Stability(Stable) public DataprocClusterClusterConfigPreemptibleWorkerConfig.Builder numInstances(Number numInstances)
Sets the value ofDataprocClusterClusterConfigPreemptibleWorkerConfig.getNumInstances()- Parameters:
numInstances- Specifies the number of preemptible nodes to create. Defaults to 0. 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
-
preemptibility
@Stability(Stable) public DataprocClusterClusterConfigPreemptibleWorkerConfig.Builder preemptibility(String preemptibility)
Sets the value ofDataprocClusterClusterConfigPreemptibleWorkerConfig.getPreemptibility()- Parameters:
preemptibility- Specifies the preemptibility of the secondary nodes. Defaults to PREEMPTIBLE. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#preemptibility DataprocCluster#preemptibility}- Returns:
this
-
build
@Stability(Stable) public DataprocClusterClusterConfigPreemptibleWorkerConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocClusterClusterConfigPreemptibleWorkerConfig>- Returns:
- a new instance of
DataprocClusterClusterConfigPreemptibleWorkerConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-