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 withEndDate(Date endDate) {
   request.setEndDate(endDate);
   return this;
 }