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)
static OriginationUrlDeleter
deleter(String pathTrunkSid, String pathSid)
boolean
equals(Object o)
static OriginationUrlFetcher
fetcher(String pathTrunkSid, String pathSid)
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()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
Boolean
getEnabled()
String
getFriendlyName()
Integer
getPriority()
String
getSid()
URI
getSipUrl()
String
getTrunkSid()
URI
getUrl()
Integer
getWeight()
int
hashCode()
static OriginationUrlReader
reader(String pathTrunkSid)
static OriginationUrlUpdater
updater(String pathTrunkSid, String pathSid)
-
-
-
Method Detail
-
creator
public static OriginationUrlCreator creator(String pathTrunkSid, Integer weight, Integer priority, Boolean enabled, String friendlyName, URI sipUrl)
-
deleter
public static OriginationUrlDeleter deleter(String pathTrunkSid, String pathSid)
-
fetcher
public static OriginationUrlFetcher fetcher(String pathTrunkSid, String pathSid)
-
reader
public static OriginationUrlReader reader(String pathTrunkSid)
-
updater
public static OriginationUrlUpdater updater(String pathTrunkSid, String pathSid)
-
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()
-
getSid
public final String getSid()
-
getTrunkSid
public final String getTrunkSid()
-
getWeight
public final Integer getWeight()
-
getEnabled
public final Boolean getEnabled()
-
getSipUrl
public final URI getSipUrl()
-
getFriendlyName
public final String getFriendlyName()
-
getPriority
public final Integer getPriority()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-