Class DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_workflow_template.DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig>
- Enclosing interface:
- DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig
@Stability(Stable) public static final class DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
accelerators
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder accelerators(com.hashicorp.cdktf.IResolvable accelerators)
Sets the value ofDataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.getAccelerators()- Parameters:
accelerators- accelerators block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#accelerators DataprocWorkflowTemplate#accelerators}- Returns:
this
-
accelerators
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder accelerators(List<? extends DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfigAccelerators> accelerators)
Sets the value ofDataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.getAccelerators()- Parameters:
accelerators- accelerators block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#accelerators DataprocWorkflowTemplate#accelerators}- Returns:
this
-
diskConfig
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder diskConfig(DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfigDiskConfig diskConfig)
- Parameters:
diskConfig- disk_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#disk_config DataprocWorkflowTemplate#disk_config}- Returns:
this
-
image
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder image(String image)
- Parameters:
image- Optional. The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]` * `projects/[project_id]/global/images/[image-id]` * `image-id` Image family examples. Dataproc will use the most recent image from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]` * `projects/[project_id]/global/images/family/[custom-image-family-name]` If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version` or the system default. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#image DataprocWorkflowTemplate#image}- Returns:
this
-
machineType
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder machineType(String machineType)
Sets the value ofDataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.getMachineType()- Parameters:
machineType- Optional. The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `n1-standard-2` **Auto Zone Exception**: If you are using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, `n1-standard-2`. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#machine_type DataprocWorkflowTemplate#machine_type}- Returns:
this
-
minCpuPlatform
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder minCpuPlatform(String minCpuPlatform)
Sets the value ofDataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.getMinCpuPlatform()- Parameters:
minCpuPlatform- Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#min_cpu_platform DataprocWorkflowTemplate#min_cpu_platform}- Returns:
this
-
numInstances
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder numInstances(Number numInstances)
Sets the value ofDataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.getNumInstances()- Parameters:
numInstances- Optional. The number of VM instances in the instance group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability) [master_config](#FIELDS.master_config) groups, **must be set to 3**. For standard cluster [master_config](#FIELDS.master_config) groups, **must be set to 1**. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#num_instances DataprocWorkflowTemplate#num_instances}- Returns:
this
-
preemptibility
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.Builder preemptibility(String preemptibility)
Sets the value ofDataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig.getPreemptibility()- Parameters:
preemptibility- Optional. Specifies the preemptibility of the instance group. The default value for master and worker groups is `NON_PREEMPTIBLE`. This default cannot be changed. The default value for secondary instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#preemptibility DataprocWorkflowTemplate#preemptibility}- Returns:
this
-
build
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig>- Returns:
- a new instance of
DataprocWorkflowTemplatePlacementManagedClusterConfigMasterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-