public static class CreateStopwordListOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String projectId,
String collectionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateStopwordListOptions.Builder |
addStopwords(String stopwords)
Adds a new element to stopwords.
|
CreateStopwordListOptions |
build()
Builds a CreateStopwordListOptions.
|
CreateStopwordListOptions.Builder |
collectionId(String collectionId)
Set the collectionId.
|
CreateStopwordListOptions.Builder |
projectId(String projectId)
Set the projectId.
|
CreateStopwordListOptions.Builder |
stopWordList(StopWordList stopWordList)
Set the stopWordList.
|
CreateStopwordListOptions.Builder |
stopwords(List<String> stopwords)
Set the stopwords.
|
public CreateStopwordListOptions build()
public CreateStopwordListOptions.Builder addStopwords(String stopwords)
stopwords
- the new element to be addedpublic CreateStopwordListOptions.Builder projectId(String projectId)
projectId
- the projectIdpublic CreateStopwordListOptions.Builder collectionId(String collectionId)
collectionId
- the collectionIdpublic CreateStopwordListOptions.Builder stopwords(List<String> stopwords)
stopwords
- the stopwordspublic CreateStopwordListOptions.Builder stopWordList(StopWordList stopWordList)
stopWordList
- the stopWordListCopyright © 2024 IBM Cloud. All rights reserved.