Class DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_workflow_template.DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators>
- Enclosing interface:
- DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators
@Stability(Stable) public static final class DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.Builder extends Object implements software.amazon.jsii.Builder<DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.BuilderacceleratorCount(Number acceleratorCount)DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.BuilderacceleratorType(String acceleratorType)DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAcceleratorsbuild()Builds the configured instance.
-
-
-
Method Detail
-
acceleratorCount
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.Builder acceleratorCount(Number acceleratorCount)
Sets the value ofDataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.getAcceleratorCount()- Parameters:
acceleratorCount- The number of the accelerator cards of this type exposed to this instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#accelerator_count DataprocWorkflowTemplate#accelerator_count}- Returns:
this
-
acceleratorType
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.Builder acceleratorType(String acceleratorType)
Sets the value ofDataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators.getAcceleratorType()- Parameters:
acceleratorType- Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes). Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `nvidia-tesla-k80` **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 accelerator type resource, for example, `nvidia-tesla-k80`. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#accelerator_type DataprocWorkflowTemplate#accelerator_type}- Returns:
this
-
build
@Stability(Stable) public DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators>- Returns:
- a new instance of
DataprocWorkflowTemplatePlacementManagedClusterConfigWorkerConfigAccelerators - Throws:
NullPointerException- if any required attribute was not provided
-
-