com.baidubce.services.bcc.model
Class Reservation

java.lang.Object
  extended by com.baidubce.services.bcc.model.Reservation

public class Reservation
extends Object

The reservation model to specify the detail to buy.


Constructor Summary
Reservation()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Reservation

public Reservation()
Method Detail

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.