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 a new element 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 element to be addedpublic 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 © 2024 IBM Cloud. All rights reserved.