Class TaskStatistics
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.autopilot.v1.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 SID of the Account that created the resource.String
getAssistantSid()
Returns The The SID of the Assistant that is the parent of the Task associated with the resource.Integer
getFieldsCount()
Returns The The total number of Fields associated with the Task.Integer
getSamplesCount()
Returns The The total number of Samples associated with the Task.String
getTaskSid()
Returns The The SID of the Task for which the statistics were collected.URI
getUrl()
Returns The The absolute URL of the TaskStatistics resource.int
hashCode()
String
toString()
-
-
-
Method Detail
-
fetcher
public static TaskStatisticsFetcher fetcher(String pathAssistantSid, String pathTaskSid)
Create a TaskStatisticsFetcher to execute fetch.- Parameters:
pathAssistantSid
- The SID of the Assistant that is the parent of the resource to fetchpathTaskSid
- The SID of the Task that is associated with the resource to fetch- 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 SID of the Account that created the resource.- Returns:
- The SID of the Account that created the resource
-
getAssistantSid
public final String getAssistantSid()
Returns The The SID of the Assistant that is the parent of the Task associated with the resource.- Returns:
- The SID of the Assistant that is the parent of the Task associated with the resource
-
getTaskSid
public final String getTaskSid()
Returns The The SID of the Task for which the statistics were collected.- Returns:
- The SID of the Task for which the statistics were collected
-
getSamplesCount
public final Integer getSamplesCount()
Returns The The total number of Samples associated with the Task.- Returns:
- The total number of Samples associated with the Task
-
getFieldsCount
public final Integer getFieldsCount()
Returns The The total number of Fields associated with the Task.- Returns:
- The total number of Fields associated with the Task
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the TaskStatistics resource.- Returns:
- The absolute URL of the TaskStatistics resource
-
-