public static class TranslateOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(List<String> text)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
TranslateOptions.Builder |
addText(String text)
Adds an text to text.
|
TranslateOptions |
build()
Builds a TranslateOptions.
|
TranslateOptions.Builder |
modelId(String modelId)
Set the modelId.
|
TranslateOptions.Builder |
source(String source)
Set the source.
|
TranslateOptions.Builder |
target(String target)
Set the target.
|
TranslateOptions.Builder |
text(List<String> text)
Set the text.
|
public TranslateOptions build()
public TranslateOptions.Builder addText(String text)
text
- the new textpublic TranslateOptions.Builder text(List<String> text)
text
- the textpublic TranslateOptions.Builder modelId(String modelId)
modelId
- the modelIdpublic TranslateOptions.Builder source(String source)
source
- the sourcepublic TranslateOptions.Builder target(String target)
target
- the targetCopyright © 2021 IBM Cloud. All rights reserved.