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