Class LaunchTemplateCpuOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.LaunchTemplateCpuOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LaunchTemplateCpuOptions>
- Enclosing interface:
LaunchTemplateCpuOptions
@Stability(Stable)
public static final class LaunchTemplateCpuOptions.Builder
extends Object
implements software.amazon.jsii.Builder<LaunchTemplateCpuOptions>
A builder for
LaunchTemplateCpuOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofLaunchTemplateCpuOptions.getAmdSevSnp()build()Builds the configured instance.Sets the value ofLaunchTemplateCpuOptions.getCoreCount()nestedVirtualization(Boolean nestedVirtualization) Sets the value ofLaunchTemplateCpuOptions.getNestedVirtualization()threadsPerCore(Number threadsPerCore) Sets the value ofLaunchTemplateCpuOptions.getThreadsPerCore()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amdSevSnp
Sets the value ofLaunchTemplateCpuOptions.getAmdSevSnp()- Parameters:
amdSevSnp- Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only.- Returns:
this
-
coreCount
Sets the value ofLaunchTemplateCpuOptions.getCoreCount()- Parameters:
coreCount- The number of CPU cores for the instance.- Returns:
this
-
nestedVirtualization
@Stability(Stable) public LaunchTemplateCpuOptions.Builder nestedVirtualization(Boolean nestedVirtualization) Sets the value ofLaunchTemplateCpuOptions.getNestedVirtualization()- Parameters:
nestedVirtualization- Indicates whether the instance is enabled for nested virtualization.- Returns:
this
-
threadsPerCore
Sets the value ofLaunchTemplateCpuOptions.getThreadsPerCore()- Parameters:
threadsPerCore- The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1. Otherwise, specify the default value of 2.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LaunchTemplateCpuOptions>- Returns:
- a new instance of
LaunchTemplateCpuOptions - Throws:
NullPointerException- if any required attribute was not provided
-