public static class CreateValueOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateValueOptions.Builder()
Instantiates a new builder.
|
CreateValueOptions.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 |
addPattern(java.lang.String pattern)
Adds an pattern to patterns.
|
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 |
includeAudit(java.lang.Boolean includeAudit)
Set the includeAudit.
|
CreateValueOptions.Builder |
metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Set the metadata.
|
CreateValueOptions.Builder |
patterns(java.util.List<java.lang.String> patterns)
Set the patterns.
|
CreateValueOptions.Builder |
synonyms(java.util.List<java.lang.String> synonyms)
Set the synonyms.
|
CreateValueOptions.Builder |
type(java.lang.String type)
Set the type.
|
CreateValueOptions.Builder |
value(java.lang.String value)
Set the value.
|
CreateValueOptions.Builder |
workspaceId(java.lang.String workspaceId)
Set the workspaceId.
|
public CreateValueOptions.Builder()
public CreateValueOptions.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 addPattern(java.lang.String pattern)
pattern
- the new patternpublic CreateValueOptions.Builder workspaceId(java.lang.String workspaceId)
workspaceId
- the workspaceIdpublic CreateValueOptions.Builder entity(java.lang.String entity)
entity
- the entitypublic CreateValueOptions.Builder value(java.lang.String value)
value
- the valuepublic CreateValueOptions.Builder metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
metadata
- the metadatapublic CreateValueOptions.Builder type(java.lang.String type)
type
- the typepublic CreateValueOptions.Builder synonyms(java.util.List<java.lang.String> synonyms)
synonyms
- the synonymspublic CreateValueOptions.Builder patterns(java.util.List<java.lang.String> patterns)
patterns
- the patternspublic CreateValueOptions.Builder includeAudit(java.lang.Boolean includeAudit)
includeAudit
- the includeAudit