public static class CreateStopwordListOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String environmentId,
String collectionId,
InputStream stopwordFile,
String stopwordFilename)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateStopwordListOptions |
build()
Builds a CreateStopwordListOptions.
|
CreateStopwordListOptions.Builder |
collectionId(String collectionId)
Set the collectionId.
|
CreateStopwordListOptions.Builder |
environmentId(String environmentId)
Set the environmentId.
|
CreateStopwordListOptions.Builder |
stopwordFile(File stopwordFile)
Set the stopwordFile.
|
CreateStopwordListOptions.Builder |
stopwordFile(InputStream stopwordFile)
Set the stopwordFile.
|
CreateStopwordListOptions.Builder |
stopwordFilename(String stopwordFilename)
Set the stopwordFilename.
|
public Builder()
public Builder(String environmentId, String collectionId, InputStream stopwordFile, String stopwordFilename)
environmentId
- the environmentIdcollectionId
- the collectionIdstopwordFile
- the stopwordFilestopwordFilename
- the stopwordFilenamepublic CreateStopwordListOptions build()
public CreateStopwordListOptions.Builder environmentId(String environmentId)
environmentId
- the environmentIdpublic CreateStopwordListOptions.Builder collectionId(String collectionId)
collectionId
- the collectionIdpublic CreateStopwordListOptions.Builder stopwordFile(InputStream stopwordFile)
stopwordFile
- the stopwordFilepublic CreateStopwordListOptions.Builder stopwordFilename(String stopwordFilename)
stopwordFilename
- the stopwordFilenamepublic CreateStopwordListOptions.Builder stopwordFile(File stopwordFile) throws FileNotFoundException
stopwordFile
- the stopwordFileFileNotFoundException
- if the file could not be foundCopyright © 2021 IBM Cloud. All rights reserved.