Constructor and Description |
---|
CommandCreator(String command)
Construct a new CommandCreator.
|
Modifier and Type | Method and Description |
---|---|
Command |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
CommandCreator |
setCallbackMethod(HttpMethod callbackMethod)
The callback_method.
|
CommandCreator |
setCallbackUrl(String callbackUrl)
The callback_url.
|
CommandCreator |
setCallbackUrl(URI callbackUrl)
The callback_url.
|
CommandCreator |
setCommandMode(Command.CommandMode commandMode)
The command_mode.
|
CommandCreator |
setIncludeSid(String includeSid)
The include_sid.
|
CommandCreator |
setSim(String sim)
The sim.
|
create, createAsync, createAsync
public CommandCreator(String command)
command
- The commandpublic CommandCreator setSim(String sim)
sim
- The simpublic CommandCreator setCallbackMethod(HttpMethod callbackMethod)
callbackMethod
- The callback_methodpublic CommandCreator setCallbackUrl(URI callbackUrl)
callbackUrl
- The callback_urlpublic CommandCreator setCallbackUrl(String callbackUrl)
callbackUrl
- The callback_urlpublic CommandCreator setCommandMode(Command.CommandMode commandMode)
commandMode
- The command_modepublic CommandCreator setIncludeSid(String includeSid)
includeSid
- The include_sidpublic Command create(TwilioRestClient client)
Copyright © 2016 Twilio, Inc. All Rights Reserved.