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.BuilderbaseModelId(String baseModelId)Set the baseModelId.CreateModelOptionsbuild()Builds a CreateModelOptions.CreateModelOptions.BuilderforcedGlossary(File forcedGlossary)Set the forcedGlossary.CreateModelOptions.BuilderforcedGlossary(InputStream forcedGlossary)Set the forcedGlossary.CreateModelOptions.Buildername(String name)Set the name.CreateModelOptions.BuilderparallelCorpus(File parallelCorpus)Set the parallelCorpus.CreateModelOptions.BuilderparallelCorpus(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
-