Class BigqueryRoutineConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.bigquery_routine.BigqueryRoutineConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BigqueryRoutineConfig>
- Enclosing interface:
- BigqueryRoutineConfig
@Stability(Stable) public static final class BigqueryRoutineConfig.Builder extends Object implements software.amazon.jsii.Builder<BigqueryRoutineConfig>
A builder forBigqueryRoutineConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
datasetId
@Stability(Stable) public BigqueryRoutineConfig.Builder datasetId(String datasetId)
Sets the value ofBigqueryRoutineConfig.getDatasetId()- Parameters:
datasetId- The ID of the dataset containing this routine. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#dataset_id BigqueryRoutine#dataset_id}- Returns:
this
-
definitionBody
@Stability(Stable) public BigqueryRoutineConfig.Builder definitionBody(String definitionBody)
Sets the value ofBigqueryRoutineConfig.getDefinitionBody()- Parameters:
definitionBody- The body of the routine. This parameter is required. For functions, this is the expression in the AS clause. If language=SQL, it is the substring inside (but excluding) the parentheses. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#definition_body BigqueryRoutine#definition_body}- Returns:
this
-
routineId
@Stability(Stable) public BigqueryRoutineConfig.Builder routineId(String routineId)
Sets the value ofBigqueryRoutineConfig.getRoutineId()- Parameters:
routineId- The ID of the the routine. This parameter is required. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#routine_id BigqueryRoutine#routine_id}- Returns:
this
-
routineType
@Stability(Stable) public BigqueryRoutineConfig.Builder routineType(String routineType)
Sets the value ofBigqueryRoutineConfig.getRoutineType()- Parameters:
routineType- The type of routine. Possible values: ["SCALAR_FUNCTION", "PROCEDURE", "TABLE_VALUED_FUNCTION"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#routine_type BigqueryRoutine#routine_type}- Returns:
this
-
arguments
@Stability(Stable) public BigqueryRoutineConfig.Builder arguments(com.hashicorp.cdktf.IResolvable arguments)
Sets the value ofBigqueryRoutineConfig.getArguments()- Parameters:
arguments- arguments block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#arguments BigqueryRoutine#arguments}- Returns:
this
-
arguments
@Stability(Stable) public BigqueryRoutineConfig.Builder arguments(List<? extends BigqueryRoutineArguments> arguments)
Sets the value ofBigqueryRoutineConfig.getArguments()- Parameters:
arguments- arguments block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#arguments BigqueryRoutine#arguments}- Returns:
this
-
dataGovernanceType
@Stability(Stable) public BigqueryRoutineConfig.Builder dataGovernanceType(String dataGovernanceType)
Sets the value ofBigqueryRoutineConfig.getDataGovernanceType()- Parameters:
dataGovernanceType- If set to DATA_MASKING, the function is validated and made available as a masking function. For more information, see https://cloud.google.com/bigquery/docs/user-defined-functions#custom-mask Possible values: ["DATA_MASKING"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#data_governance_type BigqueryRoutine#data_governance_type}- Returns:
this
-
description
@Stability(Stable) public BigqueryRoutineConfig.Builder description(String description)
Sets the value ofBigqueryRoutineConfig.getDescription()- Parameters:
description- The description of the routine if defined. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#description BigqueryRoutine#description}- Returns:
this
-
determinismLevel
@Stability(Stable) public BigqueryRoutineConfig.Builder determinismLevel(String determinismLevel)
Sets the value ofBigqueryRoutineConfig.getDeterminismLevel()- Parameters:
determinismLevel- The determinism level of the JavaScript UDF if defined. Possible values: ["DETERMINISM_LEVEL_UNSPECIFIED", "DETERMINISTIC", "NOT_DETERMINISTIC"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#determinism_level BigqueryRoutine#determinism_level}- Returns:
this
-
id
@Stability(Stable) public BigqueryRoutineConfig.Builder id(String id)
Sets the value ofBigqueryRoutineConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#id BigqueryRoutine#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
-
importedLibraries
@Stability(Stable) public BigqueryRoutineConfig.Builder importedLibraries(List<String> importedLibraries)
Sets the value ofBigqueryRoutineConfig.getImportedLibraries()- Parameters:
importedLibraries- Optional. If language = "JAVASCRIPT", this field stores the path of the imported JAVASCRIPT libraries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#imported_libraries BigqueryRoutine#imported_libraries}- Returns:
this
-
language
@Stability(Stable) public BigqueryRoutineConfig.Builder language(String language)
Sets the value ofBigqueryRoutineConfig.getLanguage()- Parameters:
language- The language of the routine. Possible values: ["SQL", "JAVASCRIPT", "PYTHON", "JAVA", "SCALA"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#language BigqueryRoutine#language}- Returns:
this
-
project
@Stability(Stable) public BigqueryRoutineConfig.Builder project(String project)
Sets the value ofBigqueryRoutineConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#project BigqueryRoutine#project}.- Returns:
this
-
remoteFunctionOptions
@Stability(Stable) public BigqueryRoutineConfig.Builder remoteFunctionOptions(BigqueryRoutineRemoteFunctionOptions remoteFunctionOptions)
Sets the value ofBigqueryRoutineConfig.getRemoteFunctionOptions()- Parameters:
remoteFunctionOptions- remote_function_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#remote_function_options BigqueryRoutine#remote_function_options}- Returns:
this
-
returnTableType
@Stability(Stable) public BigqueryRoutineConfig.Builder returnTableType(String returnTableType)
Sets the value ofBigqueryRoutineConfig.getReturnTableType()- Parameters:
returnTableType- Optional. Can be set only if routineType = "TABLE_VALUED_FUNCTION". If absent, the return table type is inferred from definitionBody at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specificed in return table type, at query time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#return_table_type BigqueryRoutine#return_table_type}- Returns:
this
-
returnType
@Stability(Stable) public BigqueryRoutineConfig.Builder returnType(String returnType)
Sets the value ofBigqueryRoutineConfig.getReturnType()- Parameters:
returnType- A JSON schema for the return type. Optional if language = "SQL"; required otherwise. If absent, the return type is inferred from definitionBody at query time in each query that references this routine. If present, then the evaluated result will be cast to the specified returned type at query time. ~>**NOTE**: Because this field expects a JSON string, any changes to the string will create a diff, even if the JSON itself hasn't changed. If the API returns a different value for the same schema, e.g. it switche d the order of values or replaced STRUCT field type with RECORD field type, we currently cannot suppress the recurring diff this causes. As a workaround, we recommend using the schema as returned by the API. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#return_type BigqueryRoutine#return_type}- Returns:
this
-
sparkOptions
@Stability(Stable) public BigqueryRoutineConfig.Builder sparkOptions(BigqueryRoutineSparkOptions sparkOptions)
Sets the value ofBigqueryRoutineConfig.getSparkOptions()- Parameters:
sparkOptions- spark_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#spark_options BigqueryRoutine#spark_options}- Returns:
this
-
timeouts
@Stability(Stable) public BigqueryRoutineConfig.Builder timeouts(BigqueryRoutineTimeouts timeouts)
Sets the value ofBigqueryRoutineConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/bigquery_routine#timeouts BigqueryRoutine#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public BigqueryRoutineConfig.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 BigqueryRoutineConfig.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 BigqueryRoutineConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public BigqueryRoutineConfig.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 BigqueryRoutineConfig.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 BigqueryRoutineConfig.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 BigqueryRoutineConfig.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 BigqueryRoutineConfig.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 BigqueryRoutineConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public BigqueryRoutineConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BigqueryRoutineConfig>- Returns:
- a new instance of
BigqueryRoutineConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-