Class Worker

    • Method Detail

      • reader

        public static WorkerReader reader​(String pathWorkspaceSid)
        Create a WorkerReader to execute read.
        Parameters:
        pathWorkspaceSid - The workspace_sid
        Returns:
        WorkerReader capable of executing the read
      • creator

        public static WorkerCreator creator​(String pathWorkspaceSid,
                                            String friendlyName)
        Create a WorkerCreator to execute create.
        Parameters:
        pathWorkspaceSid - The workspace_sid
        friendlyName - String representing user-friendly name for the Worker.
        Returns:
        WorkerCreator capable of executing the create
      • fetcher

        public static WorkerFetcher fetcher​(String pathWorkspaceSid,
                                            String pathSid)
        Create a WorkerFetcher to execute fetch.
        Parameters:
        pathWorkspaceSid - The workspace_sid
        pathSid - The sid
        Returns:
        WorkerFetcher capable of executing the fetch
      • updater

        public static WorkerUpdater updater​(String pathWorkspaceSid,
                                            String pathSid)
        Create a WorkerUpdater to execute update.
        Parameters:
        pathWorkspaceSid - The workspace_sid
        pathSid - The sid
        Returns:
        WorkerUpdater capable of executing the update
      • deleter

        public static WorkerDeleter deleter​(String pathWorkspaceSid,
                                            String pathSid)
        Create a WorkerDeleter to execute delete.
        Parameters:
        pathWorkspaceSid - The workspace_sid
        pathSid - The sid
        Returns:
        WorkerDeleter capable of executing the delete
      • fromJson

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

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

        public final String getAccountSid()
        Returns The The ID of the account that owns this worker.
        Returns:
        The ID of the account that owns this worker
      • getActivityName

        public final String getActivityName()
        Returns The Filter by workers that are in a particular Activity by Friendly Name.
        Returns:
        Filter by workers that are in a particular Activity by Friendly Name
      • getActivitySid

        public final String getActivitySid()
        Returns The Filter by workers that are in a particular Activity by SID.
        Returns:
        Filter by workers that are in a particular Activity by SID
      • getAttributes

        public final String getAttributes()
        Returns The JSON object describing this worker..
        Returns:
        JSON object describing this worker.
      • getAvailable

        public final Boolean getAvailable()
        Returns The Filter by workers that are available or unavailable..
        Returns:
        Filter by workers that are available or unavailable.
      • getDateCreated

        public final org.joda.time.DateTime getDateCreated()
        Returns The DateTime this worker was created.
        Returns:
        DateTime this worker was created
      • getDateStatusChanged

        public final org.joda.time.DateTime getDateStatusChanged()
        Returns The DateTime of the last change to the Worker's activity..
        Returns:
        DateTime of the last change to the Worker's activity.
      • getDateUpdated

        public final org.joda.time.DateTime getDateUpdated()
        Returns The DateTime of the last update.
        Returns:
        DateTime of the last update
      • getFriendlyName

        public final String getFriendlyName()
        Returns The Filter by a worker's friendly name.
        Returns:
        Filter by a worker's friendly name
      • getSid

        public final String getSid()
        Returns The The unique ID of the worker.
        Returns:
        The unique ID of the worker
      • getWorkspaceSid

        public final String getWorkspaceSid()
        Returns The The ID of the Workflow this worker is associated with.
        Returns:
        The ID of the Workflow this worker is associated with
      • getUrl

        public final URI getUrl()
        Returns The The url.
        Returns:
        The url
      • getLinks

        public final Map<String,​String> getLinks()
        Returns The The links.
        Returns:
        The links
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object