Class CreateEntity.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.CreateEntity.Builder
- Enclosing class:
- CreateEntity
public static class CreateEntity.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateEntity.BuilderaddValues(CreateValue values)Adds an values to values.CreateEntitybuild()Builds a CreateEntity.CreateEntity.Builderdescription(String description)Set the description.CreateEntity.Builderentity(String entity)Set the entity.CreateEntity.BuilderfuzzyMatch(Boolean fuzzyMatch)Set the fuzzyMatch.CreateEntity.Buildermetadata(Map<String,Object> metadata)Set the metadata.CreateEntity.Buildervalues(List<CreateValue> values)Set the values.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
entity- the entity
-
-
Method Details
-
build
Builds a CreateEntity.- Returns:
- the new CreateEntity instance
-
addValues
Adds an values to values.- Parameters:
values- the new values- Returns:
- the CreateEntity builder
-
entity
Set the entity.- Parameters:
entity- the entity- Returns:
- the CreateEntity builder
-
description
Set the description.- Parameters:
description- the description- Returns:
- the CreateEntity builder
-
metadata
Set the metadata.- Parameters:
metadata- the metadata- Returns:
- the CreateEntity builder
-
fuzzyMatch
Set the fuzzyMatch.- Parameters:
fuzzyMatch- the fuzzyMatch- Returns:
- the CreateEntity builder
-
values
Set the values. Existing values will be replaced.- Parameters:
values- the values- Returns:
- the CreateEntity builder
-