public static class CreateTokenizationDictionaryOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String environmentId,
java.lang.String collectionId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateTokenizationDictionaryOptions.Builder |
addTokenizationRules(TokenDictRule tokenizationRules)
Adds an tokenizationRules to tokenizationRules.
|
CreateTokenizationDictionaryOptions |
build()
Builds a CreateTokenizationDictionaryOptions.
|
CreateTokenizationDictionaryOptions.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
CreateTokenizationDictionaryOptions.Builder |
environmentId(java.lang.String environmentId)
Set the environmentId.
|
CreateTokenizationDictionaryOptions.Builder |
tokenizationRules(java.util.List<TokenDictRule> tokenizationRules)
Set the tokenizationRules.
|
public Builder()
public Builder(java.lang.String environmentId, java.lang.String collectionId)
environmentId
- the environmentIdcollectionId
- the collectionIdpublic CreateTokenizationDictionaryOptions build()
public CreateTokenizationDictionaryOptions.Builder addTokenizationRules(TokenDictRule tokenizationRules)
tokenizationRules
- the new tokenizationRulespublic CreateTokenizationDictionaryOptions.Builder environmentId(java.lang.String environmentId)
environmentId
- the environmentIdpublic CreateTokenizationDictionaryOptions.Builder collectionId(java.lang.String collectionId)
collectionId
- the collectionIdpublic CreateTokenizationDictionaryOptions.Builder tokenizationRules(java.util.List<TokenDictRule> tokenizationRules)
tokenizationRules
- the tokenizationRules