Interface TranslateDocumentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<TranslateDocumentResponse.Builder,
,TranslateDocumentResponse> SdkBuilder<TranslateDocumentResponse.Builder,
,TranslateDocumentResponse> SdkPojo
,SdkResponse.Builder
,TranslateResponse.Builder
- Enclosing class:
TranslateDocumentResponse
-
Method Summary
Modifier and TypeMethodDescriptionappliedSettings
(Consumer<TranslationSettings.Builder> appliedSettings) Sets the value of the AppliedSettings property for this object.appliedSettings
(TranslationSettings appliedSettings) Sets the value of the AppliedSettings property for this object.appliedTerminologies
(Collection<AppliedTerminology> appliedTerminologies) The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.appliedTerminologies
(Consumer<AppliedTerminology.Builder>... appliedTerminologies) The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.appliedTerminologies
(AppliedTerminology... appliedTerminologies) The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.sourceLanguageCode
(String sourceLanguageCode) The language code of the source document.targetLanguageCode
(String targetLanguageCode) The language code of the translated document.translatedDocument
(Consumer<TranslatedDocument.Builder> translatedDocument) The document containing the translated content.translatedDocument
(TranslatedDocument translatedDocument) The document containing the translated content.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
-
translatedDocument
The document containing the translated content. The document format matches the source document format.
- Parameters:
translatedDocument
- The document containing the translated content. The document format matches the source document format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
translatedDocument
default TranslateDocumentResponse.Builder translatedDocument(Consumer<TranslatedDocument.Builder> translatedDocument) The document containing the translated content. The document format matches the source document format.
This is a convenience method that creates an instance of theTranslatedDocument.Builder
avoiding the need to create one manually viaTranslatedDocument.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totranslatedDocument(TranslatedDocument)
.- Parameters:
translatedDocument
- a consumer that will call methods onTranslatedDocument.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceLanguageCode
The language code of the source document.
- Parameters:
sourceLanguageCode
- The language code of the source document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetLanguageCode
The language code of the translated document.
- Parameters:
targetLanguageCode
- The language code of the translated document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appliedTerminologies
TranslateDocumentResponse.Builder appliedTerminologies(Collection<AppliedTerminology> appliedTerminologies) The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
- Parameters:
appliedTerminologies
- The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.- 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 to produce the translated text document.
- Parameters:
appliedTerminologies
- The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appliedTerminologies
TranslateDocumentResponse.Builder appliedTerminologies(Consumer<AppliedTerminology.Builder>... appliedTerminologies) The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
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
Sets the value of the AppliedSettings property for this object.- Parameters:
appliedSettings
- The new value for the AppliedSettings property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
appliedSettings
default TranslateDocumentResponse.Builder appliedSettings(Consumer<TranslationSettings.Builder> appliedSettings) Sets the value of the AppliedSettings property for this object. 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:
-