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