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