Constructor and Description |
---|
ByocTrunkUpdater(String pathSid)
Construct a new ByocTrunkUpdater.
|
Modifier and Type | Method and Description |
---|---|
ByocTrunkUpdater |
setCnamLookupEnabled(Boolean cnamLookupEnabled)
Whether Caller ID Name (CNAM) lookup is enabled for the trunk.
|
ByocTrunkUpdater |
setConnectionPolicySid(String connectionPolicySid)
The SID of the Connection Policy that Twilio will use when routing traffic to
your communications infrastructure..
|
ByocTrunkUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the resource.
|
ByocTrunkUpdater |
setFromDomainSid(String fromDomainSid)
The SID of the SIP Domain that should be used in the `From` header of
originating calls sent to your SIP infrastructure.
|
ByocTrunkUpdater |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method we should use to call `status_callback_url`.
|
ByocTrunkUpdater |
setStatusCallbackUrl(String statusCallbackUrl)
The URL that we should call to pass status parameters (such as call ended) to
your application..
|
ByocTrunkUpdater |
setStatusCallbackUrl(URI statusCallbackUrl)
The URL that we should call to pass status parameters (such as call ended) to
your application..
|
ByocTrunkUpdater |
setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
The HTTP method we should use to call `voice_fallback_url`.
|
ByocTrunkUpdater |
setVoiceFallbackUrl(String voiceFallbackUrl)
The URL that we should call when an error occurs while retrieving or
executing the TwiML requested by `voice_url`..
|
ByocTrunkUpdater |
setVoiceFallbackUrl(URI voiceFallbackUrl)
The URL that we should call when an error occurs while retrieving or
executing the TwiML requested by `voice_url`..
|
ByocTrunkUpdater |
setVoiceMethod(HttpMethod voiceMethod)
The HTTP method we should use to call `voice_url`.
|
ByocTrunkUpdater |
setVoiceUrl(String voiceUrl)
The URL we should call when the BYOC Trunk receives a call..
|
ByocTrunkUpdater |
setVoiceUrl(URI voiceUrl)
The URL we should call when the BYOC Trunk receives a call..
|
ByocTrunk |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public ByocTrunkUpdater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic ByocTrunkUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the resourcepublic ByocTrunkUpdater setVoiceUrl(URI voiceUrl)
voiceUrl
- The URL we should call when receiving a callpublic ByocTrunkUpdater setVoiceUrl(String voiceUrl)
voiceUrl
- The URL we should call when receiving a callpublic ByocTrunkUpdater setVoiceMethod(HttpMethod voiceMethod)
voiceMethod
- The HTTP method we should use with voice_urlpublic ByocTrunkUpdater setVoiceFallbackUrl(URI voiceFallbackUrl)
voiceFallbackUrl
- The URL we should call when an error occurs in
executing TwiMLpublic ByocTrunkUpdater setVoiceFallbackUrl(String voiceFallbackUrl)
voiceFallbackUrl
- The URL we should call when an error occurs in
executing TwiMLpublic ByocTrunkUpdater setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
voiceFallbackMethod
- The HTTP method used with voice_fallback_urlpublic ByocTrunkUpdater setStatusCallbackUrl(URI statusCallbackUrl)
statusCallbackUrl
- The URL that we should call to pass status updatespublic ByocTrunkUpdater setStatusCallbackUrl(String statusCallbackUrl)
statusCallbackUrl
- The URL that we should call to pass status updatespublic ByocTrunkUpdater setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod
- The HTTP method we should use to call
status_callback_urlpublic ByocTrunkUpdater setCnamLookupEnabled(Boolean cnamLookupEnabled)
cnamLookupEnabled
- Whether Caller ID Name (CNAM) lookup is enabled for
the trunkpublic ByocTrunkUpdater setConnectionPolicySid(String connectionPolicySid)
connectionPolicySid
- Origination Connection Policy (to your Carrier)public ByocTrunkUpdater setFromDomainSid(String fromDomainSid)
fromDomainSid
- The SID of the SIP Domain that should be used in the
`From` header of originating callspublic ByocTrunk update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.