Class DataplexTaskExecutionSpec.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataplex_task.DataplexTaskExecutionSpec.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataplexTaskExecutionSpec>
- Enclosing interface:
- DataplexTaskExecutionSpec
@Stability(Stable) public static final class DataplexTaskExecutionSpec.Builder extends Object implements software.amazon.jsii.Builder<DataplexTaskExecutionSpec>
A builder forDataplexTaskExecutionSpec
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataplexTaskExecutionSpec.Builderargs(Map<String,String> args)Sets the value ofDataplexTaskExecutionSpec.getArgs()DataplexTaskExecutionSpecbuild()Builds the configured instance.DataplexTaskExecutionSpec.BuilderkmsKey(String kmsKey)Sets the value ofDataplexTaskExecutionSpec.getKmsKey()DataplexTaskExecutionSpec.BuildermaxJobExecutionLifetime(String maxJobExecutionLifetime)Sets the value ofDataplexTaskExecutionSpec.getMaxJobExecutionLifetime()DataplexTaskExecutionSpec.Builderproject(String project)Sets the value ofDataplexTaskExecutionSpec.getProject()DataplexTaskExecutionSpec.BuilderserviceAccount(String serviceAccount)Sets the value ofDataplexTaskExecutionSpec.getServiceAccount()
-
-
-
Method Detail
-
serviceAccount
@Stability(Stable) public DataplexTaskExecutionSpec.Builder serviceAccount(String serviceAccount)
Sets the value ofDataplexTaskExecutionSpec.getServiceAccount()- Parameters:
serviceAccount- Service account to use to execute a task. This parameter is required. If not provided, the default Compute service account for the project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataplex_task#service_account DataplexTask#service_account}- Returns:
this
-
args
@Stability(Stable) public DataplexTaskExecutionSpec.Builder args(Map<String,String> args)
Sets the value ofDataplexTaskExecutionSpec.getArgs()- Parameters:
args- The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${taskId} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument. An object containing a list of 'key': value pairs. Example: { 'name': 'wrench', 'mass': '1.3kg', 'count': '3' }. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataplex_task#args DataplexTask#args}- Returns:
this
-
kmsKey
@Stability(Stable) public DataplexTaskExecutionSpec.Builder kmsKey(String kmsKey)
Sets the value ofDataplexTaskExecutionSpec.getKmsKey()- Parameters:
kmsKey- The Cloud KMS key to use for encryption, of the form: projects/{project_number}/locations/{locationId}/keyRings/{key-ring-name}/cryptoKeys/{key-name}. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataplex_task#kms_key DataplexTask#kms_key}- Returns:
this
-
maxJobExecutionLifetime
@Stability(Stable) public DataplexTaskExecutionSpec.Builder maxJobExecutionLifetime(String maxJobExecutionLifetime)
Sets the value ofDataplexTaskExecutionSpec.getMaxJobExecutionLifetime()- Parameters:
maxJobExecutionLifetime- The maximum duration after which the job execution is expired. A duration in seconds with up to nine fractional digits, ending with 's'. Example: '3.5s'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataplex_task#max_job_execution_lifetime DataplexTask#max_job_execution_lifetime}- Returns:
this
-
project
@Stability(Stable) public DataplexTaskExecutionSpec.Builder project(String project)
Sets the value ofDataplexTaskExecutionSpec.getProject()- Parameters:
project- The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the ExecutionSpec.service_account must belong to this project. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataplex_task#project DataplexTask#project}- Returns:
this
-
build
@Stability(Stable) public DataplexTaskExecutionSpec build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataplexTaskExecutionSpec>- Returns:
- a new instance of
DataplexTaskExecutionSpec - Throws:
NullPointerException- if any required attribute was not provided
-
-