public static interface TranslateTextResponse.Builder extends TranslateResponse.Builder, SdkPojo, CopyableBuilder<TranslateTextResponse.Builder,TranslateTextResponse>
| Modifier and Type | Method and Description |
|---|---|
default TranslateTextResponse.Builder |
appliedSettings(Consumer<TranslationSettings.Builder> appliedSettings)
Settings that configure the translation output.
|
TranslateTextResponse.Builder |
appliedSettings(TranslationSettings appliedSettings)
Settings that configure the translation output.
|
TranslateTextResponse.Builder |
appliedTerminologies(AppliedTerminology... appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text
response.
|
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.
|
TranslateTextResponse.Builder |
appliedTerminologies(Consumer<AppliedTerminology.Builder>... appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text
response.
|
TranslateTextResponse.Builder |
sourceLanguageCode(String sourceLanguageCode)
The language code for the language of the source text.
|
TranslateTextResponse.Builder |
targetLanguageCode(String targetLanguageCode)
The language code for the language of the target text.
|
TranslateTextResponse.Builder |
translatedText(String translatedText)
The translated text.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildTranslateTextResponse.Builder translatedText(String translatedText)
The translated text.
translatedText - The translated text.TranslateTextResponse.Builder sourceLanguageCode(String sourceLanguageCode)
The language code for the language of the source text.
sourceLanguageCode - The language code for the language of the source text.TranslateTextResponse.Builder targetLanguageCode(String targetLanguageCode)
The language code for the language of the target text.
targetLanguageCode - The language code for the language of the target text.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.
appliedTerminologies - The names of the custom terminologies applied to the input text by Amazon Translate for the translated
text response.TranslateTextResponse.Builder appliedTerminologies(AppliedTerminology... appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
appliedTerminologies - The names of the custom terminologies applied to the input text by Amazon Translate for the translated
text response.TranslateTextResponse.Builder appliedTerminologies(Consumer<AppliedTerminology.Builder>... appliedTerminologies)
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
This is a convenience method that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #appliedTerminologies(List) .appliedTerminologies - a consumer that will call methods on List.Builder #appliedTerminologies(List) TranslateTextResponse.Builder appliedSettings(TranslationSettings appliedSettings)
Settings that configure the translation output.
appliedSettings - Settings that configure the translation output.default TranslateTextResponse.Builder appliedSettings(Consumer<TranslationSettings.Builder> appliedSettings)
Settings that configure the translation output.
This is a convenience method that creates an instance of theTranslationSettings.Builder avoiding the
need to create one manually via TranslationSettings.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to appliedSettings(TranslationSettings).appliedSettings - a consumer that will call methods on TranslationSettings.BuilderappliedSettings(TranslationSettings)Copyright © 2022. All rights reserved.