Class DataprocWorkflowTemplateConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_workflow_template.DataprocWorkflowTemplateConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocWorkflowTemplateConfig>
- Enclosing interface:
- DataprocWorkflowTemplateConfig
@Stability(Stable) public static final class DataprocWorkflowTemplateConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocWorkflowTemplateConfig>
A builder forDataprocWorkflowTemplateConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
jobs
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder jobs(com.hashicorp.cdktf.IResolvable jobs)
Sets the value ofDataprocWorkflowTemplateConfig.getJobs()- Parameters:
jobs- jobs block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#jobs DataprocWorkflowTemplate#jobs}- Returns:
this
-
jobs
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder jobs(List<? extends DataprocWorkflowTemplateJobs> jobs)
Sets the value ofDataprocWorkflowTemplateConfig.getJobs()- Parameters:
jobs- jobs block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#jobs DataprocWorkflowTemplate#jobs}- Returns:
this
-
location
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder location(String location)
Sets the value ofDataprocWorkflowTemplateConfig.getLocation()- Parameters:
location- The location for the resource. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#location DataprocWorkflowTemplate#location}- Returns:
this
-
name
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder name(String name)
Sets the value ofDataprocWorkflowTemplateConfig.getName()- Parameters:
name- Output only. This parameter is required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. * For `projects.regions.workflowTemplates`, the resource name of the template has the following format: `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` * For `projects.locations.workflowTemplates`, the resource name of the template has the following format: `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#name DataprocWorkflowTemplate#name}- Returns:
this
-
placement
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder placement(DataprocWorkflowTemplatePlacement placement)
Sets the value ofDataprocWorkflowTemplateConfig.getPlacement()- Parameters:
placement- placement block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#placement DataprocWorkflowTemplate#placement}- Returns:
this
-
dagTimeout
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder dagTimeout(String dagTimeout)
Sets the value ofDataprocWorkflowTemplateConfig.getDagTimeout()- Parameters:
dagTimeout- Optional. Timeout duration for the DAG of jobs, expressed in seconds (see [JSON representation of duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a [managed cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), the cluster is deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#dag_timeout DataprocWorkflowTemplate#dag_timeout}- Returns:
this
-
id
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder id(String id)
Sets the value ofDataprocWorkflowTemplateConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#id DataprocWorkflowTemplate#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 DataprocWorkflowTemplateConfig.Builder labels(Map<String,String> labels)
Sets the value ofDataprocWorkflowTemplateConfig.getLabels()- Parameters:
labels- Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a template. **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_workflow_template#labels DataprocWorkflowTemplate#labels}- Returns:
this
-
parameters
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder parameters(com.hashicorp.cdktf.IResolvable parameters)
Sets the value ofDataprocWorkflowTemplateConfig.getParameters()- Parameters:
parameters- parameters block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#parameters DataprocWorkflowTemplate#parameters}- Returns:
this
-
parameters
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder parameters(List<? extends DataprocWorkflowTemplateParameters> parameters)
Sets the value ofDataprocWorkflowTemplateConfig.getParameters()- Parameters:
parameters- parameters block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#parameters DataprocWorkflowTemplate#parameters}- Returns:
this
-
project
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder project(String project)
Sets the value ofDataprocWorkflowTemplateConfig.getProject()- Parameters:
project- The project for the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#project DataprocWorkflowTemplate#project}- Returns:
this
-
timeouts
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder timeouts(DataprocWorkflowTemplateTimeouts timeouts)
Sets the value ofDataprocWorkflowTemplateConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#timeouts DataprocWorkflowTemplate#timeouts}- Returns:
this
-
version
@Stability(Stable) public DataprocWorkflowTemplateConfig.Builder version(Number version)
Sets the value ofDataprocWorkflowTemplateConfig.getVersion()- Parameters:
version- Output only. The current version of this workflow template. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#version DataprocWorkflowTemplate#version}- Returns:
this
-
connection
@Stability(Experimental) public DataprocWorkflowTemplateConfig.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 DataprocWorkflowTemplateConfig.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 DataprocWorkflowTemplateConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataprocWorkflowTemplateConfig.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 DataprocWorkflowTemplateConfig.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 DataprocWorkflowTemplateConfig.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 DataprocWorkflowTemplateConfig.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 DataprocWorkflowTemplateConfig.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 DataprocWorkflowTemplateConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataprocWorkflowTemplateConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocWorkflowTemplateConfig>- Returns:
- a new instance of
DataprocWorkflowTemplateConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-