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.BuilderaddValue(CreateValue value)Adds an value to newValues.UpdateEntityOptions.Builderappend(Boolean append)Set the append.UpdateEntityOptionsbuild()Builds a UpdateEntityOptions.UpdateEntityOptions.Builderentity(String entity)Set the entity.UpdateEntityOptions.BuilderincludeAudit(Boolean includeAudit)Set the includeAudit.UpdateEntityOptions.BuildernewDescription(String newDescription)Set the newDescription.UpdateEntityOptions.BuildernewEntity(String newEntity)Set the newEntity.UpdateEntityOptions.BuildernewFuzzyMatch(Boolean newFuzzyMatch)Set the newFuzzyMatch.UpdateEntityOptions.BuildernewMetadata(Map<String,Object> newMetadata)Set the newMetadata.UpdateEntityOptions.BuildernewValues(List<CreateValue> newValues)Set the newValues.UpdateEntityOptions.BuilderworkspaceId(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
-