public class Trunk extends NextGenInstanceResource<TwilioTrunkingClient>
| Modifier and Type | Class and Description |
|---|---|
class |
Trunk.Recording
The recording settings for this trunk.
|
| Constructor and Description |
|---|
Trunk(TwilioTrunkingClient client,
Map<String,Object> properties)
Initialize a Trunk with properties
|
Trunk(TwilioTrunkingClient client,
String sid)
Initialize a Trunk
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountSid()
The unique ID of the Account that owns this Trunk.
|
String |
getAuthType()
The types of authentication you have mapped to your domain.
|
List<String> |
getAuthTypeSet()
The types of authentication you have mapped to your domain.
|
CredentialList |
getCredentialList(String credentialListSid)
Initialize a single credential list
|
CredentialListList |
getCredentialLists()
Initialize credential lists without a filter
|
CredentialListList |
getCredentialLists(Map<String,String> filters)
Initialize credential lists with a filter
|
Calendar |
getDateCreated()
The date this Trunk was created.
|
Calendar |
getDateUpdated()
The date this Trunk was updated.
|
String |
getDisasterRecoveryMethod()
The HTTP method Twilio will use when requesting the DisasterRecoveryUrl.
|
String |
getDisasterRecoveryUrl()
The HTTP URL that Twilio will request if an error occurs while sending SIP
traffic towards your configured Origination URL.
|
String |
getDomainName()
The unique address you reserve on Twilio to which you route your SIP traffic.
|
String |
getFriendlyName()
A human-readable name for the Trunk.
|
IpAccessControlList |
getIpAccessControlList(String ipAccessControlListSid)
Initialize a single ip access control list
|
IpAccessControlListList |
getIpAccessControlLists()
Initialize an ip access control lists without a filter
|
IpAccessControlListList |
getIpAccessControlLists(Map<String,String> filters)
Initialize an ip access control lists with a filter
|
OriginationUrl |
getOriginationUrl(String originationUrlSid)
Initialize a single origination url
|
OriginationUrlList |
getOriginationUrls()
Initialize origination urls without a filter
|
OriginationUrlList |
getOriginationUrls(Map<String,String> filters)
Initialize origination urls with a filter
|
PhoneNumber |
getPhoneNumber(String phoneNumberSid)
Initialize a query for a single phone number
|
PhoneNumberList |
getPhoneNumbers()
Initialize phone numbers query
|
PhoneNumberList |
getPhoneNumbers(Map<String,String> filters)
Initialize phone numbers query with filters
|
Trunk.Recording |
getRecording()
The recording settings for this trunk.
|
String |
getSid()
A 34 character string that uniquely identifies the SIP Trunk in Twilio.
|
String |
getUrl()
The absolute URL for this resource
|
Boolean |
isSecure()
The Secure Trunking settings for this trunk.
|
getCastedObject, getObject, getProperty, getPropertyAsInteger, toJSON, update, updatesetRequestAccountSidpublic Trunk(TwilioTrunkingClient client, String sid)
client - A TwilioTrunkingclientpublic Trunk(TwilioTrunkingClient client, Map<String,Object> properties)
client - A TwilioTrunkingclientproperties - The data associated with a Trunkpublic OriginationUrlList getOriginationUrls()
public OriginationUrlList getOriginationUrls(Map<String,String> filters)
filters - The filters to applypublic OriginationUrl getOriginationUrl(String originationUrlSid)
originationUrlSid - The origination url sidpublic CredentialListList getCredentialLists(Map<String,String> filters)
filters - The filters to applypublic CredentialListList getCredentialLists()
public CredentialList getCredentialList(String credentialListSid)
credentialListSid - The credential list sidpublic IpAccessControlListList getIpAccessControlLists(Map<String,String> filters)
filters - The filters to applypublic IpAccessControlListList getIpAccessControlLists()
public IpAccessControlList getIpAccessControlList(String ipAccessControlListSid)
ipAccessControlListSid - The IpAccessControlList sidpublic PhoneNumberList getPhoneNumbers()
public PhoneNumberList getPhoneNumbers(Map<String,String> filters)
filters - The filters to applypublic PhoneNumber getPhoneNumber(String phoneNumberSid)
phoneNumberSid - The phone number sidpublic String getSid()
public String getAccountSid()
public String getDomainName()
public String getDisasterRecoveryMethod()
public String getDisasterRecoveryUrl()
public String getFriendlyName()
public Boolean isSecure()
public Trunk.Recording getRecording()
public String getAuthType()
public List<String> getAuthTypeSet()
public Calendar getDateCreated()
public Calendar getDateUpdated()
public String getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.