Class ComputeNodeTemplateConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_node_template.ComputeNodeTemplateConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNodeTemplateConfig>
- Enclosing interface:
- ComputeNodeTemplateConfig
@Stability(Stable) public static final class ComputeNodeTemplateConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeNodeTemplateConfig>
A builder forComputeNodeTemplateConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
cpuOvercommitType
@Stability(Stable) public ComputeNodeTemplateConfig.Builder cpuOvercommitType(String cpuOvercommitType)
Sets the value ofComputeNodeTemplateConfig.getCpuOvercommitType()- Parameters:
cpuOvercommitType- CPU overcommit. Default value: "NONE" Possible values: ["ENABLED", "NONE"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#cpu_overcommit_type ComputeNodeTemplate#cpu_overcommit_type}- Returns:
this
-
description
@Stability(Stable) public ComputeNodeTemplateConfig.Builder description(String description)
Sets the value ofComputeNodeTemplateConfig.getDescription()- Parameters:
description- An optional textual description of the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#description ComputeNodeTemplate#description}- Returns:
this
-
id
@Stability(Stable) public ComputeNodeTemplateConfig.Builder id(String id)
Sets the value ofComputeNodeTemplateConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#id ComputeNodeTemplate#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
-
name
@Stability(Stable) public ComputeNodeTemplateConfig.Builder name(String name)
Sets the value ofComputeNodeTemplateConfig.getName()- Parameters:
name- Name of the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#name ComputeNodeTemplate#name}- Returns:
this
-
nodeAffinityLabels
@Stability(Stable) public ComputeNodeTemplateConfig.Builder nodeAffinityLabels(Map<String,String> nodeAffinityLabels)
Sets the value ofComputeNodeTemplateConfig.getNodeAffinityLabels()- Parameters:
nodeAffinityLabels- Labels to use for node affinity, which will be used in instance scheduling. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#node_affinity_labels ComputeNodeTemplate#node_affinity_labels}- Returns:
this
-
nodeType
@Stability(Stable) public ComputeNodeTemplateConfig.Builder nodeType(String nodeType)
Sets the value ofComputeNodeTemplateConfig.getNodeType()- Parameters:
nodeType- Node type to use for nodes group that are created from this template. Only one of nodeTypeFlexibility and nodeType can be specified. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#node_type ComputeNodeTemplate#node_type}- Returns:
this
-
nodeTypeFlexibility
@Stability(Stable) public ComputeNodeTemplateConfig.Builder nodeTypeFlexibility(ComputeNodeTemplateNodeTypeFlexibility nodeTypeFlexibility)
Sets the value ofComputeNodeTemplateConfig.getNodeTypeFlexibility()- Parameters:
nodeTypeFlexibility- node_type_flexibility block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#node_type_flexibility ComputeNodeTemplate#node_type_flexibility}- Returns:
this
-
project
@Stability(Stable) public ComputeNodeTemplateConfig.Builder project(String project)
Sets the value ofComputeNodeTemplateConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#project ComputeNodeTemplate#project}.- Returns:
this
-
region
@Stability(Stable) public ComputeNodeTemplateConfig.Builder region(String region)
Sets the value ofComputeNodeTemplateConfig.getRegion()- Parameters:
region- Region where nodes using the node template will be created. If it is not provided, the provider region is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#region ComputeNodeTemplate#region}- Returns:
this
-
serverBinding
@Stability(Stable) public ComputeNodeTemplateConfig.Builder serverBinding(ComputeNodeTemplateServerBinding serverBinding)
Sets the value ofComputeNodeTemplateConfig.getServerBinding()- Parameters:
serverBinding- server_binding block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#server_binding ComputeNodeTemplate#server_binding}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeNodeTemplateConfig.Builder timeouts(ComputeNodeTemplateTimeouts timeouts)
Sets the value ofComputeNodeTemplateConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#timeouts ComputeNodeTemplate#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeNodeTemplateConfig.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 ComputeNodeTemplateConfig.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 ComputeNodeTemplateConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeNodeTemplateConfig.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 ComputeNodeTemplateConfig.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 ComputeNodeTemplateConfig.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 ComputeNodeTemplateConfig.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 ComputeNodeTemplateConfig.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 ComputeNodeTemplateConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeNodeTemplateConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNodeTemplateConfig>- Returns:
- a new instance of
ComputeNodeTemplateConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-