Class OriginationUrl
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.trunking.v1.trunk.OriginationUrl
-
- All Implemented Interfaces:
Serializable
public class OriginationUrl extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OriginationUrlCreator
creator(String pathTrunkSid, Integer weight, Integer priority, Boolean enabled, String friendlyName, URI sipUrl)
Create a OriginationUrlCreator to execute create.static OriginationUrlDeleter
deleter(String pathTrunkSid, String pathSid)
Create a OriginationUrlDeleter to execute delete.boolean
equals(Object o)
static OriginationUrlFetcher
fetcher(String pathTrunkSid, String pathSid)
Create a OriginationUrlFetcher to execute fetch.static OriginationUrl
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a OriginationUrl object using the provided ObjectMapper.static OriginationUrl
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a OriginationUrl object using the provided ObjectMapper.String
getAccountSid()
Returns The The SID of the Account that created the resource.org.joda.time.DateTime
getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.org.joda.time.DateTime
getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.Boolean
getEnabled()
Returns The Whether the URL is enabled.String
getFriendlyName()
Returns The The string that you assigned to describe the resource.Integer
getPriority()
Returns The The relative importance of the URI.String
getSid()
Returns The The unique string that identifies the resource.URI
getSipUrl()
Returns The The SIP address you want Twilio to route your Origination calls to.String
getTrunkSid()
Returns The The SID of the Trunk that owns the Origination URL.URI
getUrl()
Returns The The absolute URL of the resource.Integer
getWeight()
Returns The The value that determines the relative load the URI should receive compared to others with the same priority.int
hashCode()
static OriginationUrlReader
reader(String pathTrunkSid)
Create a OriginationUrlReader to execute read.String
toString()
static OriginationUrlUpdater
updater(String pathTrunkSid, String pathSid)
Create a OriginationUrlUpdater to execute update.
-
-
-
Method Detail
-
fetcher
public static OriginationUrlFetcher fetcher(String pathTrunkSid, String pathSid)
Create a OriginationUrlFetcher to execute fetch.- Parameters:
pathTrunkSid
- The SID of the Trunk from which to fetch the OriginationUrlpathSid
- The unique string that identifies the resource- Returns:
- OriginationUrlFetcher capable of executing the fetch
-
deleter
public static OriginationUrlDeleter deleter(String pathTrunkSid, String pathSid)
Create a OriginationUrlDeleter to execute delete.- Parameters:
pathTrunkSid
- The SID of the Trunk from which to delete the OriginationUrlpathSid
- The unique string that identifies the resource- Returns:
- OriginationUrlDeleter capable of executing the delete
-
creator
public static OriginationUrlCreator creator(String pathTrunkSid, Integer weight, Integer priority, Boolean enabled, String friendlyName, URI sipUrl)
Create a OriginationUrlCreator to execute create.- Parameters:
pathTrunkSid
- The SID of the Trunk to associate the resource withweight
- The value that determines the relative load the URI should receive compared to others with the same prioritypriority
- The relative importance of the URIenabled
- Whether the URL is enabledfriendlyName
- A string to describe the resourcesipUrl
- The SIP address you want Twilio to route your Origination calls to- Returns:
- OriginationUrlCreator capable of executing the create
-
reader
public static OriginationUrlReader reader(String pathTrunkSid)
Create a OriginationUrlReader to execute read.- Parameters:
pathTrunkSid
- The SID of the Trunk from which to read the OriginationUrl- Returns:
- OriginationUrlReader capable of executing the read
-
updater
public static OriginationUrlUpdater updater(String pathTrunkSid, String pathSid)
Create a OriginationUrlUpdater to execute update.- Parameters:
pathTrunkSid
- The SID of the Trunk from which to update the OriginationUrlpathSid
- The unique string that identifies the resource- Returns:
- OriginationUrlUpdater capable of executing the update
-
fromJson
public static OriginationUrl fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a OriginationUrl object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- OriginationUrl object represented by the provided JSON
-
fromJson
public static OriginationUrl fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a OriginationUrl object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- OriginationUrl object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The SID of the Account that created the resource.- Returns:
- The SID of the Account that created the resource
-
getSid
public final String getSid()
Returns The The unique string that identifies the resource.- Returns:
- The unique string that identifies the resource
-
getTrunkSid
public final String getTrunkSid()
Returns The The SID of the Trunk that owns the Origination URL.- Returns:
- The SID of the Trunk that owns the Origination URL
-
getWeight
public final Integer getWeight()
Returns The The value that determines the relative load the URI should receive compared to others with the same priority.- Returns:
- The value that determines the relative load the URI should receive compared to others with the same priority
-
getEnabled
public final Boolean getEnabled()
Returns The Whether the URL is enabled.- Returns:
- Whether the URL is enabled
-
getSipUrl
public final URI getSipUrl()
Returns The The SIP address you want Twilio to route your Origination calls to.- Returns:
- The SIP address you want Twilio to route your Origination calls to
-
getFriendlyName
public final String getFriendlyName()
Returns The The string that you assigned to describe the resource.- Returns:
- The string that you assigned to describe the resource
-
getPriority
public final Integer getPriority()
Returns The The relative importance of the URI.- Returns:
- The relative importance of the URI
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The RFC 2822 date and time in GMT when the resource was created.- Returns:
- The RFC 2822 date and time in GMT when the resource was created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The RFC 2822 date and time in GMT when the resource was last updated.- Returns:
- The RFC 2822 date and time in GMT when the resource was last updated
-
getUrl
public final URI getUrl()
Returns The The absolute URL of the resource.- Returns:
- The absolute URL of the resource
-
-