Class DataprocJobConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_job.DataprocJobConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocJobConfig>
- Enclosing interface:
- DataprocJobConfig
@Stability(Stable) public static final class DataprocJobConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocJobConfig>
A builder forDataprocJobConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
placement
@Stability(Stable) public DataprocJobConfig.Builder placement(DataprocJobPlacement placement)
Sets the value ofDataprocJobConfig.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_job#placement DataprocJob#placement}- Returns:
this
-
forceDelete
@Stability(Stable) public DataprocJobConfig.Builder forceDelete(Boolean forceDelete)
Sets the value ofDataprocJobConfig.getForceDelete()- Parameters:
forceDelete- By default, you can only delete inactive jobs within Dataproc. Setting this to true, and calling destroy, will ensure that the job is first cancelled before issuing the delete. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#force_delete DataprocJob#force_delete}- Returns:
this
-
forceDelete
@Stability(Stable) public DataprocJobConfig.Builder forceDelete(com.hashicorp.cdktf.IResolvable forceDelete)
Sets the value ofDataprocJobConfig.getForceDelete()- Parameters:
forceDelete- By default, you can only delete inactive jobs within Dataproc. Setting this to true, and calling destroy, will ensure that the job is first cancelled before issuing the delete. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#force_delete DataprocJob#force_delete}- Returns:
this
-
hadoopConfig
@Stability(Stable) public DataprocJobConfig.Builder hadoopConfig(DataprocJobHadoopConfig hadoopConfig)
Sets the value ofDataprocJobConfig.getHadoopConfig()- Parameters:
hadoopConfig- hadoop_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#hadoop_config DataprocJob#hadoop_config}- Returns:
this
-
hiveConfig
@Stability(Stable) public DataprocJobConfig.Builder hiveConfig(DataprocJobHiveConfig hiveConfig)
Sets the value ofDataprocJobConfig.getHiveConfig()- Parameters:
hiveConfig- hive_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#hive_config DataprocJob#hive_config}- Returns:
this
-
id
@Stability(Stable) public DataprocJobConfig.Builder id(String id)
Sets the value ofDataprocJobConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#id DataprocJob#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 DataprocJobConfig.Builder labels(Map<String,String> labels)
Sets the value ofDataprocJobConfig.getLabels()- Parameters:
labels- Optional. The labels to associate with this job. **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_job#labels DataprocJob#labels}- Returns:
this
-
pigConfig
@Stability(Stable) public DataprocJobConfig.Builder pigConfig(DataprocJobPigConfig pigConfig)
Sets the value ofDataprocJobConfig.getPigConfig()- Parameters:
pigConfig- pig_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#pig_config DataprocJob#pig_config}- Returns:
this
-
prestoConfig
@Stability(Stable) public DataprocJobConfig.Builder prestoConfig(DataprocJobPrestoConfig prestoConfig)
Sets the value ofDataprocJobConfig.getPrestoConfig()- Parameters:
prestoConfig- presto_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#presto_config DataprocJob#presto_config}- Returns:
this
-
project
@Stability(Stable) public DataprocJobConfig.Builder project(String project)
Sets the value ofDataprocJobConfig.getProject()- Parameters:
project- The project in which the cluster can be found and jobs subsequently run against. 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_job#project DataprocJob#project}- Returns:
this
-
pysparkConfig
@Stability(Stable) public DataprocJobConfig.Builder pysparkConfig(DataprocJobPysparkConfig pysparkConfig)
Sets the value ofDataprocJobConfig.getPysparkConfig()- Parameters:
pysparkConfig- pyspark_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#pyspark_config DataprocJob#pyspark_config}- Returns:
this
-
reference
@Stability(Stable) public DataprocJobConfig.Builder reference(DataprocJobReference reference)
Sets the value ofDataprocJobConfig.getReference()- Parameters:
reference- reference block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#reference DataprocJob#reference}- Returns:
this
-
region
@Stability(Stable) public DataprocJobConfig.Builder region(String region)
Sets the value ofDataprocJobConfig.getRegion()- Parameters:
region- The Cloud Dataproc region. This essentially determines which clusters are available for this job to be submitted to. If not specified, defaults to global. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#region DataprocJob#region}- Returns:
this
-
scheduling
@Stability(Stable) public DataprocJobConfig.Builder scheduling(DataprocJobScheduling scheduling)
Sets the value ofDataprocJobConfig.getScheduling()- Parameters:
scheduling- scheduling block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#scheduling DataprocJob#scheduling}- Returns:
this
-
sparkConfig
@Stability(Stable) public DataprocJobConfig.Builder sparkConfig(DataprocJobSparkConfig sparkConfig)
Sets the value ofDataprocJobConfig.getSparkConfig()- Parameters:
sparkConfig- spark_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#spark_config DataprocJob#spark_config}- Returns:
this
-
sparksqlConfig
@Stability(Stable) public DataprocJobConfig.Builder sparksqlConfig(DataprocJobSparksqlConfig sparksqlConfig)
Sets the value ofDataprocJobConfig.getSparksqlConfig()- Parameters:
sparksqlConfig- sparksql_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#sparksql_config DataprocJob#sparksql_config}- Returns:
this
-
timeouts
@Stability(Stable) public DataprocJobConfig.Builder timeouts(DataprocJobTimeouts timeouts)
Sets the value ofDataprocJobConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#timeouts DataprocJob#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DataprocJobConfig.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 DataprocJobConfig.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 DataprocJobConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataprocJobConfig.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 DataprocJobConfig.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 DataprocJobConfig.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 DataprocJobConfig.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 DataprocJobConfig.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 DataprocJobConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataprocJobConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocJobConfig>- Returns:
- a new instance of
DataprocJobConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-