Class CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplate.InstanceMarketOptionsProperty>
- Enclosing interface:
CfnLaunchTemplate.InstanceMarketOptionsProperty
@Stability(Stable)
public static final class CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplate.InstanceMarketOptionsProperty>
A builder for
CfnLaunchTemplate.InstanceMarketOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.marketType
(String marketType) Sets the value ofCfnLaunchTemplate.InstanceMarketOptionsProperty.getMarketType()
spotOptions
(IResolvable spotOptions) Sets the value ofCfnLaunchTemplate.InstanceMarketOptionsProperty.getSpotOptions()
spotOptions
(CfnLaunchTemplate.SpotOptionsProperty spotOptions) Sets the value ofCfnLaunchTemplate.InstanceMarketOptionsProperty.getSpotOptions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
marketType
@Stability(Stable) public CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder marketType(String marketType) Sets the value ofCfnLaunchTemplate.InstanceMarketOptionsProperty.getMarketType()
- Parameters:
marketType
- The market type.- Returns:
this
-
spotOptions
@Stability(Stable) public CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder spotOptions(IResolvable spotOptions) Sets the value ofCfnLaunchTemplate.InstanceMarketOptionsProperty.getSpotOptions()
- Parameters:
spotOptions
- The options for Spot Instances.- Returns:
this
-
spotOptions
@Stability(Stable) public CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder spotOptions(CfnLaunchTemplate.SpotOptionsProperty spotOptions) Sets the value ofCfnLaunchTemplate.InstanceMarketOptionsProperty.getSpotOptions()
- Parameters:
spotOptions
- The options for Spot Instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLaunchTemplate.InstanceMarketOptionsProperty>
- Returns:
- a new instance of
CfnLaunchTemplate.InstanceMarketOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-