Constructor and Description |
---|
SimUpdater(String pathSid)
Construct a new SimUpdater.
|
Modifier and Type | Method and Description |
---|---|
SimUpdater |
setAccountSid(String accountSid)
The SID of the Account to which the
Sim resource should belong.
|
SimUpdater |
setCallbackMethod(HttpMethod callbackMethod)
The HTTP method we should use to call `callback_url`.
|
SimUpdater |
setCallbackUrl(String callbackUrl)
The URL we should call using the `callback_url` when the SIM has finished
updating.
|
SimUpdater |
setCallbackUrl(URI callbackUrl)
The URL we should call using the `callback_url` when the SIM has finished
updating.
|
SimUpdater |
setCommandsCallbackMethod(HttpMethod commandsCallbackMethod)
The HTTP method we should use to call `commands_callback_url`.
|
SimUpdater |
setCommandsCallbackUrl(String commandsCallbackUrl)
The URL we should call using the `commands_callback_method` when the SIM
sends a Command.
|
SimUpdater |
setCommandsCallbackUrl(URI commandsCallbackUrl)
The URL we should call using the `commands_callback_method` when the SIM
sends a Command.
|
SimUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the Sim resource.
|
SimUpdater |
setRatePlan(String ratePlan)
The SID or unique name of the RatePlan
resource to which the Sim resource should be assigned..
|
SimUpdater |
setResetStatus(Sim.ResetStatus resetStatus)
Initiate a connectivity reset on the SIM.
|
SimUpdater |
setSmsFallbackMethod(HttpMethod smsFallbackMethod)
The HTTP method we should use to call `sms_fallback_url`.
|
SimUpdater |
setSmsFallbackUrl(String smsFallbackUrl)
The URL we should call using the `sms_fallback_method` when an error occurs
while retrieving or executing the TwiML requested from `sms_url`..
|
SimUpdater |
setSmsFallbackUrl(URI smsFallbackUrl)
The URL we should call using the `sms_fallback_method` when an error occurs
while retrieving or executing the TwiML requested from `sms_url`..
|
SimUpdater |
setSmsMethod(HttpMethod smsMethod)
The HTTP method we should use to call `sms_url`.
|
SimUpdater |
setSmsUrl(String smsUrl)
The URL we should call using the `sms_method` when the SIM-connected device
sends an SMS message that is not a Command..
|
SimUpdater |
setSmsUrl(URI smsUrl)
The URL we should call using the `sms_method` when the SIM-connected device
sends an SMS message that is not a Command..
|
SimUpdater |
setStatus(Sim.Status status)
The new status of the Sim resource.
|
SimUpdater |
setUniqueName(String uniqueName)
An application-defined string that uniquely identifies the resource.
|
SimUpdater |
setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
Deprecated..
|
SimUpdater |
setVoiceFallbackUrl(String voiceFallbackUrl)
Deprecated..
|
SimUpdater |
setVoiceFallbackUrl(URI voiceFallbackUrl)
Deprecated..
|
SimUpdater |
setVoiceMethod(HttpMethod voiceMethod)
Deprecated..
|
SimUpdater |
setVoiceUrl(String voiceUrl)
Deprecated..
|
SimUpdater |
setVoiceUrl(URI voiceUrl)
Deprecated..
|
Sim |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public SimUpdater(String pathSid)
pathSid
- The SID of the Sim resource to updatepublic SimUpdater setUniqueName(String uniqueName)
uniqueName
- An application-defined string that uniquely identifies the
resourcepublic SimUpdater setCallbackMethod(HttpMethod callbackMethod)
callbackMethod
- The HTTP method we should use to call callback_urlpublic SimUpdater setCallbackUrl(URI callbackUrl)
callbackUrl
- The URL we should call when the Sim resource has finished
updatingpublic SimUpdater setCallbackUrl(String callbackUrl)
callbackUrl
- The URL we should call when the Sim resource has finished
updatingpublic SimUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the Sim resourcepublic SimUpdater setRatePlan(String ratePlan)
ratePlan
- The SID or unique name of the RatePlan resource to which the
Sim resource should be assignedpublic SimUpdater setStatus(Sim.Status status)
status
- The new status of the Sim resourcepublic SimUpdater setCommandsCallbackMethod(HttpMethod commandsCallbackMethod)
commandsCallbackMethod
- The HTTP method we should use to call
commands_callback_urlpublic SimUpdater setCommandsCallbackUrl(URI commandsCallbackUrl)
commandsCallbackUrl
- The URL we should call when the SIM sends a
Commandpublic SimUpdater setCommandsCallbackUrl(String commandsCallbackUrl)
commandsCallbackUrl
- The URL we should call when the SIM sends a
Commandpublic SimUpdater setSmsFallbackMethod(HttpMethod smsFallbackMethod)
smsFallbackMethod
- The HTTP method we should use to call
sms_fallback_urlpublic SimUpdater setSmsFallbackUrl(URI smsFallbackUrl)
smsFallbackUrl
- The URL we should call when an error occurs while
retrieving or executing the TwiML requested from
sms_urlpublic SimUpdater setSmsFallbackUrl(String smsFallbackUrl)
smsFallbackUrl
- The URL we should call when an error occurs while
retrieving or executing the TwiML requested from
sms_urlpublic SimUpdater setSmsMethod(HttpMethod smsMethod)
smsMethod
- The HTTP method we should use to call sms_urlpublic SimUpdater setSmsUrl(URI smsUrl)
smsUrl
- The URL we should call when the SIM-connected device sends an
SMS message that is not a Commandpublic SimUpdater setSmsUrl(String smsUrl)
smsUrl
- The URL we should call when the SIM-connected device sends an
SMS message that is not a Commandpublic SimUpdater setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
voiceFallbackMethod
- Deprecatedpublic SimUpdater setVoiceFallbackUrl(URI voiceFallbackUrl)
voiceFallbackUrl
- Deprecatedpublic SimUpdater setVoiceFallbackUrl(String voiceFallbackUrl)
voiceFallbackUrl
- Deprecatedpublic SimUpdater setVoiceMethod(HttpMethod voiceMethod)
voiceMethod
- Deprecatedpublic SimUpdater setVoiceUrl(URI voiceUrl)
voiceUrl
- Deprecatedpublic SimUpdater setVoiceUrl(String voiceUrl)
voiceUrl
- Deprecatedpublic SimUpdater setResetStatus(Sim.ResetStatus resetStatus)
resetStatus
- Initiate a connectivity reset on a SIMpublic SimUpdater setAccountSid(String accountSid)
accountSid
- The SID of the Account to which the Sim resource should
belongpublic Sim update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.