Class CreateEntityOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.CreateEntityOptions.Builder
- Enclosing class:
- CreateEntityOptions
public static class CreateEntityOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateEntityOptions.Builder
addValues(CreateValue values)
Adds an values to values.CreateEntityOptions
build()
Builds a CreateEntityOptions.CreateEntityOptions.Builder
description(String description)
Set the description.CreateEntityOptions.Builder
entity(String entity)
Set the entity.CreateEntityOptions.Builder
fuzzyMatch(Boolean fuzzyMatch)
Set the fuzzyMatch.CreateEntityOptions.Builder
includeAudit(Boolean includeAudit)
Set the includeAudit.CreateEntityOptions.Builder
metadata(Map<String,Object> metadata)
Set the metadata.CreateEntityOptions.Builder
values(List<CreateValue> values)
Set the values.CreateEntityOptions.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 CreateEntityOptions.- Returns:
- the new CreateEntityOptions instance
-
addValues
Adds an values to values.- Parameters:
values
- the new values- Returns:
- the CreateEntityOptions builder
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId
- the workspaceId- Returns:
- the CreateEntityOptions builder
-
entity
Set the entity.- Parameters:
entity
- the entity- Returns:
- the CreateEntityOptions builder
-
description
Set the description.- Parameters:
description
- the description- Returns:
- the CreateEntityOptions builder
-
metadata
Set the metadata.- Parameters:
metadata
- the metadata- Returns:
- the CreateEntityOptions builder
-
fuzzyMatch
Set the fuzzyMatch.- Parameters:
fuzzyMatch
- the fuzzyMatch- Returns:
- the CreateEntityOptions builder
-
values
Set the values. Existing values will be replaced.- Parameters:
values
- the values- Returns:
- the CreateEntityOptions builder
-
includeAudit
Set the includeAudit.- Parameters:
includeAudit
- the includeAudit- Returns:
- the CreateEntityOptions builder
-