Class CfnLaunchTemplatePropsMixin.CpuOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnLaunchTemplatePropsMixin.CpuOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.CpuOptionsProperty>
- Enclosing interface:
CfnLaunchTemplatePropsMixin.CpuOptionsProperty
@Stability(Stable)
public static final class CfnLaunchTemplatePropsMixin.CpuOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.CpuOptionsProperty>
A builder for
CfnLaunchTemplatePropsMixin.CpuOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnLaunchTemplatePropsMixin.CpuOptionsProperty.getAmdSevSnp()build()Builds the configured instance.Sets the value ofCfnLaunchTemplatePropsMixin.CpuOptionsProperty.getCoreCount()threadsPerCore(Number threadsPerCore) Sets the value ofCfnLaunchTemplatePropsMixin.CpuOptionsProperty.getThreadsPerCore()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amdSevSnp
@Stability(Stable) public CfnLaunchTemplatePropsMixin.CpuOptionsProperty.Builder amdSevSnp(String amdSevSnp) Sets the value ofCfnLaunchTemplatePropsMixin.CpuOptionsProperty.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. For more information, see AMD SEV-SNP for Amazon EC2 instances .- Returns:
this
-
coreCount
@Stability(Stable) public CfnLaunchTemplatePropsMixin.CpuOptionsProperty.Builder coreCount(Number coreCount) Sets the value ofCfnLaunchTemplatePropsMixin.CpuOptionsProperty.getCoreCount()- Parameters:
coreCount- The number of CPU cores for the instance.- Returns:
this
-
threadsPerCore
@Stability(Stable) public CfnLaunchTemplatePropsMixin.CpuOptionsProperty.Builder threadsPerCore(Number threadsPerCore) Sets the value ofCfnLaunchTemplatePropsMixin.CpuOptionsProperty.getThreadsPerCore()- Parameters:
threadsPerCore- The number of threads per CPU core. To disable multithreading for the instance, specify a value of1. Otherwise, specify the default value of2.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.CpuOptionsProperty>- Returns:
- a new instance of
CfnLaunchTemplatePropsMixin.CpuOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-