Class DataprocJobSparksqlConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_job.DataprocJobSparksqlConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocJobSparksqlConfig>
- Enclosing interface:
- DataprocJobSparksqlConfig
@Stability(Stable) public static final class DataprocJobSparksqlConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocJobSparksqlConfig>
A builder forDataprocJobSparksqlConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataprocJobSparksqlConfigbuild()Builds the configured instance.DataprocJobSparksqlConfig.BuilderjarFileUris(List<String> jarFileUris)Sets the value ofDataprocJobSparksqlConfig.getJarFileUris()DataprocJobSparksqlConfig.BuilderloggingConfig(DataprocJobSparksqlConfigLoggingConfig loggingConfig)Sets the value ofDataprocJobSparksqlConfig.getLoggingConfig()DataprocJobSparksqlConfig.Builderproperties(Map<String,String> properties)Sets the value ofDataprocJobSparksqlConfig.getProperties()DataprocJobSparksqlConfig.BuilderqueryFileUri(String queryFileUri)Sets the value ofDataprocJobSparksqlConfig.getQueryFileUri()DataprocJobSparksqlConfig.BuilderqueryList(List<String> queryList)Sets the value ofDataprocJobSparksqlConfig.getQueryList()DataprocJobSparksqlConfig.BuilderscriptVariables(Map<String,String> scriptVariables)Sets the value ofDataprocJobSparksqlConfig.getScriptVariables()
-
-
-
Method Detail
-
jarFileUris
@Stability(Stable) public DataprocJobSparksqlConfig.Builder jarFileUris(List<String> jarFileUris)
Sets the value ofDataprocJobSparksqlConfig.getJarFileUris()- Parameters:
jarFileUris- HCFS URIs of jar files to be added to the Spark CLASSPATH. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#jar_file_uris DataprocJob#jar_file_uris}- Returns:
this
-
loggingConfig
@Stability(Stable) public DataprocJobSparksqlConfig.Builder loggingConfig(DataprocJobSparksqlConfigLoggingConfig loggingConfig)
Sets the value ofDataprocJobSparksqlConfig.getLoggingConfig()- Parameters:
loggingConfig- logging_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#logging_config DataprocJob#logging_config}- Returns:
this
-
properties
@Stability(Stable) public DataprocJobSparksqlConfig.Builder properties(Map<String,String> properties)
Sets the value ofDataprocJobSparksqlConfig.getProperties()- Parameters:
properties- A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#properties DataprocJob#properties}- Returns:
this
-
queryFileUri
@Stability(Stable) public DataprocJobSparksqlConfig.Builder queryFileUri(String queryFileUri)
Sets the value ofDataprocJobSparksqlConfig.getQueryFileUri()- Parameters:
queryFileUri- The HCFS URI of the script that contains SQL queries. Conflicts with query_list. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#query_file_uri DataprocJob#query_file_uri}- Returns:
this
-
queryList
@Stability(Stable) public DataprocJobSparksqlConfig.Builder queryList(List<String> queryList)
Sets the value ofDataprocJobSparksqlConfig.getQueryList()- Parameters:
queryList- The list of SQL queries or statements to execute as part of the job. Conflicts with query_file_uri. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#query_list DataprocJob#query_list}- Returns:
this
-
scriptVariables
@Stability(Stable) public DataprocJobSparksqlConfig.Builder scriptVariables(Map<String,String> scriptVariables)
Sets the value ofDataprocJobSparksqlConfig.getScriptVariables()- Parameters:
scriptVariables- Mapping of query variable names to values (equivalent to the Spark SQL command: SET name="value";). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_job#script_variables DataprocJob#script_variables}- Returns:
this
-
build
@Stability(Stable) public DataprocJobSparksqlConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocJobSparksqlConfig>- Returns:
- a new instance of
DataprocJobSparksqlConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-