public static class CreateModelOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String baseModelId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateModelOptions.Builder |
baseModelId(java.lang.String baseModelId)
Set the baseModelId.
|
CreateModelOptions |
build()
Builds a CreateModelOptions.
|
CreateModelOptions.Builder |
forcedGlossary(java.io.InputStream forcedGlossary)
Set the forcedGlossary.
|
CreateModelOptions.Builder |
forcedGlossaryContentType(java.lang.String forcedGlossaryContentType)
Set the forcedGlossaryContentType.
|
CreateModelOptions.Builder |
monolingualCorpus(java.io.InputStream monolingualCorpus)
Set the monolingualCorpus.
|
CreateModelOptions.Builder |
monolingualCorpusContentType(java.lang.String monolingualCorpusContentType)
Set the monolingualCorpusContentType.
|
CreateModelOptions.Builder |
name(java.lang.String name)
Set the name.
|
CreateModelOptions.Builder |
parallelCorpus(java.io.InputStream parallelCorpus)
Set the parallelCorpus.
|
CreateModelOptions.Builder |
parallelCorpusContentType(java.lang.String parallelCorpusContentType)
Set the parallelCorpusContentType.
|
public Builder()
public Builder(java.lang.String baseModelId)
baseModelId
- the baseModelIdpublic CreateModelOptions build()
public CreateModelOptions.Builder baseModelId(java.lang.String baseModelId)
baseModelId
- the baseModelIdpublic CreateModelOptions.Builder name(java.lang.String name)
name
- the namepublic CreateModelOptions.Builder forcedGlossary(java.io.InputStream forcedGlossary)
forcedGlossary
- the forcedGlossarypublic CreateModelOptions.Builder parallelCorpus(java.io.InputStream parallelCorpus)
parallelCorpus
- the parallelCorpuspublic CreateModelOptions.Builder monolingualCorpus(java.io.InputStream monolingualCorpus)
monolingualCorpus
- the monolingualCorpuspublic CreateModelOptions.Builder forcedGlossaryContentType(java.lang.String forcedGlossaryContentType)
forcedGlossaryContentType
- the forcedGlossaryContentTypepublic CreateModelOptions.Builder parallelCorpusContentType(java.lang.String parallelCorpusContentType)
parallelCorpusContentType
- the parallelCorpusContentTypepublic CreateModelOptions.Builder monolingualCorpusContentType(java.lang.String monolingualCorpusContentType)
monolingualCorpusContentType
- the monolingualCorpusContentType