Class CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty>
- Enclosing interface:
CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty
@Stability(Stable)
public static final class CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.marketType
(String marketType) spotOptions
(IResolvable spotOptions)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
marketType
@Stability(Stable) public CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty.Builder marketType(String marketType) - Parameters:
marketType
- the value to be set.- Returns:
this
-
spotOptions
@Stability(Stable) public CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty.Builder spotOptions(IResolvable spotOptions) - Parameters:
spotOptions
- the value to be set.- Returns:
this
-
spotOptions
@Stability(Stable) public CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty.Builder spotOptions(CfnWorkspaceInstance.SpotMarketOptionsProperty spotOptions) - Parameters:
spotOptions
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty>
- Returns:
- a new instance of
CfnWorkspaceInstance.InstanceMarketOptionsRequestProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-