public static final class CfnLaunchTemplate.CapacityReservationSpecificationProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnLaunchTemplate.CapacityReservationSpecificationProperty |
build()
Builds the configured instance.
|
CfnLaunchTemplate.CapacityReservationSpecificationProperty.Builder |
capacityReservationPreference(java.lang.String capacityReservationPreference)
|
CfnLaunchTemplate.CapacityReservationSpecificationProperty.Builder |
capacityReservationTarget(CfnLaunchTemplate.CapacityReservationTargetProperty capacityReservationTarget)
|
CfnLaunchTemplate.CapacityReservationSpecificationProperty.Builder |
capacityReservationTarget(IResolvable capacityReservationTarget)
|
public CfnLaunchTemplate.CapacityReservationSpecificationProperty.Builder capacityReservationPreference(java.lang.String capacityReservationPreference)
CfnLaunchTemplate.CapacityReservationSpecificationProperty.getCapacityReservationPreference()
capacityReservationPreference
- Indicates the instance's Capacity Reservation preferences. Possible preferences include:.
open
- The instance can run in any open
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.this
public CfnLaunchTemplate.CapacityReservationSpecificationProperty.Builder capacityReservationTarget(IResolvable capacityReservationTarget)
CfnLaunchTemplate.CapacityReservationSpecificationProperty.getCapacityReservationTarget()
capacityReservationTarget
- Information about the target Capacity Reservation or Capacity Reservation group.this
public CfnLaunchTemplate.CapacityReservationSpecificationProperty.Builder capacityReservationTarget(CfnLaunchTemplate.CapacityReservationTargetProperty capacityReservationTarget)
CfnLaunchTemplate.CapacityReservationSpecificationProperty.getCapacityReservationTarget()
capacityReservationTarget
- Information about the target Capacity Reservation or Capacity Reservation group.this
public CfnLaunchTemplate.CapacityReservationSpecificationProperty build()
CfnLaunchTemplate.CapacityReservationSpecificationProperty
java.lang.NullPointerException
- if any required attribute was not provided