Interface TranslateDocumentResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<TranslateDocumentResponse.Builder,TranslateDocumentResponse>,SdkBuilder<TranslateDocumentResponse.Builder,TranslateDocumentResponse>,SdkPojo,SdkResponse.Builder,TranslateResponse.Builder
- Enclosing class:
- TranslateDocumentResponse
public static interface TranslateDocumentResponse.Builder extends TranslateResponse.Builder, SdkPojo, CopyableBuilder<TranslateDocumentResponse.Builder,TranslateDocumentResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TranslateDocumentResponse.BuilderappliedSettings(Consumer<TranslationSettings.Builder> appliedSettings)Sets the value of the AppliedSettings property for this object.TranslateDocumentResponse.BuilderappliedSettings(TranslationSettings appliedSettings)Sets the value of the AppliedSettings property for this object.TranslateDocumentResponse.BuilderappliedTerminologies(Collection<AppliedTerminology> appliedTerminologies)The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.TranslateDocumentResponse.BuilderappliedTerminologies(Consumer<AppliedTerminology.Builder>... appliedTerminologies)The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.TranslateDocumentResponse.BuilderappliedTerminologies(AppliedTerminology... appliedTerminologies)The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.TranslateDocumentResponse.BuildersourceLanguageCode(String sourceLanguageCode)The language code of the source document.TranslateDocumentResponse.BuildertargetLanguageCode(String targetLanguageCode)The language code of the translated document.default TranslateDocumentResponse.BuildertranslatedDocument(Consumer<TranslatedDocument.Builder> translatedDocument)The document containing the translated content.TranslateDocumentResponse.BuildertranslatedDocument(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 Detail
-
translatedDocument
TranslateDocumentResponse.Builder translatedDocument(TranslatedDocument 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.Builderavoiding the need to create one manually viaTranslatedDocument.builder().When the
Consumercompletes,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:
translatedDocument(TranslatedDocument)
-
sourceLanguageCode
TranslateDocumentResponse.Builder sourceLanguageCode(String 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
TranslateDocumentResponse.Builder targetLanguageCode(String 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
TranslateDocumentResponse.Builder appliedTerminologies(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
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.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
TranslateDocumentResponse.Builder appliedSettings(TranslationSettings 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.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)
-
-