Class DataprocAutoscalingPolicyConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_autoscaling_policy.DataprocAutoscalingPolicyConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocAutoscalingPolicyConfig>
- Enclosing interface:
- DataprocAutoscalingPolicyConfig
@Stability(Stable) public static final class DataprocAutoscalingPolicyConfig.Builder extends Object implements software.amazon.jsii.Builder<DataprocAutoscalingPolicyConfig>
A builder forDataprocAutoscalingPolicyConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
policyId
@Stability(Stable) public DataprocAutoscalingPolicyConfig.Builder policyId(String policyId)
Sets the value ofDataprocAutoscalingPolicyConfig.getPolicyId()- Parameters:
policyId- The policy id. This parameter is required. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#policy_id DataprocAutoscalingPolicy#policy_id}- Returns:
this
-
basicAlgorithm
@Stability(Stable) public DataprocAutoscalingPolicyConfig.Builder basicAlgorithm(DataprocAutoscalingPolicyBasicAlgorithm basicAlgorithm)
Sets the value ofDataprocAutoscalingPolicyConfig.getBasicAlgorithm()- Parameters:
basicAlgorithm- basic_algorithm block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#basic_algorithm DataprocAutoscalingPolicy#basic_algorithm}- Returns:
this
-
id
@Stability(Stable) public DataprocAutoscalingPolicyConfig.Builder id(String id)
Sets the value ofDataprocAutoscalingPolicyConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#id DataprocAutoscalingPolicy#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
-
location
@Stability(Stable) public DataprocAutoscalingPolicyConfig.Builder location(String location)
Sets the value ofDataprocAutoscalingPolicyConfig.getLocation()- Parameters:
location- The location where the autoscaling policy should reside. The default value is 'global'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#location DataprocAutoscalingPolicy#location}- Returns:
this
-
project
@Stability(Stable) public DataprocAutoscalingPolicyConfig.Builder project(String project)
Sets the value ofDataprocAutoscalingPolicyConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#project DataprocAutoscalingPolicy#project}.- Returns:
this
-
secondaryWorkerConfig
@Stability(Stable) public DataprocAutoscalingPolicyConfig.Builder secondaryWorkerConfig(DataprocAutoscalingPolicySecondaryWorkerConfig secondaryWorkerConfig)
Sets the value ofDataprocAutoscalingPolicyConfig.getSecondaryWorkerConfig()- Parameters:
secondaryWorkerConfig- secondary_worker_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#secondary_worker_config DataprocAutoscalingPolicy#secondary_worker_config}- Returns:
this
-
timeouts
@Stability(Stable) public DataprocAutoscalingPolicyConfig.Builder timeouts(DataprocAutoscalingPolicyTimeouts timeouts)
Sets the value ofDataprocAutoscalingPolicyConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#timeouts DataprocAutoscalingPolicy#timeouts}- Returns:
this
-
workerConfig
@Stability(Stable) public DataprocAutoscalingPolicyConfig.Builder workerConfig(DataprocAutoscalingPolicyWorkerConfig workerConfig)
Sets the value ofDataprocAutoscalingPolicyConfig.getWorkerConfig()- Parameters:
workerConfig- worker_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_autoscaling_policy#worker_config DataprocAutoscalingPolicy#worker_config}- Returns:
this
-
connection
@Stability(Experimental) public DataprocAutoscalingPolicyConfig.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 DataprocAutoscalingPolicyConfig.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 DataprocAutoscalingPolicyConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataprocAutoscalingPolicyConfig.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 DataprocAutoscalingPolicyConfig.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 DataprocAutoscalingPolicyConfig.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 DataprocAutoscalingPolicyConfig.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 DataprocAutoscalingPolicyConfig.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 DataprocAutoscalingPolicyConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataprocAutoscalingPolicyConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocAutoscalingPolicyConfig>- Returns:
- a new instance of
DataprocAutoscalingPolicyConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-