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