Interface TranslateTextResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<TranslateTextResponse.Builder,
,TranslateTextResponse> SdkBuilder<TranslateTextResponse.Builder,
,TranslateTextResponse> SdkPojo
,SdkResponse.Builder
,TranslateResponse.Builder
- Enclosing class:
TranslateTextResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault TranslateTextResponse.Builder
appliedSettings
(Consumer<TranslationSettings.Builder> appliedSettings) Optional settings that modify the translation output.appliedSettings
(TranslationSettings appliedSettings) Optional settings that modify the translation output.appliedTerminologies
(Collection<AppliedTerminology> appliedTerminologies) The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.appliedTerminologies
(Consumer<AppliedTerminology.Builder>... appliedTerminologies) The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.appliedTerminologies
(AppliedTerminology... appliedTerminologies) The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.sourceLanguageCode
(String sourceLanguageCode) The language code for the language of the source text.targetLanguageCode
(String targetLanguageCode) The language code for the language of the target text.translatedText
(String translatedText) The translated text.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.translate.model.TranslateResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
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
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
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
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(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 theAppliedTerminology.Builder
avoiding the need to create one manually viaAppliedTerminology.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toappliedTerminologies(List<AppliedTerminology>)
.- Parameters:
appliedTerminologies
- a consumer that will call methods onAppliedTerminology.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
appliedSettings
default TranslateTextResponse.Builder appliedSettings(Consumer<TranslationSettings.Builder> appliedSettings) Optional settings that modify the translation output.
This is a convenience method that creates an instance of theTranslationSettings.Builder
avoiding the need to create one manually viaTranslationSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toappliedSettings(TranslationSettings)
.- Parameters:
appliedSettings
- a consumer that will call methods onTranslationSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-