Class CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty>
- Enclosing interface:
CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty
@Stability(Stable)
public static final class CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty>
-
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 CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty.Builder marketType(String marketType) - Parameters:
marketType- The market type.- Returns:
this
-
spotOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty.Builder spotOptions(IResolvable spotOptions) - Parameters:
spotOptions- The options for Spot Instances.- Returns:
this
-
spotOptions
@Stability(Stable) public CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty.Builder spotOptions(CfnLaunchTemplatePropsMixin.SpotOptionsProperty spotOptions) - Parameters:
spotOptions- The options for Spot Instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty>- Returns:
- a new instance of
CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-