public class TrunkList extends NextGenListResource<Trunk,TwilioTrunkingClient> implements ResourceFactory<Trunk>
| Constructor and Description |
|---|
TrunkList(TwilioTrunkingClient client)
Initialize a trunk list
|
TrunkList(TwilioTrunkingClient client,
Map<String,String> filters)
Initializes an Trunk list
|
| Modifier and Type | Method and Description |
|---|---|
Trunk |
create(List<org.apache.http.NameValuePair> params)
Create a new trunk
|
Trunk |
create(Map<String,String> params)
Create a new trunk
|
boolean |
delete()
Delete the trunk
|
getNextPageUrl, getPage, getPageData, getPageSize, getPreviousPageUrl, getUrl, iteratorsetRequestAccountSidequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic TrunkList(TwilioTrunkingClient client)
client - A TwilioTrunkingclientpublic TrunkList(TwilioTrunkingClient client, Map<String,String> filters)
client - A TwilioTrunkingClientfilters - The filters for this querypublic Trunk create(Map<String,String> params) throws TwilioRestException
create in interface ResourceFactory<Trunk>params - The trunk parametersTwilioRestExceptionpublic Trunk create(List<org.apache.http.NameValuePair> params) throws TwilioRestException
create in interface ResourceFactory<Trunk>params - The trunk parametersTwilioRestExceptionpublic boolean delete()
throws TwilioRestException
TwilioRestExceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.