public static class CreateValue.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String value)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateValue.Builder |
addSynonym(java.lang.String synonym)
Adds an synonym to synonyms.
|
CreateValue |
build()
Builds a CreateValue.
|
CreateValue.Builder |
metadata(java.util.Map metadata)
Set the metadata.
|
CreateValue.Builder |
synonyms(java.util.List<java.lang.String> synonyms)
Set the synonyms.
|
CreateValue.Builder |
value(java.lang.String value)
Set the value.
|
public Builder()
public Builder(java.lang.String value)
value
- the valuepublic CreateValue build()
public CreateValue.Builder addSynonym(java.lang.String synonym)
synonym
- the new synonympublic CreateValue.Builder value(java.lang.String value)
value
- the valuepublic CreateValue.Builder metadata(java.util.Map metadata)
metadata
- the metadatapublic CreateValue.Builder synonyms(java.util.List<java.lang.String> synonyms)
synonyms
- the synonyms