Class DataprocClusterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_cluster.DataprocClusterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocClusterConfig>
- Enclosing interface:
- DataprocClusterConfig
@Stability(Stable) public static final class DataprocClusterConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocClusterConfig>
A builder forDataprocClusterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataprocClusterConfigbuild()Builds the configured instance.DataprocClusterConfig.BuilderclusterConfig(DataprocClusterClusterConfig clusterConfig)Sets the value ofDataprocClusterConfig.getClusterConfig()DataprocClusterConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DataprocClusterConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DataprocClusterConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()DataprocClusterConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()DataprocClusterConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()DataprocClusterConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()DataprocClusterConfig.BuildergracefulDecommissionTimeout(String gracefulDecommissionTimeout)Sets the value ofDataprocClusterConfig.getGracefulDecommissionTimeout()DataprocClusterConfig.Builderid(String id)Sets the value ofDataprocClusterConfig.getId()DataprocClusterConfig.Builderlabels(Map<String,String> labels)Sets the value ofDataprocClusterConfig.getLabels()DataprocClusterConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()DataprocClusterConfig.Buildername(String name)Sets the value ofDataprocClusterConfig.getName()DataprocClusterConfig.Builderproject(String project)Sets the value ofDataprocClusterConfig.getProject()DataprocClusterConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()DataprocClusterConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()DataprocClusterConfig.Builderregion(String region)Sets the value ofDataprocClusterConfig.getRegion()DataprocClusterConfig.Buildertimeouts(DataprocClusterTimeouts timeouts)Sets the value ofDataprocClusterConfig.getTimeouts()DataprocClusterConfig.BuildervirtualClusterConfig(DataprocClusterVirtualClusterConfig virtualClusterConfig)Sets the value ofDataprocClusterConfig.getVirtualClusterConfig()
-
-
-
Method Detail
-
name
@Stability(Stable) public DataprocClusterConfig.Builder name(String name)
Sets the value ofDataprocClusterConfig.getName()- Parameters:
name- The name of the cluster, unique within the project and zone. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#name DataprocCluster#name}- Returns:
this
-
clusterConfig
@Stability(Stable) public DataprocClusterConfig.Builder clusterConfig(DataprocClusterClusterConfig clusterConfig)
Sets the value ofDataprocClusterConfig.getClusterConfig()- Parameters:
clusterConfig- cluster_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#cluster_config DataprocCluster#cluster_config}- Returns:
this
-
gracefulDecommissionTimeout
@Stability(Stable) public DataprocClusterConfig.Builder gracefulDecommissionTimeout(String gracefulDecommissionTimeout)
Sets the value ofDataprocClusterConfig.getGracefulDecommissionTimeout()- Parameters:
gracefulDecommissionTimeout- The timeout duration which allows graceful decomissioning when you change the number of worker nodes directly through a terraform apply. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#graceful_decommission_timeout DataprocCluster#graceful_decommission_timeout}- Returns:
this
-
id
@Stability(Stable) public DataprocClusterConfig.Builder id(String id)
Sets the value ofDataprocClusterConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#id DataprocCluster#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
labels
@Stability(Stable) public DataprocClusterConfig.Builder labels(Map<String,String> labels)
Sets the value ofDataprocClusterConfig.getLabels()- Parameters:
labels- The list of the labels (key/value pairs) configured on the resource and to be applied to instances in the cluster. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#labels DataprocCluster#labels}- Returns:
this
-
project
@Stability(Stable) public DataprocClusterConfig.Builder project(String project)
Sets the value ofDataprocClusterConfig.getProject()- Parameters:
project- The ID of the project in which the cluster will exist. If it is not provided, the provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#project DataprocCluster#project}- Returns:
this
-
region
@Stability(Stable) public DataprocClusterConfig.Builder region(String region)
Sets the value ofDataprocClusterConfig.getRegion()- Parameters:
region- The region in which the cluster and associated nodes will be created in. Defaults to global. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#region DataprocCluster#region}- Returns:
this
-
timeouts
@Stability(Stable) public DataprocClusterConfig.Builder timeouts(DataprocClusterTimeouts timeouts)
Sets the value ofDataprocClusterConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#timeouts DataprocCluster#timeouts}- Returns:
this
-
virtualClusterConfig
@Stability(Stable) public DataprocClusterConfig.Builder virtualClusterConfig(DataprocClusterVirtualClusterConfig virtualClusterConfig)
Sets the value ofDataprocClusterConfig.getVirtualClusterConfig()- Parameters:
virtualClusterConfig- virtual_cluster_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#virtual_cluster_config DataprocCluster#virtual_cluster_config}- Returns:
this
-
connection
@Stability(Experimental) public DataprocClusterConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public DataprocClusterConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataprocClusterConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataprocClusterConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public DataprocClusterConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public DataprocClusterConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public DataprocClusterConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public DataprocClusterConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public DataprocClusterConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataprocClusterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocClusterConfig>- Returns:
- a new instance of
DataprocClusterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-