Class CreateTokenizationDictionaryOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.CreateTokenizationDictionaryOptions.Builder
- Enclosing class:
- CreateTokenizationDictionaryOptions
public static class CreateTokenizationDictionaryOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateTokenizationDictionaryOptions.BuilderaddTokenizationRules(TokenDictRule tokenizationRules)Adds an tokenizationRules to tokenizationRules.CreateTokenizationDictionaryOptionsbuild()Builds a CreateTokenizationDictionaryOptions.CreateTokenizationDictionaryOptions.BuildercollectionId(String collectionId)Set the collectionId.CreateTokenizationDictionaryOptions.BuilderenvironmentId(String environmentId)Set the environmentId.CreateTokenizationDictionaryOptions.BuildertokenizationRules(List<TokenDictRule> tokenizationRules)Set the tokenizationRules.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId- the environmentIdcollectionId- the collectionId
-
-
Method Details
-
build
Builds a CreateTokenizationDictionaryOptions.- Returns:
- the new CreateTokenizationDictionaryOptions instance
-
addTokenizationRules
public CreateTokenizationDictionaryOptions.Builder addTokenizationRules(TokenDictRule tokenizationRules)Adds an tokenizationRules to tokenizationRules.- Parameters:
tokenizationRules- the new tokenizationRules- Returns:
- the CreateTokenizationDictionaryOptions builder
-
environmentId
Set the environmentId.- Parameters:
environmentId- the environmentId- Returns:
- the CreateTokenizationDictionaryOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId- the collectionId- Returns:
- the CreateTokenizationDictionaryOptions builder
-
tokenizationRules
public CreateTokenizationDictionaryOptions.Builder tokenizationRules(List<TokenDictRule> tokenizationRules)Set the tokenizationRules. Existing tokenizationRules will be replaced.- Parameters:
tokenizationRules- the tokenizationRules- Returns:
- the CreateTokenizationDictionaryOptions builder
-