Class CreateExampleOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.CreateExampleOptions.Builder
- Enclosing class:
- CreateExampleOptions
public static class CreateExampleOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description CreateExampleOptions.Builder
addMentions(Mention mentions)
Adds an mentions to mentions.CreateExampleOptions
build()
Builds a CreateExampleOptions.CreateExampleOptions.Builder
example(Example example)
Set the example.CreateExampleOptions.Builder
includeAudit(Boolean includeAudit)
Set the includeAudit.CreateExampleOptions.Builder
intent(String intent)
Set the intent.CreateExampleOptions.Builder
mentions(List<Mention> mentions)
Set the mentions.CreateExampleOptions.Builder
text(String text)
Set the text.CreateExampleOptions.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 workspaceIdintent
- the intenttext
- the text
-
-
Method Details
-
build
Builds a CreateExampleOptions.- Returns:
- the new CreateExampleOptions instance
-
addMentions
Adds an mentions to mentions.- Parameters:
mentions
- the new mentions- Returns:
- the CreateExampleOptions builder
-
workspaceId
Set the workspaceId.- Parameters:
workspaceId
- the workspaceId- Returns:
- the CreateExampleOptions builder
-
intent
Set the intent.- Parameters:
intent
- the intent- Returns:
- the CreateExampleOptions builder
-
text
Set the text.- Parameters:
text
- the text- Returns:
- the CreateExampleOptions builder
-
mentions
Set the mentions. Existing mentions will be replaced.- Parameters:
mentions
- the mentions- Returns:
- the CreateExampleOptions builder
-
includeAudit
Set the includeAudit.- Parameters:
includeAudit
- the includeAudit- Returns:
- the CreateExampleOptions builder
-
example
Set the example.- Parameters:
example
- the example- Returns:
- the CreateExampleOptions builder
-