Package com.twilio.rest.preview.wireless
Class CommandCreator
- java.lang.Object
-
- com.twilio.base.Creator<Command>
-
- com.twilio.rest.preview.wireless.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 Summary
Constructors Constructor Description CommandCreator(String command)
Construct a new CommandCreator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Command
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.CommandCreator
setCallbackMethod(String callbackMethod)
The callback_method.CommandCreator
setCallbackUrl(String callbackUrl)
The callback_url.CommandCreator
setCallbackUrl(URI callbackUrl)
The callback_url.CommandCreator
setCommandMode(String commandMode)
The command_mode.CommandCreator
setDevice(String device)
The device.CommandCreator
setIncludeSid(String includeSid)
The include_sid.CommandCreator
setSim(String sim)
The sim.-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
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.
-
-