public static class CreateStopwordListOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateStopwordListOptions.Builder()
Instantiates a new builder.
|
CreateStopwordListOptions.Builder(java.lang.String environmentId,
java.lang.String collectionId,
java.io.InputStream stopwordFile,
java.lang.String stopwordFilename)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateStopwordListOptions |
build()
Builds a CreateStopwordListOptions.
|
CreateStopwordListOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
CreateStopwordListOptions.Builder |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
CreateStopwordListOptions.Builder |
stopwordFile(java.io.File stopwordFile)
Set the stopwordFile.
|
CreateStopwordListOptions.Builder |
stopwordFile(java.io.InputStream stopwordFile)
Set the stopwordFile.
|
CreateStopwordListOptions.Builder |
stopwordFilename(java.lang.String stopwordFilename)
Set the stopwordFilename.
|
public CreateStopwordListOptions.Builder()
public CreateStopwordListOptions.Builder(java.lang.String environmentId, java.lang.String collectionId, java.io.InputStream stopwordFile, java.lang.String stopwordFilename)
environmentId
- the environmentIdcollectionId
- the collectionIdstopwordFile
- the stopwordFilestopwordFilename
- the stopwordFilenamepublic CreateStopwordListOptions build()
public CreateStopwordListOptions.Builder environmentId(java.lang.String environmentId)
environmentId
- the environmentIdpublic CreateStopwordListOptions.Builder collectionId(java.lang.String collectionId)
collectionId
- the collectionIdpublic CreateStopwordListOptions.Builder stopwordFile(java.io.InputStream stopwordFile)
stopwordFile
- the stopwordFilepublic CreateStopwordListOptions.Builder stopwordFilename(java.lang.String stopwordFilename)
stopwordFilename
- the stopwordFilenamepublic CreateStopwordListOptions.Builder stopwordFile(java.io.File stopwordFile) throws java.io.FileNotFoundException
stopwordFile
- the stopwordFilejava.io.FileNotFoundException
- if the file could not be found