Class ComputeInstanceTemplateAdvancedMachineFeatures.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance_template.ComputeInstanceTemplateAdvancedMachineFeatures.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceTemplateAdvancedMachineFeatures>
- Enclosing interface:
- ComputeInstanceTemplateAdvancedMachineFeatures
@Stability(Stable) public static final class ComputeInstanceTemplateAdvancedMachineFeatures.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceTemplateAdvancedMachineFeatures>
A builder forComputeInstanceTemplateAdvancedMachineFeatures
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInstanceTemplateAdvancedMachineFeaturesbuild()Builds the configured instance.ComputeInstanceTemplateAdvancedMachineFeatures.BuilderenableNestedVirtualization(com.hashicorp.cdktf.IResolvable enableNestedVirtualization)ComputeInstanceTemplateAdvancedMachineFeatures.BuilderenableNestedVirtualization(Boolean enableNestedVirtualization)ComputeInstanceTemplateAdvancedMachineFeatures.BuilderthreadsPerCore(Number threadsPerCore)Sets the value ofComputeInstanceTemplateAdvancedMachineFeatures.getThreadsPerCore()ComputeInstanceTemplateAdvancedMachineFeatures.BuildervisibleCoreCount(Number visibleCoreCount)Sets the value ofComputeInstanceTemplateAdvancedMachineFeatures.getVisibleCoreCount()
-
-
-
Method Detail
-
enableNestedVirtualization
@Stability(Stable) public ComputeInstanceTemplateAdvancedMachineFeatures.Builder enableNestedVirtualization(Boolean enableNestedVirtualization)
- 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_template#enable_nested_virtualization ComputeInstanceTemplate#enable_nested_virtualization}- Returns:
this
-
enableNestedVirtualization
@Stability(Stable) public ComputeInstanceTemplateAdvancedMachineFeatures.Builder enableNestedVirtualization(com.hashicorp.cdktf.IResolvable enableNestedVirtualization)
- 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_template#enable_nested_virtualization ComputeInstanceTemplate#enable_nested_virtualization}- Returns:
this
-
threadsPerCore
@Stability(Stable) public ComputeInstanceTemplateAdvancedMachineFeatures.Builder threadsPerCore(Number threadsPerCore)
Sets the value ofComputeInstanceTemplateAdvancedMachineFeatures.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_template#threads_per_core ComputeInstanceTemplate#threads_per_core}- Returns:
this
-
visibleCoreCount
@Stability(Stable) public ComputeInstanceTemplateAdvancedMachineFeatures.Builder visibleCoreCount(Number visibleCoreCount)
Sets the value ofComputeInstanceTemplateAdvancedMachineFeatures.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_template#visible_core_count ComputeInstanceTemplate#visible_core_count}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceTemplateAdvancedMachineFeatures build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceTemplateAdvancedMachineFeatures>- Returns:
- a new instance of
ComputeInstanceTemplateAdvancedMachineFeatures - Throws:
NullPointerException- if any required attribute was not provided
-
-