Constructor and Description |
---|
DomainUpdater(String pathSid)
Construct a new DomainUpdater.
|
DomainUpdater(String pathAccountSid,
String pathSid)
Construct a new DomainUpdater.
|
Modifier and Type | Method and Description |
---|---|
DomainUpdater |
setByocTrunkSid(String byocTrunkSid)
The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip
Domain will be associated with..
|
DomainUpdater |
setDomainName(String domainName)
The unique address you reserve on Twilio to which you route your SIP traffic.
|
DomainUpdater |
setEmergencyCallerSid(String emergencyCallerSid)
Whether an emergency caller sid is configured for the domain.
|
DomainUpdater |
setEmergencyCallingEnabled(Boolean emergencyCallingEnabled)
Whether emergency calling is enabled for the domain.
|
DomainUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you created to describe the resource.
|
DomainUpdater |
setSecure(Boolean secure)
Whether secure SIP is enabled for the domain.
|
DomainUpdater |
setSipRegistration(Boolean sipRegistration)
Whether to allow SIP Endpoints to register with the domain to receive calls.
|
DomainUpdater |
setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
The HTTP method we should use to call `voice_fallback_url`.
|
DomainUpdater |
setVoiceFallbackUrl(String voiceFallbackUrl)
The URL that we should call when an error occurs while retrieving or
executing the TwiML requested by `voice_url`..
|
DomainUpdater |
setVoiceFallbackUrl(URI voiceFallbackUrl)
The URL that we should call when an error occurs while retrieving or
executing the TwiML requested by `voice_url`..
|
DomainUpdater |
setVoiceMethod(HttpMethod voiceMethod)
The HTTP method we should use to call `voice_url`.
|
DomainUpdater |
setVoiceStatusCallbackMethod(HttpMethod voiceStatusCallbackMethod)
The HTTP method we should use to call `voice_status_callback_url`.
|
DomainUpdater |
setVoiceStatusCallbackUrl(String voiceStatusCallbackUrl)
The URL that we should call to pass status parameters (such as call ended) to
your application..
|
DomainUpdater |
setVoiceStatusCallbackUrl(URI voiceStatusCallbackUrl)
The URL that we should call to pass status parameters (such as call ended) to
your application..
|
DomainUpdater |
setVoiceUrl(String voiceUrl)
The URL we should call when the domain receives a call..
|
DomainUpdater |
setVoiceUrl(URI voiceUrl)
The URL we should call when the domain receives a call..
|
Domain |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public DomainUpdater(String pathSid)
pathSid
- The unique string that identifies the resourcepublic DomainUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the resourcepublic DomainUpdater setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
voiceFallbackMethod
- The HTTP method used with voice_fallback_urlpublic DomainUpdater setVoiceFallbackUrl(URI voiceFallbackUrl)
voiceFallbackUrl
- The URL we should call when an error occurs in
executing TwiMLpublic DomainUpdater setVoiceFallbackUrl(String voiceFallbackUrl)
voiceFallbackUrl
- The URL we should call when an error occurs in
executing TwiMLpublic DomainUpdater setVoiceMethod(HttpMethod voiceMethod)
voiceMethod
- The HTTP method we should use with voice_urlpublic DomainUpdater setVoiceStatusCallbackMethod(HttpMethod voiceStatusCallbackMethod)
voiceStatusCallbackMethod
- The HTTP method we should use to call
voice_status_callback_urlpublic DomainUpdater setVoiceStatusCallbackUrl(URI voiceStatusCallbackUrl)
voiceStatusCallbackUrl
- The URL that we should call to pass status
updatespublic DomainUpdater setVoiceStatusCallbackUrl(String voiceStatusCallbackUrl)
voiceStatusCallbackUrl
- The URL that we should call to pass status
updatespublic DomainUpdater setVoiceUrl(URI voiceUrl)
voiceUrl
- The URL we should call when receiving a callpublic DomainUpdater setVoiceUrl(String voiceUrl)
voiceUrl
- The URL we should call when receiving a callpublic DomainUpdater setSipRegistration(Boolean sipRegistration)
sipRegistration
- Whether SIP registration is allowedpublic DomainUpdater setDomainName(String domainName)
domainName
- The unique address on Twilio to route SIP trafficpublic DomainUpdater setEmergencyCallingEnabled(Boolean emergencyCallingEnabled)
emergencyCallingEnabled
- Whether emergency calling is enabled for the
domain.public DomainUpdater setSecure(Boolean secure)
secure
- Whether secure SIP is enabled for the domainpublic DomainUpdater setByocTrunkSid(String byocTrunkSid)
byocTrunkSid
- The SID of the BYOC Trunk resource.public DomainUpdater setEmergencyCallerSid(String emergencyCallerSid)
emergencyCallerSid
- Whether an emergency caller sid is configured for
the domain.public Domain update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.