Class ComputeInstanceAdvancedMachineFeatures.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance.ComputeInstanceAdvancedMachineFeatures.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceAdvancedMachineFeatures>
- Enclosing interface:
- ComputeInstanceAdvancedMachineFeatures
@Stability(Stable) public static final class ComputeInstanceAdvancedMachineFeatures.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceAdvancedMachineFeatures>
A builder forComputeInstanceAdvancedMachineFeatures
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInstanceAdvancedMachineFeaturesbuild()Builds the configured instance.ComputeInstanceAdvancedMachineFeatures.BuilderenableNestedVirtualization(com.hashicorp.cdktf.IResolvable enableNestedVirtualization)Sets the value ofComputeInstanceAdvancedMachineFeatures.getEnableNestedVirtualization()ComputeInstanceAdvancedMachineFeatures.BuilderenableNestedVirtualization(Boolean enableNestedVirtualization)Sets the value ofComputeInstanceAdvancedMachineFeatures.getEnableNestedVirtualization()ComputeInstanceAdvancedMachineFeatures.BuilderthreadsPerCore(Number threadsPerCore)Sets the value ofComputeInstanceAdvancedMachineFeatures.getThreadsPerCore()ComputeInstanceAdvancedMachineFeatures.BuildervisibleCoreCount(Number visibleCoreCount)Sets the value ofComputeInstanceAdvancedMachineFeatures.getVisibleCoreCount()
-
-
-
Method Detail
-
enableNestedVirtualization
@Stability(Stable) public ComputeInstanceAdvancedMachineFeatures.Builder enableNestedVirtualization(Boolean enableNestedVirtualization)
Sets the value ofComputeInstanceAdvancedMachineFeatures.getEnableNestedVirtualization()- Parameters:
enableNestedVirtualization- Whether to enable nested virtualization or not. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#enable_nested_virtualization ComputeInstance#enable_nested_virtualization}- Returns:
this
-
enableNestedVirtualization
@Stability(Stable) public ComputeInstanceAdvancedMachineFeatures.Builder enableNestedVirtualization(com.hashicorp.cdktf.IResolvable enableNestedVirtualization)
Sets the value ofComputeInstanceAdvancedMachineFeatures.getEnableNestedVirtualization()- Parameters:
enableNestedVirtualization- Whether to enable nested virtualization or not. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#enable_nested_virtualization ComputeInstance#enable_nested_virtualization}- Returns:
this
-
threadsPerCore
@Stability(Stable) public ComputeInstanceAdvancedMachineFeatures.Builder threadsPerCore(Number threadsPerCore)
Sets the value ofComputeInstanceAdvancedMachineFeatures.getThreadsPerCore()- Parameters:
threadsPerCore- The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#threads_per_core ComputeInstance#threads_per_core}- Returns:
this
-
visibleCoreCount
@Stability(Stable) public ComputeInstanceAdvancedMachineFeatures.Builder visibleCoreCount(Number visibleCoreCount)
Sets the value ofComputeInstanceAdvancedMachineFeatures.getVisibleCoreCount()- Parameters:
visibleCoreCount- The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#visible_core_count ComputeInstance#visible_core_count}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceAdvancedMachineFeatures build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceAdvancedMachineFeatures>- Returns:
- a new instance of
ComputeInstanceAdvancedMachineFeatures - Throws:
NullPointerException- if any required attribute was not provided
-
-