Interface QuestionAnswerMessageContext

All Superinterfaces:
MessageContext, StringMessageContext

public interface QuestionAnswerMessageContext extends StringMessageContext
An automatic reply to a recognized question. Builds on StringMessageContext.
  • Method Details

    • builder

      static net.flectone.pulse.module.message.format.questionanswer.model.QuestionAnswerMessageContextImpl.QuestionAnswerMessageContextImplBuilder builder()
      Starts building this context.
      Returns:
      a new builder
    • question

      @NonNull String question()
      The question that was matched.
      Returns:
      the question that was matched
    • withQuestion

      QuestionAnswerMessageContext withQuestion(@NonNull String question)
      Returns a copy carrying a different value.
      Parameters:
      question - the question that was matched
      Returns:
      the copy