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