Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String value,
String type)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
Value.Builder |
addPattern(String pattern)
Adds an pattern to patterns.
|
Value.Builder |
addSynonym(String synonym)
Adds an synonym to synonyms.
|
Value |
build()
Builds a Value.
|
Value.Builder |
metadata(Map<String,Object> metadata)
Set the metadata.
|
Value.Builder |
patterns(List<String> patterns)
Set the patterns.
|
Value.Builder |
synonyms(List<String> synonyms)
Set the synonyms.
|
Value.Builder |
type(String type)
Set the type.
|
Value.Builder |
value(String value)
Set the value.
|
public Value build()
public Value.Builder addSynonym(String synonym)
synonym
- the new synonympublic Value.Builder addPattern(String pattern)
pattern
- the new patternpublic Value.Builder value(String value)
value
- the valuepublic Value.Builder metadata(Map<String,Object> metadata)
metadata
- the metadatapublic Value.Builder type(String type)
type
- the typepublic Value.Builder synonyms(List<String> synonyms)
synonyms
- the synonymspublic Value.Builder patterns(List<String> patterns)
patterns
- the patternsCopyright © 2023 IBM Cloud. All rights reserved.