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