Produce the <code>Trigger</code>.

@return a Trigger that meets the specifications of the builder.
176647
@Nonnull
  public T build ()
  {
    if (m_aScheduleBuilder == null)
      m_aScheduleBuilder = SimpleScheduleBuilder.simpleSchedule ();
    final IMutableTrigger trig = m_aScheduleBuilder.build ();
    trig.setCalendarName (m_sCalendarName);
    trig.setDescription (m_sDescription);
    trig.setStartTime (m_aStartTime);
    trig.setEndTime (m_aEndTime);
    if (m_aKey == null)
      m_aKey = new TriggerKey (Key.createUniqueName (null), null);
    trig.setKey (m_aKey);
    if (m_aJobKey != null)
      trig.setJobKey (m_aJobKey);
    trig.setPriority (m_nPriority);

    if (!m_aJobDataMap.isEmpty ())
      trig.setJobDataMap (m_aJobDataMap);
    return GenericReflection.uncheckedCast (trig);
  }
556293
public Builder copyBuilder() {
        return GetJobArgs.builder().noHang(noHang).timeout(timeout).withCounters(withCounters);
    }
1329242
public static <R, C, V> Builder<R, C, V> builder() {
    return new Builder<R, C, V>();
  }
210731
public static TriggerContext on(Collection<Trigger> triggers) {
        List<Trigger> addedTriggers = new ArrayList<Trigger>();
        if (triggers != null) {
            addedTriggers.addAll(triggers);
        }
        return new TriggerContext(addedTriggers);
    }
29321
@Override
    public OperableTrigger retrieveTrigger(final TriggerKey triggerKey) throws JobPersistenceException {
        return doWithLock(new LockCallback<OperableTrigger>() {
            @Override
            public OperableTrigger doWithLock(JedisCommands jedis) throws JobPersistenceException {
                return storage.retrieveTrigger(triggerKey, jedis);
            }
        }, "Could not retrieve trigger.");
    }
1349934
@Override
  public DailyTimeIntervalTrigger build ()
  {
    final DailyTimeIntervalTrigger st = new DailyTimeIntervalTrigger ();
    st.setRepeatInterval (m_nInterval);
    st.setRepeatIntervalUnit (m_eIntervalUnit);
    st.setMisfireInstruction (m_nMisfireInstruction);
    st.setRepeatCount (m_nRepeatCount);

    if (m_aDaysOfWeek != null)
      st.setDaysOfWeek (m_aDaysOfWeek);
    else
      st.setDaysOfWeek (ALL_DAYS_OF_THE_WEEK);

    if (m_aStartTimeOfDay != null)
      st.setStartTimeOfDay (m_aStartTimeOfDay);
    else
      st.setStartTimeOfDay (TimeOfDay.hourAndMinuteOfDay (0, 0));

    if (m_aEndTimeOfDay != null)
      st.setEndTimeOfDay (m_aEndTimeOfDay);
    else
      st.setEndTimeOfDay (TimeOfDay.hourMinuteAndSecondOfDay (23, 59, 59));

    return st;
  }
297967
public SqlBuilder builder() {
        List<IRuleParser> sqlRuleParsers = new ArrayList<>();
        for (IRuleParser parser : ruleParsers) {
            if (parser instanceof AbstractSqlRuleParser) {
                sqlRuleParsers.add(parser);
            }
        }
        return new SqlBuilder(groupParser, sqlRuleParsers, filters);
    }
959126
@ManyToOne(targetEntity = org.openprovenance.prov.sql.QualifiedName.class, cascade = {
        CascadeType.ALL
    })
    @JoinColumn(name = "TRIGGER_")
    public org.openprovenance.prov.model.QualifiedName getTrigger() {
        return trigger;
    }
502300
public Trigger<? super S> getDeleteTrigger() {
        ForDelete<S> forDelete = mForDelete;
        return forDelete.isEmpty() ? null : forDelete;
    }
914437
public ScheduledFuture<?> schedule() {
        synchronized (this.triggerContextMonitor) {
            this.scheduledExecutionTime = this.trigger.nextExecutionTime(this.triggerContext);
            if (this.scheduledExecutionTime == null) {
                return null;
            }
            long initialDelay = this.scheduledExecutionTime.getTime() - System.currentTimeMillis();
            this.currentFuture = this.executor.schedule(this, initialDelay, TimeUnit.MILLISECONDS);
            return this;
        }
    }
1243099
@Nonnull
	public static LAction actionFrom(Consumer<LActionBuilder> buildingFunction) {
		LActionBuilder builder = new LActionBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
1358232
public DataProviderContext on(final Trigger... triggers) {
        if (triggers != null) {
            Collections.addAll(registeredTriggers, triggers);
        }
        return this;
    }
805547
public Trigger<? super S> getInsertTrigger() {
        ForInsert<S> forInsert = mForInsert;
        return forInsert.isEmpty() ? null : forInsert;
    }
1131250
public String build() {

        final StringBuilder description = new StringBuilder();

        // append occurrences
        description.append(IssueDescriptionUtils.getOccurrencesTableHeader()).append('\n');
        for (final ErrorOccurrence error : occurrences) {
            description.append(IssueDescriptionUtils.getOccurrencesTableLine(error));
            description.append('\n');
        }

        // append stacktrace
        description.append("\n\n");
        description.append("*Stacktrace*").append('\n');
        description.append("<pre class=\"javastacktrace\">");
        description.append(stacktrace.trim()).append("</pre>");

        // append version
        description.append('\n').append(IssueDescriptionUtils.DESCRIPTION_VERSION_TAG);

        return description.toString();
    }
1128696
final public ThenExpressionBuilder<T> ifExp() {
    return new ThenExpressionBuilder<T>(new ExpressionHandler<ThenBuilder<T>>() {
      public ThenBuilder<T> handleExpression(final Expression e) {
        return new ThenBuilder<T>(e, new IfStatementHandler<T>() {
          public T handleStatement(IfStatement ifStatement) {
            return statementHandler().handleStatement(ifStatement);
          }
        }, builder);
      }
    });
  }
296091
public NotificationCompat.Builder getStatusBarNotificationBuilder() {
        if (mBuilder == null) {
            mBuilder = new NotificationCompat.Builder(mContext);
        }
        return mBuilder;
    }
1372350
final public ExecExpressionBuilder<T> exec() {
    final int sourceLineNumber = builder.getSourceLineNumber();
    return new ExecExpressionBuilder<T>(new ExpressionHandler<T>() {
      public T handleExpression(Expression e) {
        return statementHandler().handleStatement(new ExpressionStatement(sourceLineNumber, e));
      }
    });
  }