Class DataflowJobConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataflow_job.DataflowJobConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataflowJobConfig>
- Enclosing interface:
- DataflowJobConfig
@Stability(Stable) public static final class DataflowJobConfig.Builder extends Object implements software.amazon.jsii.Builder<DataflowJobConfig>
A builder forDataflowJobConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public DataflowJobConfig.Builder name(String name)
Sets the value ofDataflowJobConfig.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)
Sets the value ofDataflowJobConfig.getTempGcsLocation()- 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)
Sets the value ofDataflowJobConfig.getTemplateGcsPath()- 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)
Sets the value ofDataflowJobConfig.getAdditionalExperiments()- 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)
Sets the value ofDataflowJobConfig.getEnableStreamingEngine()- 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)
Sets the value ofDataflowJobConfig.getEnableStreamingEngine()- 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 ofDataflowJobConfig.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)
Sets the value ofDataflowJobConfig.getIpConfiguration()- 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)
Sets the value ofDataflowJobConfig.getKmsKeyName()- 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)
Sets the value ofDataflowJobConfig.getLabels()- 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)
Sets the value ofDataflowJobConfig.getMachineType()- 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)
Sets the value ofDataflowJobConfig.getMaxWorkers()- 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)
Sets the value ofDataflowJobConfig.getNetwork()- 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)
Sets the value ofDataflowJobConfig.getOnDelete()- 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)
Sets the value ofDataflowJobConfig.getParameters()- 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)
Sets the value ofDataflowJobConfig.getProject()- 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)
Sets the value ofDataflowJobConfig.getRegion()- 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)
Sets the value ofDataflowJobConfig.getServiceAccountEmail()- 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)
Sets the value ofDataflowJobConfig.getSkipWaitOnJobTermination()- 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)
Sets the value ofDataflowJobConfig.getSkipWaitOnJobTermination()- 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)
Sets the value ofDataflowJobConfig.getSubnetwork()- 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
-
timeouts
@Stability(Stable) public DataflowJobConfig.Builder timeouts(DataflowJobTimeouts timeouts)
Sets the value ofDataflowJobConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataflow_job#timeouts DataflowJob#timeouts}- Returns:
this
-
transformNameMapping
@Stability(Stable) public DataflowJobConfig.Builder transformNameMapping(Map<String,String> transformNameMapping)
Sets the value ofDataflowJobConfig.getTransformNameMapping()- 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 ofDataflowJobConfig.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataflowJobConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public DataflowJobConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataflowJobConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataflowJobConfig>- Returns:
- a new instance of
DataflowJobConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-