Constructor and Description |
---|
ServiceUpdater(String pathSid)
Construct a new ServiceUpdater.
|
Modifier and Type | Method and Description |
---|---|
ServiceUpdater |
setCodeLength(Integer codeLength)
The length of the verification code to generate.
|
ServiceUpdater |
setCustomCodeEnabled(Boolean customCodeEnabled)
Whether to allow sending verifications with a custom code instead of a
randomly generated one.
|
ServiceUpdater |
setDefaultTemplateSid(String defaultTemplateSid)
The default message template.
|
ServiceUpdater |
setDoNotShareWarningEnabled(Boolean doNotShareWarningEnabled)
Whether to add a privacy warning at the end of an SMS.
|
ServiceUpdater |
setDtmfInputRequired(Boolean dtmfInputRequired)
Whether to ask the user to press a number before delivering the verify code
in a phone call..
|
ServiceUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the verification service.
|
ServiceUpdater |
setLookupEnabled(Boolean lookupEnabled)
Whether to perform a lookup with each verification started and return info
about the phone number..
|
ServiceUpdater |
setPsd2Enabled(Boolean psd2Enabled)
Whether to pass PSD2 transaction parameters when starting a verification..
|
ServiceUpdater |
setPushApnCredentialSid(String pushApnCredentialSid)
Optional configuration for the Push factors.
|
ServiceUpdater |
setPushFcmCredentialSid(String pushFcmCredentialSid)
Optional configuration for the Push factors.
|
ServiceUpdater |
setPushIncludeDate(Boolean pushIncludeDate)
Optional configuration for the Push factors.
|
ServiceUpdater |
setSkipSmsToLandlines(Boolean skipSmsToLandlines)
Whether to skip sending SMS verifications to landlines.
|
ServiceUpdater |
setTotpCodeLength(Integer totpCodeLength)
Optional configuration for the TOTP factors.
|
ServiceUpdater |
setTotpIssuer(String totpIssuer)
Optional configuration for the TOTP factors.
|
ServiceUpdater |
setTotpSkew(Integer totpSkew)
Optional configuration for the TOTP factors.
|
ServiceUpdater |
setTotpTimeStep(Integer totpTimeStep)
Optional configuration for the TOTP factors.
|
ServiceUpdater |
setTtsName(String ttsName)
The name of an alternative text-to-speech service to use in phone calls.
|
Service |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public ServiceUpdater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic ServiceUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the verification servicepublic ServiceUpdater setCodeLength(Integer codeLength)
codeLength
- The length of the verification code to generatepublic ServiceUpdater setLookupEnabled(Boolean lookupEnabled)
lookupEnabled
- Whether to perform a lookup with each verificationpublic ServiceUpdater setSkipSmsToLandlines(Boolean skipSmsToLandlines)
skipSmsToLandlines
- Whether to skip sending SMS verifications to
landlinespublic ServiceUpdater setDtmfInputRequired(Boolean dtmfInputRequired)
dtmfInputRequired
- Whether to ask the user to press a number before
delivering the verify code in a phone callpublic ServiceUpdater setTtsName(String ttsName)
ttsName
- The name of an alternative text-to-speech service to use in
phone callspublic ServiceUpdater setPsd2Enabled(Boolean psd2Enabled)
psd2Enabled
- Whether to pass PSD2 transaction parameters when starting
a verificationpublic ServiceUpdater setDoNotShareWarningEnabled(Boolean doNotShareWarningEnabled)
doNotShareWarningEnabled
- Whether to add a privacy warning at the end
of an SMS.public ServiceUpdater setCustomCodeEnabled(Boolean customCodeEnabled)
customCodeEnabled
- Whether to allow sending verifications with a
custom code.public ServiceUpdater setPushIncludeDate(Boolean pushIncludeDate)
pushIncludeDate
- Optional. Include the date in the Challenge's
reponse. Default: truepublic ServiceUpdater setPushApnCredentialSid(String pushApnCredentialSid)
pushApnCredentialSid
- Optional. Set APN Credential for this service.public ServiceUpdater setPushFcmCredentialSid(String pushFcmCredentialSid)
pushFcmCredentialSid
- Optional. Set FCM Credential for this service.public ServiceUpdater setTotpIssuer(String totpIssuer)
totpIssuer
- Optional. Set TOTP Issuer for this service.public ServiceUpdater setTotpTimeStep(Integer totpTimeStep)
totpTimeStep
- Optional. How often, in seconds, are TOTP codes generatedpublic ServiceUpdater setTotpCodeLength(Integer totpCodeLength)
totpCodeLength
- Optional. Number of digits for generated TOTP codespublic ServiceUpdater setTotpSkew(Integer totpSkew)
totpSkew
- Optional. The number of past and future time-steps valid at
a given timepublic ServiceUpdater setDefaultTemplateSid(String defaultTemplateSid)
defaultTemplateSid
- The verification template SMS messages.public Service update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.