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