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 HTTP method we use to call `callback_url`.
|
CommandCreator |
setCallbackUrl(String callbackUrl)
The URL we call using the `callback_url` when the Command has finished
sending, whether the command was delivered or it failed..
|
CommandCreator |
setCallbackUrl(URI callbackUrl)
The URL we call using the `callback_url` when the Command has finished
sending, whether the command was delivered or it failed..
|
CommandCreator |
setCommandMode(Command.CommandMode commandMode)
The mode to use when sending the SMS message.
|
CommandCreator |
setDeliveryReceiptRequested(Boolean deliveryReceiptRequested)
Whether to request delivery receipt from the recipient.
|
CommandCreator |
setIncludeSid(String includeSid)
Whether to include the SID of the command in the message body.
|
CommandCreator |
setSim(String sim)
The `sid` or `unique_name` of the SIM to send
the Command to..
|
create, createAsync, createAsync
public CommandCreator(String command)
command
- The message body of the Command or a Base64 encoded byte
string in binary modepublic CommandCreator setSim(String sim)
sim
- The sid or unique_name of the SIM to send the Command topublic CommandCreator setCallbackMethod(HttpMethod callbackMethod)
callbackMethod
- The HTTP method we use to call callback_urlpublic CommandCreator setCallbackUrl(URI callbackUrl)
callbackUrl
- he URL we call when the Command has finished sendingpublic CommandCreator setCallbackUrl(String callbackUrl)
callbackUrl
- he URL we call when the Command has finished sendingpublic CommandCreator setCommandMode(Command.CommandMode commandMode)
commandMode
- The mode to use when sending the SMS messagepublic CommandCreator setIncludeSid(String includeSid)
includeSid
- Whether to include the SID of the command in the message
bodypublic CommandCreator setDeliveryReceiptRequested(Boolean deliveryReceiptRequested)
deliveryReceiptRequested
- Whether to request delivery receipt from the
recipientpublic Command create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.