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 SummaryModifier 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- 
Builderpublic Builder()Instantiates a new builder.
- 
BuilderInstantiates a new builder with required properties.- Parameters:
- environmentId- the environmentId
- collectionId- the collectionId
 
 
- 
- 
Method Details- 
buildBuilds a CreateTokenizationDictionaryOptions.- Returns:
- the new CreateTokenizationDictionaryOptions instance
 
- 
addTokenizationRulespublic CreateTokenizationDictionaryOptions.Builder addTokenizationRules(TokenDictRule tokenizationRules)Adds an tokenizationRules to tokenizationRules.- Parameters:
- tokenizationRules- the new tokenizationRules
- Returns:
- the CreateTokenizationDictionaryOptions builder
 
- 
environmentIdSet the environmentId.- Parameters:
- environmentId- the environmentId
- Returns:
- the CreateTokenizationDictionaryOptions builder
 
- 
collectionIdSet the collectionId.- Parameters:
- collectionId- the collectionId
- Returns:
- the CreateTokenizationDictionaryOptions builder
 
- 
tokenizationRulespublic CreateTokenizationDictionaryOptions.Builder tokenizationRules(List<TokenDictRule> tokenizationRules)Set the tokenizationRules. Existing tokenizationRules will be replaced.- Parameters:
- tokenizationRules- the tokenizationRules
- Returns:
- the CreateTokenizationDictionaryOptions builder
 
 
-