public class SampleCreator extends Creator<Sample>
Constructor and Description |
---|
SampleCreator(String pathAssistantSid,
String pathTaskSid,
String language,
String taggedText)
Construct a new SampleCreator.
|
Modifier and Type | Method and Description |
---|---|
Sample |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
SampleCreator |
setSourceChannel(String sourceChannel)
The communication channel the sample was captured.
|
create, createAsync, createAsync
public SampleCreator(String pathAssistantSid, String pathTaskSid, String language, String taggedText)
pathAssistantSid
- The unique ID of the Assistant.pathTaskSid
- The unique ID of the Task associated with this Sample.language
- An ISO language-country string of the sample.taggedText
- The text example of how end-users may express this task.
The sample may contain Field tag blocks.public SampleCreator setSourceChannel(String sourceChannel)
sourceChannel
- The communication channel the sample was captured. It
can be: voice, sms, chat, alexa, google-assistant, or
slack. If not included the value will be nullpublic Sample create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.