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 a new element to patterns.
|
Value.Builder |
addSynonym(String synonym)
Adds a new element 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 element to be addedpublic Value.Builder addPattern(String pattern)
pattern
- the new element to be addedpublic 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 © 2024 IBM Cloud. All rights reserved.