Class TpuNodeSchedulingConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.tpu_node.TpuNodeSchedulingConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TpuNodeSchedulingConfig>
- Enclosing interface:
- TpuNodeSchedulingConfig
@Stability(Stable) public static final class TpuNodeSchedulingConfig.Builder extends Object implements software.amazon.jsii.Builder<TpuNodeSchedulingConfig>
A builder forTpuNodeSchedulingConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TpuNodeSchedulingConfigbuild()Builds the configured instance.TpuNodeSchedulingConfig.Builderpreemptible(com.hashicorp.cdktf.IResolvable preemptible)Sets the value ofTpuNodeSchedulingConfig.getPreemptible()TpuNodeSchedulingConfig.Builderpreemptible(Boolean preemptible)Sets the value ofTpuNodeSchedulingConfig.getPreemptible()
-
-
-
Method Detail
-
preemptible
@Stability(Stable) public TpuNodeSchedulingConfig.Builder preemptible(Boolean preemptible)
Sets the value ofTpuNodeSchedulingConfig.getPreemptible()- Parameters:
preemptible- Defines whether the TPU instance is preemptible. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#preemptible TpuNode#preemptible}- Returns:
this
-
preemptible
@Stability(Stable) public TpuNodeSchedulingConfig.Builder preemptible(com.hashicorp.cdktf.IResolvable preemptible)
Sets the value ofTpuNodeSchedulingConfig.getPreemptible()- Parameters:
preemptible- Defines whether the TPU instance is preemptible. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tpu_node#preemptible TpuNode#preemptible}- Returns:
this
-
build
@Stability(Stable) public TpuNodeSchedulingConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TpuNodeSchedulingConfig>- Returns:
- a new instance of
TpuNodeSchedulingConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-