com.baidubce.services.bcc.model
Class 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
public Reservation()
getReservationLength
public int getReservationLength()
setReservationLength
public void setReservationLength(int reservationLength)
withReservationLength
public Reservation withReservationLength(int reservationLength)
- Configure reservationLength for the model.
- Parameters:
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.
- Returns:
- 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.
- Parameters:
reservationTimeUnit
- The time unit to specify the duration ,only "Month" can be used now.
- Returns:
- Reservation with specified reservationTimeUnit.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2018. All rights reserved.