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.Builder
addValues(CreateValue values)
Adds an values to values.CreateEntity
build()
Builds a CreateEntity.CreateEntity.Builder
description(String description)
Set the description.CreateEntity.Builder
entity(String entity)
Set the entity.CreateEntity.Builder
fuzzyMatch(Boolean fuzzyMatch)
Set the fuzzyMatch.CreateEntity.Builder
metadata(Map<String,Object> metadata)
Set the metadata.CreateEntity.Builder
values(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
-