Interface TranslateTextResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<TranslateTextResponse.Builder,TranslateTextResponse>,SdkBuilder<TranslateTextResponse.Builder,TranslateTextResponse>,SdkPojo,SdkResponse.Builder,TranslateResponse.Builder
- Enclosing class:
- TranslateTextResponse
public static interface TranslateTextResponse.Builder extends TranslateResponse.Builder, SdkPojo, CopyableBuilder<TranslateTextResponse.Builder,TranslateTextResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TranslateTextResponse.BuilderappliedSettings(Consumer<TranslationSettings.Builder> appliedSettings)Optional settings that modify the translation output.TranslateTextResponse.BuilderappliedSettings(TranslationSettings appliedSettings)Optional settings that modify the translation output.TranslateTextResponse.BuilderappliedTerminologies(Collection<AppliedTerminology> appliedTerminologies)The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.TranslateTextResponse.BuilderappliedTerminologies(Consumer<AppliedTerminology.Builder>... appliedTerminologies)The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.TranslateTextResponse.BuilderappliedTerminologies(AppliedTerminology... appliedTerminologies)The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.TranslateTextResponse.BuildersourceLanguageCode(String sourceLanguageCode)The language code for the language of the source text.TranslateTextResponse.BuildertargetLanguageCode(String targetLanguageCode)The language code for the language of the target text.TranslateTextResponse.BuildertranslatedText(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 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.
-
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.Builderavoiding the need to create one manually viaAppliedTerminology.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#appliedTerminologies(List.) - 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:
#appliedTerminologies(java.util.Collection)
-
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.
-
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.Builderavoiding the need to create one manually viaTranslationSettings.builder().When the
Consumercompletes,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:
appliedSettings(TranslationSettings)
-
-