Constructor and Description |
---|
DeviceUpdater(String sid)
Construct a new DeviceUpdater.
|
Modifier and Type | Method and Description |
---|---|
Device |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
DeviceUpdater |
setAlias(String alias)
The alias.
|
DeviceUpdater |
setCallbackMethod(String callbackMethod)
The callback_method.
|
DeviceUpdater |
setCallbackUrl(String callbackUrl)
The callback_url.
|
DeviceUpdater |
setCallbackUrl(URI callbackUrl)
The callback_url.
|
DeviceUpdater |
setCommandsCallbackMethod(String commandsCallbackMethod)
The commands_callback_method.
|
DeviceUpdater |
setCommandsCallbackUrl(String commandsCallbackUrl)
The commands_callback_url.
|
DeviceUpdater |
setCommandsCallbackUrl(URI commandsCallbackUrl)
The commands_callback_url.
|
DeviceUpdater |
setFriendlyName(String friendlyName)
The friendly_name.
|
DeviceUpdater |
setSimIdentifier(String simIdentifier)
The sim_identifier.
|
DeviceUpdater |
setStatus(String status)
The status.
|
public DeviceUpdater(String sid)
sid
- The sidpublic DeviceUpdater setAlias(String alias)
alias
- The aliaspublic DeviceUpdater setCallbackMethod(String callbackMethod)
callbackMethod
- The callback_methodpublic DeviceUpdater setCallbackUrl(URI callbackUrl)
callbackUrl
- The callback_urlpublic DeviceUpdater setCallbackUrl(String callbackUrl)
callbackUrl
- The callback_urlpublic DeviceUpdater setFriendlyName(String friendlyName)
friendlyName
- The friendly_namepublic DeviceUpdater setSimIdentifier(String simIdentifier)
simIdentifier
- The sim_identifierpublic DeviceUpdater setStatus(String status)
status
- The statuspublic DeviceUpdater setCommandsCallbackMethod(String commandsCallbackMethod)
commandsCallbackMethod
- The commands_callback_methodpublic DeviceUpdater setCommandsCallbackUrl(URI commandsCallbackUrl)
commandsCallbackUrl
- The commands_callback_urlpublic DeviceUpdater setCommandsCallbackUrl(String commandsCallbackUrl)
commandsCallbackUrl
- The commands_callback_urlpublic Device execute(TwilioRestClient client)
Copyright © 2011 Twilio, Inc. All Rights Reserved.