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 SID of the Account that created the resource.
|
String |
getAssistantSid()
Returns The SID of the Assistant that is the parent of the Task associated
with the resource.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT when the resource was last updated.
|
String |
getLanguage()
Returns An ISO language-country string that specifies the language used for
the sample.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getSourceChannel()
Returns The communication channel from which the sample was captured.
|
String |
getTaggedText()
Returns The text example of how end users might express the task.
|
String |
getTaskSid()
Returns The SID of the Task associated with the resource.
|
URI |
getUrl()
Returns The absolute URL of the Sample resource.
|
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 SID of the Assistant that is the parent of the
Task associated with the resource to fetchpathTaskSid
- The SID of the Task associated with the Sample resource
to createpathSid
- The unique string that identifies the resourcepublic static SampleReader reader(String pathAssistantSid, String pathTaskSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
Task associated with the resources to readpathTaskSid
- The SID of the Task associated with the Sample resources
to readpublic static SampleCreator creator(String pathAssistantSid, String pathTaskSid, String language, String taggedText)
pathAssistantSid
- The SID of the Assistant that is the parent of the
Task associated with the new resourcepathTaskSid
- The SID of the Task associated with the Sample resource
to createlanguage
- The ISO language-country string that specifies the language
used for the new sampletaggedText
- The text example of how end users might express the taskpublic static SampleUpdater updater(String pathAssistantSid, String pathTaskSid, String pathSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
Task associated with the resource to updatepathTaskSid
- The SID of the Task associated with the Sample resource
to updatepathSid
- The unique string that identifies the resourcepublic static SampleDeleter deleter(String pathAssistantSid, String pathTaskSid, String pathSid)
pathAssistantSid
- The SID of the Assistant that is the parent of the
Task associated with the resources to deletepathTaskSid
- The SID of the Task associated with the Sample resource
to deletepathSid
- The unique string that identifies the resourcepublic 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.