Class CreateStopwordListOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.CreateStopwordListOptions.Builder
- Enclosing class:
- CreateStopwordListOptions
public static class CreateStopwordListOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateStopwordListOptionsbuild()Builds a CreateStopwordListOptions.CreateStopwordListOptions.BuildercollectionId(String collectionId)Set the collectionId.CreateStopwordListOptions.BuilderenvironmentId(String environmentId)Set the environmentId.CreateStopwordListOptions.BuilderstopwordFile(File stopwordFile)Set the stopwordFile.CreateStopwordListOptions.BuilderstopwordFile(InputStream stopwordFile)Set the stopwordFile.CreateStopwordListOptions.BuilderstopwordFilename(String stopwordFilename)Set the stopwordFilename.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
public Builder(String environmentId, String collectionId, InputStream stopwordFile, String stopwordFilename)Instantiates a new builder with required properties.- Parameters:
environmentId- the environmentIdcollectionId- the collectionIdstopwordFile- the stopwordFilestopwordFilename- the stopwordFilename
-
-
Method Details
-
build
Builds a CreateStopwordListOptions.- Returns:
- the new CreateStopwordListOptions instance
-
environmentId
Set the environmentId.- Parameters:
environmentId- the environmentId- Returns:
- the CreateStopwordListOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId- the collectionId- Returns:
- the CreateStopwordListOptions builder
-
stopwordFile
Set the stopwordFile.- Parameters:
stopwordFile- the stopwordFile- Returns:
- the CreateStopwordListOptions builder
-
stopwordFilename
Set the stopwordFilename.- Parameters:
stopwordFilename- the stopwordFilename- Returns:
- the CreateStopwordListOptions builder
-
stopwordFile
public CreateStopwordListOptions.Builder stopwordFile(File stopwordFile) throws FileNotFoundExceptionSet the stopwordFile.- Parameters:
stopwordFile- the stopwordFile- Returns:
- the CreateStopwordListOptions builder
- Throws:
FileNotFoundException- if the file could not be found
-