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 CreateCounterexampleOptionsbuild()Builds a CreateCounterexampleOptions.CreateCounterexampleOptions.Buildercounterexample(Counterexample counterexample)Set the counterexample.CreateCounterexampleOptions.BuilderincludeAudit(Boolean includeAudit)Set the includeAudit.CreateCounterexampleOptions.Buildertext(String text)Set the text.CreateCounterexampleOptions.BuilderworkspaceId(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
-