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