Class UpdateEntityOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.UpdateEntityOptions.Builder
- Enclosing class:
- UpdateEntityOptions
public static class UpdateEntityOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description UpdateEntityOptions.Builder
addValue(CreateValue value)
Adds an value to newValues.UpdateEntityOptions.Builder
append(Boolean append)
Set the append.UpdateEntityOptions
build()
Builds a UpdateEntityOptions.UpdateEntityOptions.Builder
entity(String entity)
Set the entity.UpdateEntityOptions.Builder
includeAudit(Boolean includeAudit)
Set the includeAudit.UpdateEntityOptions.Builder
newDescription(String newDescription)
Set the newDescription.UpdateEntityOptions.Builder
newEntity(String newEntity)
Set the newEntity.UpdateEntityOptions.Builder
newFuzzyMatch(Boolean newFuzzyMatch)
Set the newFuzzyMatch.UpdateEntityOptions.Builder
newMetadata(Map<String,Object> newMetadata)
Set the newMetadata.UpdateEntityOptions.Builder
newValues(List<CreateValue> newValues)
Set the newValues.UpdateEntityOptions.Builder
workspaceId(String workspaceId)
Set the workspaceId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
workspaceId
- the workspaceIdentity
- the entity
-
-
Method Details
-
build
Builds a UpdateEntityOptions.- Returns:
- the new UpdateEntityOptions instance
-
addValue
Adds an value to newValues.- Parameters:
value
- the new value- Returns:
- the UpdateEntityOptions builder
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId
- the workspaceId- Returns:
- the UpdateEntityOptions builder
-
entity
Set the entity.- Parameters:
entity
- the entity- Returns:
- the UpdateEntityOptions builder
-
newEntity
Set the newEntity.- Parameters:
newEntity
- the newEntity- Returns:
- the UpdateEntityOptions builder
-
newDescription
Set the newDescription.- Parameters:
newDescription
- the newDescription- Returns:
- the UpdateEntityOptions builder
-
newMetadata
Set the newMetadata.- Parameters:
newMetadata
- the newMetadata- Returns:
- the UpdateEntityOptions builder
-
newFuzzyMatch
Set the newFuzzyMatch.- Parameters:
newFuzzyMatch
- the newFuzzyMatch- Returns:
- the UpdateEntityOptions builder
-
newValues
Set the newValues. Existing newValues will be replaced.- Parameters:
newValues
- the newValues- Returns:
- the UpdateEntityOptions builder
-
append
Set the append.- Parameters:
append
- the append- Returns:
- the UpdateEntityOptions builder
-
includeAudit
Set the includeAudit.- Parameters:
includeAudit
- the includeAudit- Returns:
- the UpdateEntityOptions builder
-