public class Sample extends Resource
Modifier and Type | Method and Description |
---|---|
static SampleCreator |
creator(String pathAssistantSid,
String pathTaskSid,
String language,
String taggedText)
Create a SampleCreator to execute create.
|
static SampleDeleter |
deleter(String pathAssistantSid,
String pathTaskSid,
String pathSid)
Create a SampleDeleter to execute delete.
|
boolean |
equals(Object o) |
static SampleFetcher |
fetcher(String pathAssistantSid,
String pathTaskSid,
String pathSid)
Create a SampleFetcher to execute fetch.
|
static Sample |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Sample object using the provided
ObjectMapper.
|
static Sample |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Sample object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The unique ID of the Account that created this Sample..
|
String |
getAssistantSid()
Returns The unique ID of the Assistant..
|
ZonedDateTime |
getDateCreated()
Returns The date that this resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The date that this resource was last updated.
|
String |
getLanguage()
Returns An ISO language-country string of the sample..
|
String |
getSid()
Returns A 34 character string that uniquely identifies this resource..
|
String |
getSourceChannel()
Returns The communication channel the sample was captured.
|
String |
getTaggedText()
Returns The text example of how end-users may express this task.
|
String |
getTaskSid()
Returns The unique ID of the Task associated with this Sample..
|
URI |
getUrl()
Returns The url.
|
int |
hashCode() |
static SampleReader |
reader(String pathAssistantSid,
String pathTaskSid)
Create a SampleReader to execute read.
|
static SampleUpdater |
updater(String pathAssistantSid,
String pathTaskSid,
String pathSid)
Create a SampleUpdater to execute update.
|
public static SampleFetcher fetcher(String pathAssistantSid, String pathTaskSid, String pathSid)
pathAssistantSid
- The unique ID of the Assistant.pathTaskSid
- The unique ID of the Task associated with this Sample.pathSid
- A 34 character string that uniquely identifies this resource.public static SampleReader reader(String pathAssistantSid, String pathTaskSid)
pathAssistantSid
- The unique ID of the Assistant.pathTaskSid
- The unique ID of the Task associated with this Sample.public static SampleCreator creator(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 static SampleUpdater updater(String pathAssistantSid, String pathTaskSid, String pathSid)
pathAssistantSid
- The unique ID of the Assistant.pathTaskSid
- The unique ID of the Task associated with this Sample.pathSid
- A 34 character string that uniquely identifies this resource.public static SampleDeleter deleter(String pathAssistantSid, String pathTaskSid, String pathSid)
pathAssistantSid
- The unique ID of the Assistant.pathTaskSid
- The unique ID of the Task associated with this Sample.pathSid
- A 34 character string that uniquely identifies this resource.public static Sample fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Sample fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getTaskSid()
public final String getLanguage()
public final String getAssistantSid()
public final String getSid()
public final String getTaggedText()
public final URI getUrl()
public final String getSourceChannel()
Copyright © 2019 Twilio, Inc. All Rights Reserved.