Class DataprocClusterClusterConfigGceClusterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_cluster.DataprocClusterClusterConfigGceClusterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocClusterClusterConfigGceClusterConfig>
- Enclosing interface:
- DataprocClusterClusterConfigGceClusterConfig
@Stability(Stable) public static final class DataprocClusterClusterConfigGceClusterConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocClusterClusterConfigGceClusterConfig>
A builder forDataprocClusterClusterConfigGceClusterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
internalIpOnly
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder internalIpOnly(Boolean internalIpOnly)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getInternalIpOnly()- Parameters:
internalIpOnly- By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. If set to true, all instances in the cluster will only have internal IP addresses. Note: Private Google Access (also known as privateIpGoogleAccess) must be enabled on the subnetwork that the cluster will be launched in. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#internal_ip_only DataprocCluster#internal_ip_only}- Returns:
this
-
internalIpOnly
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder internalIpOnly(com.hashicorp.cdktf.IResolvable internalIpOnly)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getInternalIpOnly()- Parameters:
internalIpOnly- By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. If set to true, all instances in the cluster will only have internal IP addresses. Note: Private Google Access (also known as privateIpGoogleAccess) must be enabled on the subnetwork that the cluster will be launched in. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#internal_ip_only DataprocCluster#internal_ip_only}- Returns:
this
-
metadata
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder metadata(Map<String,String> metadata)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getMetadata()- Parameters:
metadata- A map of the Compute Engine metadata entries to add to all instances. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#metadata DataprocCluster#metadata}- Returns:
this
-
network
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder network(String network)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getNetwork()- Parameters:
network- The name or self_link of the Google Compute Engine network to the cluster will be part of. Conflicts with subnetwork. If neither is specified, this defaults to the "default" network. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#network DataprocCluster#network}- Returns:
this
-
nodeGroupAffinity
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder nodeGroupAffinity(DataprocClusterClusterConfigGceClusterConfigNodeGroupAffinity nodeGroupAffinity)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getNodeGroupAffinity()- Parameters:
nodeGroupAffinity- node_group_affinity block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#node_group_affinity DataprocCluster#node_group_affinity}- Returns:
this
-
reservationAffinity
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder reservationAffinity(DataprocClusterClusterConfigGceClusterConfigReservationAffinity reservationAffinity)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getReservationAffinity()- Parameters:
reservationAffinity- reservation_affinity block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#reservation_affinity DataprocCluster#reservation_affinity}- Returns:
this
-
serviceAccount
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder serviceAccount(String serviceAccount)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getServiceAccount()- Parameters:
serviceAccount- The service account to be used by the Node VMs. If not specified, the "default" service account is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#service_account DataprocCluster#service_account}- Returns:
this
-
serviceAccountScopes
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder serviceAccountScopes(List<String> serviceAccountScopes)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getServiceAccountScopes()- Parameters:
serviceAccountScopes- The set of Google API scopes to be made available on all of the node VMs under the service_account specified. These can be either FQDNs, or scope aliases. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#service_account_scopes DataprocCluster#service_account_scopes}- Returns:
this
-
shieldedInstanceConfig
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder shieldedInstanceConfig(DataprocClusterClusterConfigGceClusterConfigShieldedInstanceConfig shieldedInstanceConfig)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getShieldedInstanceConfig()- Parameters:
shieldedInstanceConfig- shielded_instance_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#shielded_instance_config DataprocCluster#shielded_instance_config}- Returns:
this
-
subnetwork
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder subnetwork(String subnetwork)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getSubnetwork()- Parameters:
subnetwork- The name or self_link of the Google Compute Engine subnetwork the cluster will be part of. Conflicts with network. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#subnetwork DataprocCluster#subnetwork}- Returns:
this
-
tags
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder tags(List<String> tags)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getTags()- Parameters:
tags- The list of instance tags applied to instances in the cluster. Tags are used to identify valid sources or targets for network firewalls. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#tags DataprocCluster#tags}- Returns:
this
-
zone
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig.Builder zone(String zone)
Sets the value ofDataprocClusterClusterConfigGceClusterConfig.getZone()- Parameters:
zone- The GCP zone where your data is stored and used (i.e. where the master and the worker nodes will be created in). If region is set to 'global' (default) then zone is mandatory, otherwise GCP is able to make use of Auto Zone Placement to determine this automatically for you. Note: This setting additionally determines and restricts which computing resources are available for use with other configs such as cluster_config.master_config.machine_type and cluster_config.worker_config.machine_type. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_cluster#zone DataprocCluster#zone}- Returns:
this
-
build
@Stability(Stable) public DataprocClusterClusterConfigGceClusterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocClusterClusterConfigGceClusterConfig>- Returns:
- a new instance of
DataprocClusterClusterConfigGceClusterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-