public static class AddCorpusOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
AddCorpusOptions.Builder()
Instantiates a new builder.
|
AddCorpusOptions.Builder(java.lang.String customizationId,
java.lang.String corpusName,
java.io.InputStream corpusFile)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddCorpusOptions.Builder |
allowOverwrite(java.lang.Boolean allowOverwrite)
Set the allowOverwrite.
|
AddCorpusOptions |
build()
Builds a AddCorpusOptions.
|
AddCorpusOptions.Builder |
corpusFile(java.io.File corpusFile)
Set the corpusFile.
|
AddCorpusOptions.Builder |
corpusFile(java.io.InputStream corpusFile)
Set the corpusFile.
|
AddCorpusOptions.Builder |
corpusName(java.lang.String corpusName)
Set the corpusName.
|
AddCorpusOptions.Builder |
customizationId(java.lang.String customizationId)
Set the customizationId.
|
public AddCorpusOptions.Builder()
public AddCorpusOptions.Builder(java.lang.String customizationId, java.lang.String corpusName, java.io.InputStream corpusFile)
customizationId
- the customizationIdcorpusName
- the corpusNamecorpusFile
- the corpusFilepublic AddCorpusOptions build()
public AddCorpusOptions.Builder customizationId(java.lang.String customizationId)
customizationId
- the customizationIdpublic AddCorpusOptions.Builder corpusName(java.lang.String corpusName)
corpusName
- the corpusNamepublic AddCorpusOptions.Builder corpusFile(java.io.InputStream corpusFile)
corpusFile
- the corpusFilepublic AddCorpusOptions.Builder allowOverwrite(java.lang.Boolean allowOverwrite)
allowOverwrite
- the allowOverwritepublic AddCorpusOptions.Builder corpusFile(java.io.File corpusFile) throws java.io.FileNotFoundException
corpusFile
- the corpusFilejava.io.FileNotFoundException
- if the file could not be found