Class Ec2FleetSpotOptions.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.ec2_fleet.Ec2FleetSpotOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Ec2FleetSpotOptions>
- Enclosing interface:
- Ec2FleetSpotOptions
@Stability(Stable) public static final class Ec2FleetSpotOptions.Builder extends Object implements software.amazon.jsii.Builder<Ec2FleetSpotOptions>
A builder forEc2FleetSpotOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ec2FleetSpotOptions.BuilderallocationStrategy(String allocationStrategy)Sets the value ofEc2FleetSpotOptions.getAllocationStrategy()Ec2FleetSpotOptionsbuild()Builds the configured instance.Ec2FleetSpotOptions.BuilderinstanceInterruptionBehavior(String instanceInterruptionBehavior)Sets the value ofEc2FleetSpotOptions.getInstanceInterruptionBehavior()Ec2FleetSpotOptions.BuilderinstancePoolsToUseCount(Number instancePoolsToUseCount)Sets the value ofEc2FleetSpotOptions.getInstancePoolsToUseCount()Ec2FleetSpotOptions.BuildermaintenanceStrategies(Ec2FleetSpotOptionsMaintenanceStrategies maintenanceStrategies)Sets the value ofEc2FleetSpotOptions.getMaintenanceStrategies()
-
-
-
Method Detail
-
allocationStrategy
@Stability(Stable) public Ec2FleetSpotOptions.Builder allocationStrategy(String allocationStrategy)
Sets the value ofEc2FleetSpotOptions.getAllocationStrategy()- Parameters:
allocationStrategy- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ec2_fleet#allocation_strategy Ec2Fleet#allocation_strategy}.- Returns:
this
-
instanceInterruptionBehavior
@Stability(Stable) public Ec2FleetSpotOptions.Builder instanceInterruptionBehavior(String instanceInterruptionBehavior)
Sets the value ofEc2FleetSpotOptions.getInstanceInterruptionBehavior()- Parameters:
instanceInterruptionBehavior- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ec2_fleet#instance_interruption_behavior Ec2Fleet#instance_interruption_behavior}.- Returns:
this
-
instancePoolsToUseCount
@Stability(Stable) public Ec2FleetSpotOptions.Builder instancePoolsToUseCount(Number instancePoolsToUseCount)
Sets the value ofEc2FleetSpotOptions.getInstancePoolsToUseCount()- Parameters:
instancePoolsToUseCount- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ec2_fleet#instance_pools_to_use_count Ec2Fleet#instance_pools_to_use_count}.- Returns:
this
-
maintenanceStrategies
@Stability(Stable) public Ec2FleetSpotOptions.Builder maintenanceStrategies(Ec2FleetSpotOptionsMaintenanceStrategies maintenanceStrategies)
Sets the value ofEc2FleetSpotOptions.getMaintenanceStrategies()- Parameters:
maintenanceStrategies- maintenance_strategies block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/ec2_fleet#maintenance_strategies Ec2Fleet#maintenance_strategies}- Returns:
this
-
build
@Stability(Stable) public Ec2FleetSpotOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Ec2FleetSpotOptions>- Returns:
- a new instance of
Ec2FleetSpotOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-