Interface TranslatetoMessageContext

All Superinterfaces:
MessageContext, StringMessageContext

public interface TranslatetoMessageContext extends StringMessageContext
A translation request. Builds on StringMessageContext.
  • Method Details

    • builder

      static net.flectone.pulse.module.command.translateto.model.TranslatetoMessageContextImpl.TranslatetoMessageContextImplBuilder builder()
      Starts building this context.
      Returns:
      a new builder
    • targetLanguage

      @NonNull String targetLanguage()
      The language to translate into.
      Returns:
      the language to translate into
    • messageToTranslate

      @NonNull String messageToTranslate()
      The text to translate.
      Returns:
      the text to translate
    • withTargetLanguage

      TranslatetoMessageContext withTargetLanguage(@NonNull String targetLanguage)
      Returns a copy carrying a different value.
      Parameters:
      targetLanguage - the language to translate into
      Returns:
      the copy
    • withMessageToTranslate

      TranslatetoMessageContext withMessageToTranslate(@NonNull String messageToTranslate)
      Returns a copy carrying a different value.
      Parameters:
      messageToTranslate - the text to translate
      Returns:
      the copy