Class WorkflowReader

    • Constructor Detail

      • WorkflowReader

        public WorkflowReader​(String pathWorkspaceSid)
        Construct a new WorkflowReader.
        Parameters:
        pathWorkspaceSid - The workspace_sid
    • Method Detail

      • setFriendlyName

        public WorkflowReader setFriendlyName​(String friendlyName)
        Human readable description of this Workflow (for example "Customer Support" or "2014 Election Campaign").
        Parameters:
        friendlyName - Human readable description of this Workflow
        Returns:
        this
      • read

        public ResourceSet<Workflow> read​(TwilioRestClient client)
        Make the request to the Twilio API to perform the read.
        Specified by:
        read in class Reader<Workflow>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Workflow ResourceSet
      • firstPage

        public Page<Workflow> firstPage​(TwilioRestClient client)
        Make the request to the Twilio API to perform the read.
        Specified by:
        firstPage in class Reader<Workflow>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Workflow ResourceSet
      • getPage

        public Page<Workflow> getPage​(String targetUrl,
                                      TwilioRestClient client)
        Retrieve the target page from the Twilio API.
        Specified by:
        getPage in class Reader<Workflow>
        Parameters:
        targetUrl - API-generated URL for the requested results page
        client - TwilioRestClient with which to make the request
        Returns:
        Workflow ResourceSet