Class CreateModelOptions.Builder
java.lang.Object
com.ibm.watson.language_translator.v3.model.CreateModelOptions.Builder
- Enclosing class:
- CreateModelOptions
public static class CreateModelOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateModelOptions.Builder
baseModelId(String baseModelId)
Set the baseModelId.CreateModelOptions
build()
Builds a CreateModelOptions.CreateModelOptions.Builder
forcedGlossary(File forcedGlossary)
Set the forcedGlossary.CreateModelOptions.Builder
forcedGlossary(InputStream forcedGlossary)
Set the forcedGlossary.CreateModelOptions.Builder
name(String name)
Set the name.CreateModelOptions.Builder
parallelCorpus(File parallelCorpus)
Set the parallelCorpus.CreateModelOptions.Builder
parallelCorpus(InputStream parallelCorpus)
Set the parallelCorpus.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
baseModelId
- the baseModelId
-
-
Method Details
-
build
Builds a CreateModelOptions.- Returns:
- the new CreateModelOptions instance
-
baseModelId
Set the baseModelId.- Parameters:
baseModelId
- the baseModelId- Returns:
- the CreateModelOptions builder
-
forcedGlossary
Set the forcedGlossary.- Parameters:
forcedGlossary
- the forcedGlossary- Returns:
- the CreateModelOptions builder
-
parallelCorpus
Set the parallelCorpus.- Parameters:
parallelCorpus
- the parallelCorpus- Returns:
- the CreateModelOptions builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the CreateModelOptions builder
-
forcedGlossary
Set the forcedGlossary.- Parameters:
forcedGlossary
- the forcedGlossary- Returns:
- the CreateModelOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-
parallelCorpus
Set the parallelCorpus.- Parameters:
parallelCorpus
- the parallelCorpus- Returns:
- the CreateModelOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-