Class TaskStatistics
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.understand.assistant.task.TaskStatistics
-
- All Implemented Interfaces:
Serializable
public class TaskStatistics extends Resource
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static TaskStatisticsFetcher
fetcher(String pathAssistantSid, String pathTaskSid)
Create a TaskStatisticsFetcher to execute fetch.static TaskStatistics
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a TaskStatistics object using the provided ObjectMapper.static TaskStatistics
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a TaskStatistics object using the provided ObjectMapper.String
getAccountSid()
Returns The The unique ID of the Account that created this Field..String
getAssistantSid()
Returns The The unique ID of the parent Assistant..Integer
getFieldsCount()
Returns The The total number of Fields associated with this Task..Integer
getSamplesCount()
Returns The The total number of Samples associated with this Task..String
getTaskSid()
Returns The The unique ID of the Task associated with this Field..URI
getUrl()
Returns The The url.int
hashCode()
String
toString()
-
-
-
Method Detail
-
fetcher
public static TaskStatisticsFetcher fetcher(String pathAssistantSid, String pathTaskSid)
Create a TaskStatisticsFetcher to execute fetch.- Parameters:
pathAssistantSid
- The unique ID of the parent Assistant.pathTaskSid
- The unique ID of the Task associated with this Field.- Returns:
- TaskStatisticsFetcher capable of executing the fetch
-
fromJson
public static TaskStatistics fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a TaskStatistics object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- TaskStatistics object represented by the provided JSON
-
fromJson
public static TaskStatistics fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a TaskStatistics object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- TaskStatistics object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The unique ID of the Account that created this Field..- Returns:
- The unique ID of the Account that created this Field.
-
getAssistantSid
public final String getAssistantSid()
Returns The The unique ID of the parent Assistant..- Returns:
- The unique ID of the parent Assistant.
-
getTaskSid
public final String getTaskSid()
Returns The The unique ID of the Task associated with this Field..- Returns:
- The unique ID of the Task associated with this Field.
-
getSamplesCount
public final Integer getSamplesCount()
Returns The The total number of Samples associated with this Task..- Returns:
- The total number of Samples associated with this Task.
-
getFieldsCount
public final Integer getFieldsCount()
Returns The The total number of Fields associated with this Task..- Returns:
- The total number of Fields associated with this Task.
-
getUrl
public final URI getUrl()
Returns The The url.- Returns:
- The url
-
-