Interface CapacityReservationRequest.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CapacityReservationRequest.Builder,CapacityReservationRequest>,SdkBuilder<CapacityReservationRequest.Builder,CapacityReservationRequest>,SdkPojo
- Enclosing class:
- CapacityReservationRequest
@Mutable @NotThreadSafe public static interface CapacityReservationRequest.Builder extends SdkPojo, CopyableBuilder<CapacityReservationRequest.Builder,CapacityReservationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CapacityReservationRequest.BuilderreservationGroupArn(String reservationGroupArn)The ARN of the Capacity Reservation resource group in which to run the instance.CapacityReservationRequest.BuilderreservationPreference(String reservationPreference)The preference on when capacity reservations should be used.CapacityReservationRequest.BuilderreservationPreference(CapacityReservationPreference reservationPreference)The preference on when capacity reservations should be used.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
reservationGroupArn
CapacityReservationRequest.Builder reservationGroupArn(String reservationGroupArn)
The ARN of the Capacity Reservation resource group in which to run the instance.
- Parameters:
reservationGroupArn- The ARN of the Capacity Reservation resource group in which to run the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservationPreference
CapacityReservationRequest.Builder reservationPreference(String reservationPreference)
The preference on when capacity reservations should be used.
Valid values are:
-
RESERVATIONS_ONLY- Exclusively launch instances into capacity reservations that match the instance requirements configured for the capacity provider. If none exist, instances will fail to provision. -
RESERVATIONS_FIRST- Prefer to launch instances into a capacity reservation if any exist that match the instance requirements configured for the capacity provider. If none exist, fall back to launching instances On-Demand. -
RESERVATIONS_EXCLUDED- Avoid using capacity reservations and launch exclusively On-Demand.
- Parameters:
reservationPreference- The preference on when capacity reservations should be used.Valid values are:
-
RESERVATIONS_ONLY- Exclusively launch instances into capacity reservations that match the instance requirements configured for the capacity provider. If none exist, instances will fail to provision. -
RESERVATIONS_FIRST- Prefer to launch instances into a capacity reservation if any exist that match the instance requirements configured for the capacity provider. If none exist, fall back to launching instances On-Demand. -
RESERVATIONS_EXCLUDED- Avoid using capacity reservations and launch exclusively On-Demand.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CapacityReservationPreference,CapacityReservationPreference
-
-
reservationPreference
CapacityReservationRequest.Builder reservationPreference(CapacityReservationPreference reservationPreference)
The preference on when capacity reservations should be used.
Valid values are:
-
RESERVATIONS_ONLY- Exclusively launch instances into capacity reservations that match the instance requirements configured for the capacity provider. If none exist, instances will fail to provision. -
RESERVATIONS_FIRST- Prefer to launch instances into a capacity reservation if any exist that match the instance requirements configured for the capacity provider. If none exist, fall back to launching instances On-Demand. -
RESERVATIONS_EXCLUDED- Avoid using capacity reservations and launch exclusively On-Demand.
- Parameters:
reservationPreference- The preference on when capacity reservations should be used.Valid values are:
-
RESERVATIONS_ONLY- Exclusively launch instances into capacity reservations that match the instance requirements configured for the capacity provider. If none exist, instances will fail to provision. -
RESERVATIONS_FIRST- Prefer to launch instances into a capacity reservation if any exist that match the instance requirements configured for the capacity provider. If none exist, fall back to launching instances On-Demand. -
RESERVATIONS_EXCLUDED- Avoid using capacity reservations and launch exclusively On-Demand.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CapacityReservationPreference,CapacityReservationPreference
-
-
-