public static final class CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder
extends java.lang.Object
CfnLaunchTemplate.InstanceMarketOptionsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnLaunchTemplate.InstanceMarketOptionsProperty |
build()
Builds the configured instance.
|
CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder |
marketType(java.lang.String marketType)
Sets the value of
CfnLaunchTemplate.InstanceMarketOptionsProperty.getMarketType() |
CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder |
spotOptions(CfnLaunchTemplate.SpotOptionsProperty spotOptions)
Sets the value of
CfnLaunchTemplate.InstanceMarketOptionsProperty.getSpotOptions() |
CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder |
spotOptions(IResolvable spotOptions)
Sets the value of
CfnLaunchTemplate.InstanceMarketOptionsProperty.getSpotOptions() |
public CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder marketType(java.lang.String marketType)
CfnLaunchTemplate.InstanceMarketOptionsProperty.getMarketType()
marketType
- The market type.this
public CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder spotOptions(IResolvable spotOptions)
CfnLaunchTemplate.InstanceMarketOptionsProperty.getSpotOptions()
spotOptions
- The options for Spot Instances.this
public CfnLaunchTemplate.InstanceMarketOptionsProperty.Builder spotOptions(CfnLaunchTemplate.SpotOptionsProperty spotOptions)
CfnLaunchTemplate.InstanceMarketOptionsProperty.getSpotOptions()
spotOptions
- The options for Spot Instances.this
public CfnLaunchTemplate.InstanceMarketOptionsProperty build()
CfnLaunchTemplate.InstanceMarketOptionsProperty
java.lang.NullPointerException
- if any required attribute was not provided