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