Interface QuestionAnswerMessageContext
- All Superinterfaces:
MessageContext, StringMessageContext
An automatic reply to a recognized question.
Builds on
StringMessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.module.message.format.questionanswer.model.QuestionAnswerMessageContextImpl.QuestionAnswerMessageContextImplBuilderbuilder()Starts building this context.@NonNull Stringquestion()The question that was matched.withQuestion(@NonNull String question) Returns a copy carrying a different value.Methods inherited from interface MessageContext
addFlag, addFlags, addTagResolver, addTagResolvers, base, createCacheKey, flags, isFlag, message, receiver, sender, tagResolver, toBuilder, uuid, withBase, withFlags, withMessage, withReceiver, withSender, withTagResolver, withUuidMethods inherited from interface StringMessageContext
string, withString
-
Method Details
-
builder
static net.flectone.pulse.module.message.format.questionanswer.model.QuestionAnswerMessageContextImpl.QuestionAnswerMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
question
-
withQuestion
Returns a copy carrying a different value.- Parameters:
question- the question that was matched- Returns:
- the copy
-