Class LaunchTemplateCapacityReservationSpecification.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.launch_template.LaunchTemplateCapacityReservationSpecification.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LaunchTemplateCapacityReservationSpecification>
- Enclosing interface:
- LaunchTemplateCapacityReservationSpecification
@Stability(Stable) public static final class LaunchTemplateCapacityReservationSpecification.Builder extends Object implements software.amazon.jsii.Builder<LaunchTemplateCapacityReservationSpecification>
A builder forLaunchTemplateCapacityReservationSpecification
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LaunchTemplateCapacityReservationSpecificationbuild()Builds the configured instance.LaunchTemplateCapacityReservationSpecification.BuildercapacityReservationPreference(String capacityReservationPreference)LaunchTemplateCapacityReservationSpecification.BuildercapacityReservationTarget(LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget)
-
-
-
Method Detail
-
capacityReservationPreference
@Stability(Stable) public LaunchTemplateCapacityReservationSpecification.Builder capacityReservationPreference(String capacityReservationPreference)
- Parameters:
capacityReservationPreference- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#capacity_reservation_preference LaunchTemplate#capacity_reservation_preference}.- Returns:
this
-
capacityReservationTarget
@Stability(Stable) public LaunchTemplateCapacityReservationSpecification.Builder capacityReservationTarget(LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget)
- Parameters:
capacityReservationTarget- capacity_reservation_target block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#capacity_reservation_target LaunchTemplate#capacity_reservation_target}- Returns:
this
-
build
@Stability(Stable) public LaunchTemplateCapacityReservationSpecification build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LaunchTemplateCapacityReservationSpecification>- Returns:
- a new instance of
LaunchTemplateCapacityReservationSpecification - Throws:
NullPointerException- if any required attribute was not provided
-
-