Interface CapacityReservationRequest.Builder

  • Method Details

    • reservationGroupArn

      CapacityReservationRequest.Builder reservationGroupArn(String reservationGroupArn)

      The Amazon Resource Name (ARN) of the capacity reservation group to target.

      Parameters:
      reservationGroupArn - The Amazon Resource Name (ARN) of the capacity reservation group to target.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reservationPreference

      CapacityReservationRequest.Builder reservationPreference(String reservationPreference)

      The capacity reservation preference. Valid values:

      • RESERVATIONS_ONLY — Use only capacity reservations.

      • RESERVATIONS_FIRST — Prefer capacity reservations but fall back to On-Demand if unavailable.

      • RESERVATIONS_EXCLUDED — Do not use capacity reservations.

      Parameters:
      reservationPreference - The capacity reservation preference. Valid values:

      • RESERVATIONS_ONLY — Use only capacity reservations.

      • RESERVATIONS_FIRST — Prefer capacity reservations but fall back to On-Demand if unavailable.

      • RESERVATIONS_EXCLUDED — Do not use capacity reservations.

      Returns:
      Returns a reference to this object so that method calls can be chained together.