Interface TranslateTextResponse.Builder

    • Method Detail

      • translatedText

        TranslateTextResponse.Builder translatedText​(String translatedText)

        The translated text.

        Parameters:
        translatedText - The translated text.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceLanguageCode

        TranslateTextResponse.Builder sourceLanguageCode​(String sourceLanguageCode)

        The language code for the language of the source text.

        Parameters:
        sourceLanguageCode - The language code for the language of the source text.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetLanguageCode

        TranslateTextResponse.Builder targetLanguageCode​(String targetLanguageCode)

        The language code for the language of the target text.

        Parameters:
        targetLanguageCode - The language code for the language of the target text.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • appliedTerminologies

        TranslateTextResponse.Builder appliedTerminologies​(Collection<AppliedTerminology> appliedTerminologies)

        The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.

        Parameters:
        appliedTerminologies - The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • appliedTerminologies

        TranslateTextResponse.Builder appliedTerminologies​(AppliedTerminology... appliedTerminologies)

        The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.

        Parameters:
        appliedTerminologies - The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • appliedSettings

        TranslateTextResponse.Builder appliedSettings​(TranslationSettings appliedSettings)

        Optional settings that modify the translation output.

        Parameters:
        appliedSettings - Optional settings that modify the translation output.
        Returns:
        Returns a reference to this object so that method calls can be chained together.