Class CreateSynonymOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.CreateSynonymOptions.Builder
- Enclosing class:
- CreateSynonymOptions
public static class CreateSynonymOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateSynonymOptions
build()
Builds a CreateSynonymOptions.CreateSynonymOptions.Builder
entity(String entity)
Set the entity.CreateSynonymOptions.Builder
includeAudit(Boolean includeAudit)
Set the includeAudit.CreateSynonymOptions.Builder
synonym(Synonym synonym)
Set the synonym.CreateSynonymOptions.Builder
synonym(String synonym)
Set the synonym.CreateSynonymOptions.Builder
value(String value)
Set the value.CreateSynonymOptions.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 valuesynonym
- the synonym
-
-
Method Details
-
build
Builds a CreateSynonymOptions.- Returns:
- the new CreateSynonymOptions instance
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId
- the workspaceId- Returns:
- the CreateSynonymOptions builder
-
entity
Set the entity.- Parameters:
entity
- the entity- Returns:
- the CreateSynonymOptions builder
-
value
Set the value.- Parameters:
value
- the value- Returns:
- the CreateSynonymOptions builder
-
synonym
Set the synonym.- Parameters:
synonym
- the synonym- Returns:
- the CreateSynonymOptions builder
-
includeAudit
Set the includeAudit.- Parameters:
includeAudit
- the includeAudit- Returns:
- the CreateSynonymOptions builder
-
synonym
Set the synonym.- Parameters:
synonym
- the synonym- Returns:
- the CreateSynonymOptions builder
-