Package com.oracle.bmc.ailanguage.model
Class BatchLanguageTranslationDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.ailanguage.model.BatchLanguageTranslationDetails.Builder
-
- Enclosing class:
- BatchLanguageTranslationDetails
public static class BatchLanguageTranslationDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchLanguageTranslationDetails.Builder
alias(String alias)
Unique name to identify an endpoint to be used for inferencingBatchLanguageTranslationDetails
build()
BatchLanguageTranslationDetails.Builder
compartmentId(String compartmentId)
The OCID of the compartment that calls the API, inference will be served from pre trained modelBatchLanguageTranslationDetails.Builder
copy(BatchLanguageTranslationDetails model)
BatchLanguageTranslationDetails.Builder
documents(List<TextDocument> documents)
List of documents for translation.BatchLanguageTranslationDetails.Builder
endpointId(String endpointId)
The endpoint that has to be used for inferencing.BatchLanguageTranslationDetails.Builder
noTranslate(List<String> noTranslate)
List of words not to be translatedBatchLanguageTranslationDetails.Builder
targetLanguageCode(String targetLanguageCode)
Language code supported Arabic - ar Brazilian Portuguese - pt-BR Canadian French - fr-CA Croatian - hr Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr German - de Greek - el Hebrew - he Hungarian - hu Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl Portuguese - pt Romanian - ro Russian - ru Simplified Chinese
- zh-CN Slovak - sk Slovenian - sl Spanish - es Swedish - sv Thai - th Traditional Chinese - zh-TW Turkish - tr Vietnamese - vi
-
-
-
Method Detail
-
alias
public BatchLanguageTranslationDetails.Builder alias(String alias)
Unique name to identify an endpoint to be used for inferencing- Parameters:
alias
- the value to set- Returns:
- this builder
-
endpointId
public BatchLanguageTranslationDetails.Builder endpointId(String endpointId)
The endpoint that has to be used for inferencing.- Parameters:
endpointId
- the value to set- Returns:
- this builder
-
noTranslate
public BatchLanguageTranslationDetails.Builder noTranslate(List<String> noTranslate)
List of words not to be translated- Parameters:
noTranslate
- the value to set- Returns:
- this builder
-
compartmentId
public BatchLanguageTranslationDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that calls the API, inference will be served from pre trained model- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
targetLanguageCode
public BatchLanguageTranslationDetails.Builder targetLanguageCode(String targetLanguageCode)
Language code supported Arabic - ar Brazilian Portuguese - pt-BR Canadian French - fr-CA Croatian - hr Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr German - de Greek - el Hebrew - he Hungarian - hu Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl Portuguese - pt Romanian - ro Russian - ru Simplified Chinese
- zh-CN Slovak - sk Slovenian - sl Spanish - es Swedish - sv Thai - th Traditional Chinese - zh-TW Turkish - tr Vietnamese - vi
- Parameters:
targetLanguageCode
- the value to set- Returns:
- this builder
-
documents
public BatchLanguageTranslationDetails.Builder documents(List<TextDocument> documents)
List of documents for translation.- Parameters:
documents
- the value to set- Returns:
- this builder
-
build
public BatchLanguageTranslationDetails build()
-
copy
public BatchLanguageTranslationDetails.Builder copy(BatchLanguageTranslationDetails model)
-
-