Package com.twilio.rest.voice.v1
Class ConnectionPolicy
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.voice.v1.ConnectionPolicy
-
- All Implemented Interfaces:
Serializable
public class ConnectionPolicy extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionPolicyCreator
creator()
static ConnectionPolicyDeleter
deleter(String pathSid)
boolean
equals(Object o)
static ConnectionPolicyFetcher
fetcher(String pathSid)
static ConnectionPolicy
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a ConnectionPolicy object using the provided ObjectMapper.static ConnectionPolicy
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a ConnectionPolicy object using the provided ObjectMapper.String
getAccountSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
Map<String,String>
getLinks()
String
getSid()
URI
getUrl()
int
hashCode()
static ConnectionPolicyReader
reader()
static ConnectionPolicyUpdater
updater(String pathSid)
-
-
-
Method Detail
-
creator
public static ConnectionPolicyCreator creator()
-
deleter
public static ConnectionPolicyDeleter deleter(String pathSid)
-
fetcher
public static ConnectionPolicyFetcher fetcher(String pathSid)
-
reader
public static ConnectionPolicyReader reader()
-
updater
public static ConnectionPolicyUpdater updater(String pathSid)
-
fromJson
public static ConnectionPolicy fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a ConnectionPolicy object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- ConnectionPolicy object represented by the provided JSON
-
fromJson
public static ConnectionPolicy fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a ConnectionPolicy object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- ConnectionPolicy object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getSid
public final String getSid()
-
getFriendlyName
public final String getFriendlyName()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-