Class LaunchTemplateInstanceMarketOptions.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.launch_template.LaunchTemplateInstanceMarketOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LaunchTemplateInstanceMarketOptions>
- Enclosing interface:
- LaunchTemplateInstanceMarketOptions
@Stability(Stable) public static final class LaunchTemplateInstanceMarketOptions.Builder extends Object implements software.amazon.jsii.Builder<LaunchTemplateInstanceMarketOptions>
A builder forLaunchTemplateInstanceMarketOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LaunchTemplateInstanceMarketOptionsbuild()Builds the configured instance.LaunchTemplateInstanceMarketOptions.BuildermarketType(String marketType)Sets the value ofLaunchTemplateInstanceMarketOptions.getMarketType()LaunchTemplateInstanceMarketOptions.BuilderspotOptions(LaunchTemplateInstanceMarketOptionsSpotOptions spotOptions)Sets the value ofLaunchTemplateInstanceMarketOptions.getSpotOptions()
-
-
-
Method Detail
-
marketType
@Stability(Stable) public LaunchTemplateInstanceMarketOptions.Builder marketType(String marketType)
Sets the value ofLaunchTemplateInstanceMarketOptions.getMarketType()- Parameters:
marketType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#market_type LaunchTemplate#market_type}.- Returns:
this
-
spotOptions
@Stability(Stable) public LaunchTemplateInstanceMarketOptions.Builder spotOptions(LaunchTemplateInstanceMarketOptionsSpotOptions spotOptions)
Sets the value ofLaunchTemplateInstanceMarketOptions.getSpotOptions()- Parameters:
spotOptions- spot_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#spot_options LaunchTemplate#spot_options}- Returns:
this
-
build
@Stability(Stable) public LaunchTemplateInstanceMarketOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LaunchTemplateInstanceMarketOptions>- Returns:
- a new instance of
LaunchTemplateInstanceMarketOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-