public static class UpdateValueOptions.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 |
---|---|
UpdateValueOptions.Builder |
addPattern(java.lang.String pattern)
Adds an pattern to newPatterns.
|
UpdateValueOptions.Builder |
addSynonym(java.lang.String synonym)
Adds an synonym to newSynonyms.
|
UpdateValueOptions |
build()
Builds a UpdateValueOptions.
|
UpdateValueOptions.Builder |
entity(java.lang.String entity)
Set the entity.
|
UpdateValueOptions.Builder |
newMetadata(java.util.Map<java.lang.String,java.lang.Object> newMetadata)
Set the newMetadata.
|
UpdateValueOptions.Builder |
newPatterns(java.util.List<java.lang.String> newPatterns)
Set the newPatterns.
|
UpdateValueOptions.Builder |
newSynonyms(java.util.List<java.lang.String> newSynonyms)
Set the newSynonyms.
|
UpdateValueOptions.Builder |
newValue(java.lang.String newValue)
Set the newValue.
|
UpdateValueOptions.Builder |
value(java.lang.String value)
Set the value.
|
UpdateValueOptions.Builder |
valueType(java.lang.String valueType)
Set the valueType.
|
UpdateValueOptions.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 UpdateValueOptions build()
public UpdateValueOptions.Builder addSynonym(java.lang.String synonym)
synonym
- the new synonympublic UpdateValueOptions.Builder addPattern(java.lang.String pattern)
pattern
- the new patternpublic UpdateValueOptions.Builder workspaceId(java.lang.String workspaceId)
workspaceId
- the workspaceIdpublic UpdateValueOptions.Builder entity(java.lang.String entity)
entity
- the entitypublic UpdateValueOptions.Builder value(java.lang.String value)
value
- the valuepublic UpdateValueOptions.Builder newValue(java.lang.String newValue)
newValue
- the newValuepublic UpdateValueOptions.Builder newMetadata(java.util.Map<java.lang.String,java.lang.Object> newMetadata)
newMetadata
- the newMetadatapublic UpdateValueOptions.Builder valueType(java.lang.String valueType)
valueType
- the valueTypepublic UpdateValueOptions.Builder newSynonyms(java.util.List<java.lang.String> newSynonyms)
newSynonyms
- the newSynonymspublic UpdateValueOptions.Builder newPatterns(java.util.List<java.lang.String> newPatterns)
newPatterns
- the newPatterns