Class ComputeNodeTemplateServerBinding.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_node_template.ComputeNodeTemplateServerBinding.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeNodeTemplateServerBinding>
- Enclosing interface:
- ComputeNodeTemplateServerBinding
@Stability(Stable) public static final class ComputeNodeTemplateServerBinding.Builder extends Object implements software.amazon.jsii.Builder<ComputeNodeTemplateServerBinding>
A builder forComputeNodeTemplateServerBinding
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeNodeTemplateServerBindingbuild()Builds the configured instance.ComputeNodeTemplateServerBinding.Buildertype(String type)Sets the value ofComputeNodeTemplateServerBinding.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public ComputeNodeTemplateServerBinding.Builder type(String type)
Sets the value ofComputeNodeTemplateServerBinding.getType()- Parameters:
type- Type of server binding policy. If 'RESTART_NODE_ON_ANY_SERVER', nodes using this template will restart on any physical server following a maintenance event. This parameter is required. If 'RESTART_NODE_ON_MINIMAL_SERVER', nodes using this template will restart on the same physical server following a maintenance event, instead of being live migrated to or restarted on a new physical server. This option may be useful if you are using software licenses tied to the underlying server characteristics such as physical sockets or cores, to avoid the need for additional licenses when maintenance occurs. However, VMs on such nodes will experience outages while maintenance is applied. Possible values: ["RESTART_NODE_ON_ANY_SERVER", "RESTART_NODE_ON_MINIMAL_SERVERS"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_node_template#type ComputeNodeTemplate#type}- Returns:
this
-
build
@Stability(Stable) public ComputeNodeTemplateServerBinding build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeNodeTemplateServerBinding>- Returns:
- a new instance of
ComputeNodeTemplateServerBinding - Throws:
NullPointerException- if any required attribute was not provided
-
-