inline Resource::ReservationInfo createReservationInfo( const std::string& principal) { Resource::ReservationInfo info; info.set_principal(principal); return info; }
inline Resource::ReservationInfo createReservationInfo( const Option<std::string>& principal = None()) { Resource::ReservationInfo info; if (principal.isSome()) { info.set_principal(principal.get()); } return info; }