public Builder(ISchedule schedule) { request.setToken(schedule.getToken()); request.setName(schedule.getName()); request.setTriggerType(schedule.getTriggerType()); request.setTriggerConfiguration(schedule.getTriggerConfiguration()); request.setStartDate(schedule.getStartDate()); request.setEndDate(schedule.getEndDate()); request.setMetadata(schedule.getMetadata()); }
public Builder(String token, String name) { request.setToken(token); request.setName(name); }