Class CfnWorkspaceInstance.CpuOptionsRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnWorkspaceInstance.CpuOptionsRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceInstance.CpuOptionsRequestProperty>
- Enclosing interface:
CfnWorkspaceInstance.CpuOptionsRequestProperty
@Stability(Stable)
public static final class CfnWorkspaceInstance.CpuOptionsRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspaceInstance.CpuOptionsRequestProperty>
A builder for
CfnWorkspaceInstance.CpuOptionsRequestProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWorkspaceInstance.CpuOptionsRequestProperty.getCoreCount()threadsPerCore(Number threadsPerCore) Sets the value ofCfnWorkspaceInstance.CpuOptionsRequestProperty.getThreadsPerCore()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
coreCount
@Stability(Stable) public CfnWorkspaceInstance.CpuOptionsRequestProperty.Builder coreCount(Number coreCount) Sets the value ofCfnWorkspaceInstance.CpuOptionsRequestProperty.getCoreCount()- Parameters:
coreCount- the value to be set.- Returns:
this
-
threadsPerCore
@Stability(Stable) public CfnWorkspaceInstance.CpuOptionsRequestProperty.Builder threadsPerCore(Number threadsPerCore) Sets the value ofCfnWorkspaceInstance.CpuOptionsRequestProperty.getThreadsPerCore()- Parameters:
threadsPerCore- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspaceInstance.CpuOptionsRequestProperty>- Returns:
- a new instance of
CfnWorkspaceInstance.CpuOptionsRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-