public static final class CfnLaunchTemplate.CpuOptionsProperty.Builder
extends java.lang.Object
CfnLaunchTemplate.CpuOptionsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnLaunchTemplate.CpuOptionsProperty |
build()
Builds the configured instance.
|
CfnLaunchTemplate.CpuOptionsProperty.Builder |
coreCount(java.lang.Number coreCount)
Sets the value of
CfnLaunchTemplate.CpuOptionsProperty.getCoreCount() |
CfnLaunchTemplate.CpuOptionsProperty.Builder |
threadsPerCore(java.lang.Number threadsPerCore)
Sets the value of
CfnLaunchTemplate.CpuOptionsProperty.getThreadsPerCore() |
public CfnLaunchTemplate.CpuOptionsProperty.Builder coreCount(java.lang.Number coreCount)
CfnLaunchTemplate.CpuOptionsProperty.getCoreCount()
coreCount
- The number of CPU cores for the instance.this
public CfnLaunchTemplate.CpuOptionsProperty.Builder threadsPerCore(java.lang.Number threadsPerCore)
CfnLaunchTemplate.CpuOptionsProperty.getThreadsPerCore()
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.this
public CfnLaunchTemplate.CpuOptionsProperty build()
CfnLaunchTemplate.CpuOptionsProperty
java.lang.NullPointerException
- if any required attribute was not provided