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