类 Reservation
- java.lang.Object
-
- com.baidubce.services.bcc.model.Reservation
-
public class Reservation extends Object
The reservation model to specify the detail to buy.
-
-
构造器概要
构造器 构造器 说明 Reservation()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetReservationLength()StringgetReservationTimeUnit()voidsetReservationLength(int reservationLength)voidsetReservationTimeUnit(String reservationTimeUnit)StringtoString()ReservationwithReservationLength(int reservationLength)Configure reservationLength for the model.ReservationwithReservationTimeUnit(String reservationTimeUnit)Configure reservationTimeUnit for the model.
-
-
-
方法详细资料
-
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.
-
-