Class CreateIntentOptions.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.CreateIntentOptions.Builder
- Enclosing class:
- CreateIntentOptions
public static class CreateIntentOptions.Builder extends Object
Builder.
- 
Constructor Summary
- 
Method SummaryModifier and Type Method Description CreateIntentOptions.BuilderaddExample(Example example)Adds an example to examples.CreateIntentOptionsbuild()Builds a CreateIntentOptions.CreateIntentOptions.Builderdescription(String description)Set the description.CreateIntentOptions.Builderexamples(List<Example> examples)Set the examples.CreateIntentOptions.BuilderincludeAudit(Boolean includeAudit)Set the includeAudit.CreateIntentOptions.Builderintent(String intent)Set the intent.CreateIntentOptions.BuilderworkspaceId(String workspaceId)Set the workspaceId.
- 
Constructor Details- 
Builderpublic Builder()Instantiates a new builder.
- 
BuilderInstantiates a new builder with required properties.- Parameters:
- workspaceId- the workspaceId
- intent- the intent
 
 
- 
- 
Method Details- 
buildBuilds a CreateIntentOptions.- Returns:
- the new CreateIntentOptions instance
 
- 
addExampleAdds an example to examples.- Parameters:
- example- the new example
- Returns:
- the CreateIntentOptions builder
 
- 
workspaceIdSet the workspaceId.- Parameters:
- workspaceId- the workspaceId
- Returns:
- the CreateIntentOptions builder
 
- 
intentSet the intent.- Parameters:
- intent- the intent
- Returns:
- the CreateIntentOptions builder
 
- 
descriptionSet the description.- Parameters:
- description- the description
- Returns:
- the CreateIntentOptions builder
 
- 
examplesSet the examples. Existing examples will be replaced.- Parameters:
- examples- the examples
- Returns:
- the CreateIntentOptions builder
 
- 
includeAuditSet the includeAudit.- Parameters:
- includeAudit- the includeAudit
- Returns:
- the CreateIntentOptions builder
 
 
-