public static class AddCorpusOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String customizationId,
String corpusName,
InputStream corpusFile)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddCorpusOptions.Builder |
allowOverwrite(Boolean allowOverwrite)
Set the allowOverwrite.
|
AddCorpusOptions |
build()
Builds a AddCorpusOptions.
|
AddCorpusOptions.Builder |
corpusFile(File corpusFile)
Set the corpusFile.
|
AddCorpusOptions.Builder |
corpusFile(InputStream corpusFile)
Set the corpusFile.
|
AddCorpusOptions.Builder |
corpusName(String corpusName)
Set the corpusName.
|
AddCorpusOptions.Builder |
customizationId(String customizationId)
Set the customizationId.
|
public Builder()
public Builder(String customizationId, String corpusName, InputStream corpusFile)
customizationId
- the customizationIdcorpusName
- the corpusNamecorpusFile
- the corpusFilepublic AddCorpusOptions build()
public AddCorpusOptions.Builder customizationId(String customizationId)
customizationId
- the customizationIdpublic AddCorpusOptions.Builder corpusName(String corpusName)
corpusName
- the corpusNamepublic AddCorpusOptions.Builder corpusFile(InputStream corpusFile)
corpusFile
- the corpusFilepublic AddCorpusOptions.Builder allowOverwrite(Boolean allowOverwrite)
allowOverwrite
- the allowOverwritepublic AddCorpusOptions.Builder corpusFile(File corpusFile) throws FileNotFoundException
corpusFile
- the corpusFileFileNotFoundException
- if the file could not be foundCopyright © 2021 IBM Cloud. All rights reserved.