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