Class Assistant

  • All Implemented Interfaces:
    Serializable

    public class Assistant
    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 Detail

      • fetcher

        public static AssistantFetcher fetcher​(String pathSid)
        Create a AssistantFetcher to execute fetch.
        Parameters:
        pathSid - The unique string that identifies the resource
        Returns:
        AssistantFetcher capable of executing the fetch
      • reader

        public static AssistantReader reader()
        Create a AssistantReader to execute read.
        Returns:
        AssistantReader capable of executing the read
      • creator

        public static AssistantCreator creator()
        Create a AssistantCreator to execute create.
        Returns:
        AssistantCreator capable of executing the create
      • updater

        public static AssistantUpdater updater​(String pathSid)
        Create a AssistantUpdater to execute update.
        Parameters:
        pathSid - The unique string that identifies the resource
        Returns:
        AssistantUpdater capable of executing the update
      • deleter

        public static AssistantDeleter deleter​(String pathSid)
        Create a AssistantDeleter to execute delete.
        Parameters:
        pathSid - The unique string that identifies the resource
        Returns:
        AssistantDeleter capable of executing the delete
      • fromJson

        public static Assistant fromJson​(String json,
                                         com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a Assistant object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        Assistant object represented by the provided JSON
      • fromJson

        public static Assistant fromJson​(InputStream json,
                                         com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a Assistant object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        Assistant 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
      • getDateCreated

        public final org.joda.time.DateTime getDateCreated()
        Returns The The RFC 2822 date and time in GMT when the resource was created.
        Returns:
        The RFC 2822 date and time in GMT when the resource was created
      • getDateUpdated

        public final org.joda.time.DateTime getDateUpdated()
        Returns The The RFC 2822 date and time in GMT when the resource was last updated.
        Returns:
        The RFC 2822 date and time in GMT when the resource was last updated
      • getFriendlyName

        public final String getFriendlyName()
        Returns The The string that you assigned to describe the resource.
        Returns:
        The string that you assigned to describe the resource
      • getLatestModelBuildSid

        public final String getLatestModelBuildSid()
        Returns The Reserved.
        Returns:
        Reserved
      • getLinks

        public final Map<String,​String> getLinks()
        Returns The A list of the URLs of the Assistant's related resources.
        Returns:
        A list of the URLs of the Assistant's related resources
      • getLogQueries

        public final Boolean getLogQueries()
        Returns The Whether queries should be logged and kept after training.
        Returns:
        Whether queries should be logged and kept after training
      • getDevelopmentStage

        public final String getDevelopmentStage()
        Returns The A string describing the state of the assistant..
        Returns:
        A string describing the state of the assistant.
      • getNeedsModelBuild

        public final Boolean getNeedsModelBuild()
        Returns The Whether model needs to be rebuilt.
        Returns:
        Whether model needs to be rebuilt
      • getSid

        public final String getSid()
        Returns The The unique string that identifies the resource.
        Returns:
        The unique string that identifies the resource
      • getUniqueName

        public final String getUniqueName()
        Returns The An application-defined string that uniquely identifies the resource.
        Returns:
        An application-defined string that uniquely identifies the resource
      • getUrl

        public final URI getUrl()
        Returns The The absolute URL of the Assistant resource.
        Returns:
        The absolute URL of the Assistant resource
      • getCallbackUrl

        public final URI getCallbackUrl()
        Returns The Reserved.
        Returns:
        Reserved
      • getCallbackEvents

        public final String getCallbackEvents()
        Returns The Reserved.
        Returns:
        Reserved
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object