Class CommandCreator


  • public class CommandCreator
    extends Creator<Command>
    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].
    • Constructor Detail

      • CommandCreator

        public CommandCreator​(String command)
        Construct a new CommandCreator.
        Parameters:
        command - The command
    • Method Detail

      • setDevice

        public CommandCreator setDevice​(String device)
        The device.
        Parameters:
        device - The device
        Returns:
        this
      • setSim

        public CommandCreator setSim​(String sim)
        The sim.
        Parameters:
        sim - The sim
        Returns:
        this
      • setCallbackMethod

        public CommandCreator setCallbackMethod​(String callbackMethod)
        The callback_method.
        Parameters:
        callbackMethod - The callback_method
        Returns:
        this
      • setCallbackUrl

        public CommandCreator setCallbackUrl​(URI callbackUrl)
        The callback_url.
        Parameters:
        callbackUrl - The callback_url
        Returns:
        this
      • setCallbackUrl

        public CommandCreator setCallbackUrl​(String callbackUrl)
        The callback_url.
        Parameters:
        callbackUrl - The callback_url
        Returns:
        this
      • setCommandMode

        public CommandCreator setCommandMode​(String commandMode)
        The command_mode.
        Parameters:
        commandMode - The command_mode
        Returns:
        this
      • setIncludeSid

        public CommandCreator setIncludeSid​(String includeSid)
        The include_sid.
        Parameters:
        includeSid - The include_sid
        Returns:
        this
      • create

        public Command create​(TwilioRestClient client)
        Make the request to the Twilio API to perform the create.
        Specified by:
        create in class Creator<Command>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Created Command