Class CreateValueOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.CreateValueOptions.Builder
- Enclosing class:
- CreateValueOptions
public static class CreateValueOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateValueOptions.Builder
addPattern(String pattern)
Adds an pattern to patterns.CreateValueOptions.Builder
addSynonym(String synonym)
Adds an synonym to synonyms.CreateValueOptions
build()
Builds a CreateValueOptions.CreateValueOptions.Builder
entity(String entity)
Set the entity.CreateValueOptions.Builder
includeAudit(Boolean includeAudit)
Set the includeAudit.CreateValueOptions.Builder
metadata(Map<String,Object> metadata)
Set the metadata.CreateValueOptions.Builder
patterns(List<String> patterns)
Set the patterns.CreateValueOptions.Builder
synonyms(List<String> synonyms)
Set the synonyms.CreateValueOptions.Builder
type(String type)
Set the type.CreateValueOptions.Builder
value(String value)
Set the value.CreateValueOptions.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 entityvalue
- the value
-
-
Method Details
-
build
Builds a CreateValueOptions.- Returns:
- the new CreateValueOptions instance
-
addSynonym
Adds an synonym to synonyms.- Parameters:
synonym
- the new synonym- Returns:
- the CreateValueOptions builder
-
addPattern
Adds an pattern to patterns.- Parameters:
pattern
- the new pattern- Returns:
- the CreateValueOptions builder
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId
- the workspaceId- Returns:
- the CreateValueOptions builder
-
entity
Set the entity.- Parameters:
entity
- the entity- Returns:
- the CreateValueOptions builder
-
value
Set the value.- Parameters:
value
- the value- Returns:
- the CreateValueOptions builder
-
metadata
Set the metadata.- Parameters:
metadata
- the metadata- Returns:
- the CreateValueOptions builder
-
type
Set the type.- Parameters:
type
- the type- Returns:
- the CreateValueOptions builder
-
synonyms
Set the synonyms. Existing synonyms will be replaced.- Parameters:
synonyms
- the synonyms- Returns:
- the CreateValueOptions builder
-
patterns
Set the patterns. Existing patterns will be replaced.- Parameters:
patterns
- the patterns- Returns:
- the CreateValueOptions builder
-
includeAudit
Set the includeAudit.- Parameters:
includeAudit
- the includeAudit- Returns:
- the CreateValueOptions builder
-