Class UserBinding
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.chat.v2.service.user.UserBinding
-
- All Implemented Interfaces:
Serializable
public class UserBinding extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserBinding.BindingType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserBindingDeleterdeleter(String pathServiceSid, String pathUserSid, String pathSid)booleanequals(Object o)static UserBindingFetcherfetcher(String pathServiceSid, String pathUserSid, String pathSid)static UserBindingfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a UserBinding object using the provided ObjectMapper.static UserBindingfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a UserBinding object using the provided ObjectMapper.StringgetAccountSid()UserBinding.BindingTypegetBindingType()StringgetCredentialSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetEndpoint()StringgetIdentity()List<String>getMessageTypes()StringgetServiceSid()StringgetSid()URIgetUrl()StringgetUserSid()inthashCode()static UserBindingReaderreader(String pathServiceSid, String pathUserSid)
-
-
-
Method Detail
-
fetcher
public static UserBindingFetcher fetcher(String pathServiceSid, String pathUserSid, String pathSid)
-
deleter
public static UserBindingDeleter deleter(String pathServiceSid, String pathUserSid, String pathSid)
-
reader
public static UserBindingReader reader(String pathServiceSid, String pathUserSid)
-
fromJson
public static UserBinding fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UserBinding object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- UserBinding object represented by the provided JSON
-
fromJson
public static UserBinding fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UserBinding object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- UserBinding object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getEndpoint
public final String getEndpoint()
-
getIdentity
public final String getIdentity()
-
getUserSid
public final String getUserSid()
-
getCredentialSid
public final String getCredentialSid()
-
getBindingType
public final UserBinding.BindingType getBindingType()
-
getUrl
public final URI getUrl()
-
-