public class OriginationUrl extends NextGenInstanceResource<TwilioTrunkingClient>
| Constructor and Description |
|---|
OriginationUrl(TwilioTrunkingClient client,
Map<String,Object> properties)
Initialize origination url
|
OriginationUrl(TwilioTrunkingClient client,
String trunkSid,
String sid)
Initialize origination url
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Delete the origination url
|
String |
getAccountSid()
The unique ID of the Account that owns this Origination URL.
|
Calendar |
getDateCreated()
The date this Origination Url was created.
|
Calendar |
getDateUpdated()
The date this Origination Url was updated.
|
String |
getFriendlyName()
A human readable descriptive text, up to 64 characters long.
|
Integer |
getPriority()
Priority ranks the importance of the URI.
|
String |
getSid()
A 34 character string that uniquely identifies the Origination URL in this Twilio Trunk.
|
String |
getSipUrl()
The SIP address you want Twilio to route your Origination calls to.
|
String |
getTrunkSid()
The unique ID of the Trunk that owns this Origination URL.
|
String |
getUrl()
The absolute URL for this resource
|
Integer |
getWeight()
Weight is used to determine the share of load when more than one URI has
the same priority.
|
Boolean |
isEnabled()
A boolean value indicating whether the URL is enabled or disabled.
|
getCastedObject, getObject, getProperty, getPropertyAsInteger, toJSON, update, updatesetRequestAccountSidpublic OriginationUrl(TwilioTrunkingClient client, String trunkSid, String sid)
client - A TwilioTrunkingclienttrunkSid - The trunk sidsid - The sid for this origination urlpublic OriginationUrl(TwilioTrunkingClient client, Map<String,Object> properties)
client - A TwilioTrunkingClientproperties - The data for this origination urlpublic String getSid()
public String getAccountSid()
public String getTrunkSid()
public String getFriendlyName()
public String getSipUrl()
public Integer getPriority()
public Integer getWeight()
public Boolean isEnabled()
public Calendar getDateCreated()
public Calendar getDateUpdated()
public String getUrl()
public boolean delete()
throws TwilioRestException
TwilioRestExceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.