public class Reservation extends Object
| Constructor and Description |
|---|
Reservation() |
| Modifier and Type | Method and Description |
|---|---|
int |
getReservationLength() |
String |
getReservationTimeUnit() |
void |
setReservationLength(int reservationLength) |
void |
setReservationTimeUnit(String reservationTimeUnit) |
String |
toString() |
Reservation |
withReservationLength(int reservationLength)
Configure reservationLength for the model.
|
Reservation |
withReservationTimeUnit(String reservationTimeUnit)
Configure reservationTimeUnit for the model.
|
public int getReservationLength()
public void setReservationLength(int reservationLength)
public Reservation withReservationLength(int reservationLength)
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.public String getReservationTimeUnit()
public void setReservationTimeUnit(String reservationTimeUnit)
public Reservation withReservationTimeUnit(String reservationTimeUnit)
reservationTimeUnit - The time unit to specify the duration ,only "Month" can be used now.Copyright © 2023. All rights reserved.