Class CfnInstance.CpuOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnInstance.CpuOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstance.CpuOptionsProperty>
- Enclosing interface:
CfnInstance.CpuOptionsProperty
@Stability(Stable)
public static final class CfnInstance.CpuOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstance.CpuOptionsProperty>
A builder for
CfnInstance.CpuOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnInstance.CpuOptionsProperty.getCoreCount()
threadsPerCore
(Number threadsPerCore) Sets the value ofCfnInstance.CpuOptionsProperty.getThreadsPerCore()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
coreCount
Sets the value ofCfnInstance.CpuOptionsProperty.getCoreCount()
- Parameters:
coreCount
- The number of CPU cores for the instance.- Returns:
this
-
threadsPerCore
@Stability(Stable) public CfnInstance.CpuOptionsProperty.Builder threadsPerCore(Number threadsPerCore) Sets the value ofCfnInstance.CpuOptionsProperty.getThreadsPerCore()
- Parameters:
threadsPerCore
- The number of threads per CPU core.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInstance.CpuOptionsProperty>
- Returns:
- a new instance of
CfnInstance.CpuOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-