Class InstanceInstanceMarketOptionsSpotOptions.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.instance.InstanceInstanceMarketOptionsSpotOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceInstanceMarketOptionsSpotOptions>
- Enclosing interface:
- InstanceInstanceMarketOptionsSpotOptions
@Stability(Stable) public static final class InstanceInstanceMarketOptionsSpotOptions.Builder extends Object implements software.amazon.jsii.Builder<InstanceInstanceMarketOptionsSpotOptions>
A builder forInstanceInstanceMarketOptionsSpotOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceInstanceMarketOptionsSpotOptionsbuild()Builds the configured instance.InstanceInstanceMarketOptionsSpotOptions.BuilderinstanceInterruptionBehavior(String instanceInterruptionBehavior)InstanceInstanceMarketOptionsSpotOptions.BuildermaxPrice(String maxPrice)Sets the value ofInstanceInstanceMarketOptionsSpotOptions.getMaxPrice()InstanceInstanceMarketOptionsSpotOptions.BuilderspotInstanceType(String spotInstanceType)Sets the value ofInstanceInstanceMarketOptionsSpotOptions.getSpotInstanceType()InstanceInstanceMarketOptionsSpotOptions.BuildervalidUntil(String validUntil)Sets the value ofInstanceInstanceMarketOptionsSpotOptions.getValidUntil()
-
-
-
Method Detail
-
instanceInterruptionBehavior
@Stability(Stable) public InstanceInstanceMarketOptionsSpotOptions.Builder instanceInterruptionBehavior(String instanceInterruptionBehavior)
- Parameters:
instanceInterruptionBehavior- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#instance_interruption_behavior Instance#instance_interruption_behavior}.- Returns:
this
-
maxPrice
@Stability(Stable) public InstanceInstanceMarketOptionsSpotOptions.Builder maxPrice(String maxPrice)
Sets the value ofInstanceInstanceMarketOptionsSpotOptions.getMaxPrice()- Parameters:
maxPrice- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#max_price Instance#max_price}.- Returns:
this
-
spotInstanceType
@Stability(Stable) public InstanceInstanceMarketOptionsSpotOptions.Builder spotInstanceType(String spotInstanceType)
Sets the value ofInstanceInstanceMarketOptionsSpotOptions.getSpotInstanceType()- Parameters:
spotInstanceType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#spot_instance_type Instance#spot_instance_type}.- Returns:
this
-
validUntil
@Stability(Stable) public InstanceInstanceMarketOptionsSpotOptions.Builder validUntil(String validUntil)
Sets the value ofInstanceInstanceMarketOptionsSpotOptions.getValidUntil()- Parameters:
validUntil- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#valid_until Instance#valid_until}.- Returns:
this
-
build
@Stability(Stable) public InstanceInstanceMarketOptionsSpotOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<InstanceInstanceMarketOptionsSpotOptions>- Returns:
- a new instance of
InstanceInstanceMarketOptionsSpotOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-