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