类 Reservation


  • public class Reservation
    extends Object
    The reservation model to specify the detail to buy.
    • 构造器详细资料

      • Reservation

        public Reservation()
    • 方法详细资料

      • getReservationLength

        public int getReservationLength()
      • setReservationLength

        public void setReservationLength​(int reservationLength)
      • withReservationLength

        public Reservation withReservationLength​(int reservationLength)
        Configure reservationLength for the model.
        参数:
        reservationLength - The duration to buy in specified time unit, available values are [1,2,3,4,5,6,7,8,9,12,24,36] now.
        返回:
        Reservation with specified reservationLength.
      • getReservationTimeUnit

        public String getReservationTimeUnit()
      • setReservationTimeUnit

        public void setReservationTimeUnit​(String reservationTimeUnit)
      • withReservationTimeUnit

        public Reservation withReservationTimeUnit​(String reservationTimeUnit)
        Configure reservationTimeUnit for the model.
        参数:
        reservationTimeUnit - The time unit to specify the duration ,only "Month" can be used now.
        返回:
        Reservation with specified reservationTimeUnit.