Class DataflowJobConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Stable)
        public DataflowJobConfig.Builder name​(String name)
        Sets the value of DataflowJobConfig.getName()
        Parameters:
        name - A unique name for the resource, required by Dataflow. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#name DataflowJob#name}
        Returns:
        this
      • tempGcsLocation

        @Stability(Stable)
        public DataflowJobConfig.Builder tempGcsLocation​(String tempGcsLocation)
        Parameters:
        tempGcsLocation - A writeable location on Google Cloud Storage for the Dataflow job to dump its temporary data. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#temp_gcs_location DataflowJob#temp_gcs_location}
        Returns:
        this
      • templateGcsPath

        @Stability(Stable)
        public DataflowJobConfig.Builder templateGcsPath​(String templateGcsPath)
        Parameters:
        templateGcsPath - The Google Cloud Storage path to the Dataflow job template. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#template_gcs_path DataflowJob#template_gcs_path}
        Returns:
        this
      • additionalExperiments

        @Stability(Stable)
        public DataflowJobConfig.Builder additionalExperiments​(List<String> additionalExperiments)
        Parameters:
        additionalExperiments - List of experiments that should be used by the job. An example value is ["enable_stackdriver_agent_metrics"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#additional_experiments DataflowJob#additional_experiments}
        Returns:
        this
      • enableStreamingEngine

        @Stability(Stable)
        public DataflowJobConfig.Builder enableStreamingEngine​(Boolean enableStreamingEngine)
        Parameters:
        enableStreamingEngine - Indicates if the job should use the streaming engine feature. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#enable_streaming_engine DataflowJob#enable_streaming_engine}
        Returns:
        this
      • enableStreamingEngine

        @Stability(Stable)
        public DataflowJobConfig.Builder enableStreamingEngine​(com.hashicorp.cdktf.IResolvable enableStreamingEngine)
        Parameters:
        enableStreamingEngine - Indicates if the job should use the streaming engine feature. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#enable_streaming_engine DataflowJob#enable_streaming_engine}
        Returns:
        this
      • id

        @Stability(Stable)
        public DataflowJobConfig.Builder id​(String id)
        Sets the value of DataflowJobConfig.getId()
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#id DataflowJob#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
      • ipConfiguration

        @Stability(Stable)
        public DataflowJobConfig.Builder ipConfiguration​(String ipConfiguration)
        Parameters:
        ipConfiguration - The configuration for VM IPs. Options are "WORKER_IP_PUBLIC" or "WORKER_IP_PRIVATE". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#ip_configuration DataflowJob#ip_configuration}
        Returns:
        this
      • kmsKeyName

        @Stability(Stable)
        public DataflowJobConfig.Builder kmsKeyName​(String kmsKeyName)
        Parameters:
        kmsKeyName - The name for the Cloud KMS key for the job. Key format is: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#kms_key_name DataflowJob#kms_key_name}
        Returns:
        this
      • labels

        @Stability(Stable)
        public DataflowJobConfig.Builder labels​(Map<String,​String> labels)
        Parameters:
        labels - User labels to be specified for the job. Keys and values should follow the restrictions specified in the labeling restrictions page. 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/dataflow_job#labels DataflowJob#labels}
        Returns:
        this
      • machineType

        @Stability(Stable)
        public DataflowJobConfig.Builder machineType​(String machineType)
        Parameters:
        machineType - The machine type to use for the job. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#machine_type DataflowJob#machine_type}
        Returns:
        this
      • maxWorkers

        @Stability(Stable)
        public DataflowJobConfig.Builder maxWorkers​(Number maxWorkers)
        Parameters:
        maxWorkers - The number of workers permitted to work on the job. More workers may improve processing speed at additional cost. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#max_workers DataflowJob#max_workers}
        Returns:
        this
      • network

        @Stability(Stable)
        public DataflowJobConfig.Builder network​(String network)
        Parameters:
        network - The network to which VMs will be assigned. If it is not provided, "default" will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#network DataflowJob#network}
        Returns:
        this
      • onDelete

        @Stability(Stable)
        public DataflowJobConfig.Builder onDelete​(String onDelete)
        Parameters:
        onDelete - One of "drain" or "cancel". Specifies behavior of deletion during terraform destroy. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#on_delete DataflowJob#on_delete}
        Returns:
        this
      • parameters

        @Stability(Stable)
        public DataflowJobConfig.Builder parameters​(Map<String,​String> parameters)
        Parameters:
        parameters - Key/Value pairs to be passed to the Dataflow job (as used in the template). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#parameters DataflowJob#parameters}
        Returns:
        this
      • project

        @Stability(Stable)
        public DataflowJobConfig.Builder project​(String project)
        Parameters:
        project - The project in which the resource belongs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#project DataflowJob#project}
        Returns:
        this
      • region

        @Stability(Stable)
        public DataflowJobConfig.Builder region​(String region)
        Parameters:
        region - The region in which the created job should run. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#region DataflowJob#region}
        Returns:
        this
      • serviceAccountEmail

        @Stability(Stable)
        public DataflowJobConfig.Builder serviceAccountEmail​(String serviceAccountEmail)
        Parameters:
        serviceAccountEmail - The Service Account email used to create the job. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#service_account_email DataflowJob#service_account_email}
        Returns:
        this
      • skipWaitOnJobTermination

        @Stability(Stable)
        public DataflowJobConfig.Builder skipWaitOnJobTermination​(Boolean skipWaitOnJobTermination)
        Parameters:
        skipWaitOnJobTermination - If true, treat DRAINING and CANCELLING as terminal job states and do not wait for further changes before removing from terraform state and moving on. WARNING: this will lead to job name conflicts if you do not ensure that the job names are different, e.g. by embedding a release ID or by using a random_id. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#skip_wait_on_job_termination DataflowJob#skip_wait_on_job_termination}
        Returns:
        this
      • skipWaitOnJobTermination

        @Stability(Stable)
        public DataflowJobConfig.Builder skipWaitOnJobTermination​(com.hashicorp.cdktf.IResolvable skipWaitOnJobTermination)
        Parameters:
        skipWaitOnJobTermination - If true, treat DRAINING and CANCELLING as terminal job states and do not wait for further changes before removing from terraform state and moving on. WARNING: this will lead to job name conflicts if you do not ensure that the job names are different, e.g. by embedding a release ID or by using a random_id. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#skip_wait_on_job_termination DataflowJob#skip_wait_on_job_termination}
        Returns:
        this
      • subnetwork

        @Stability(Stable)
        public DataflowJobConfig.Builder subnetwork​(String subnetwork)
        Parameters:
        subnetwork - The subnetwork to which VMs will be assigned. Should be of the form "regions/REGION/subnetworks/SUBNETWORK". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#subnetwork DataflowJob#subnetwork}
        Returns:
        this
      • transformNameMapping

        @Stability(Stable)
        public DataflowJobConfig.Builder transformNameMapping​(Map<String,​String> transformNameMapping)
        Parameters:
        transformNameMapping - Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced with the corresponding name prefixes of the new job. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#transform_name_mapping DataflowJob#transform_name_mapping}
        Returns:
        this
      • zone

        @Stability(Stable)
        public DataflowJobConfig.Builder zone​(String zone)
        Sets the value of DataflowJobConfig.getZone()
        Parameters:
        zone - The zone in which the created job should run. If it is not provided, the provider zone is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#zone DataflowJob#zone}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public DataflowJobConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public DataflowJobConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public DataflowJobConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public DataflowJobConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public DataflowJobConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public DataflowJobConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public DataflowJobConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public DataflowJobConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public DataflowJobConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this