Package com.twilio.rest.conversations.v1
Class User
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.conversations.v1.User
-
- All Implemented Interfaces:
Serializable
public class User extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUser.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserCreatorcreator(String identity)static UserDeleterdeleter(String pathSid)booleanequals(Object o)static UserFetcherfetcher(String pathSid)static UserfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a User object using the provided ObjectMapper.static UserfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a User object using the provided ObjectMapper.StringgetAccountSid()StringgetAttributes()StringgetChatServiceSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()StringgetIdentity()BooleangetIsNotifiable()BooleangetIsOnline()Map<String,String>getLinks()StringgetRoleSid()StringgetSid()URIgetUrl()inthashCode()static UserReaderreader()static UserUpdaterupdater(String pathSid)
-
-
-
Method Detail
-
creator
public static UserCreator creator(String identity)
-
fetcher
public static UserFetcher fetcher(String pathSid)
-
deleter
public static UserDeleter deleter(String pathSid)
-
reader
public static UserReader reader()
-
updater
public static UserUpdater updater(String pathSid)
-
fromJson
public static User fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a User object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- User object represented by the provided JSON
-
fromJson
public static User fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a User object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- User object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getChatServiceSid
public final String getChatServiceSid()
-
getRoleSid
public final String getRoleSid()
-
getIdentity
public final String getIdentity()
-
getFriendlyName
public final String getFriendlyName()
-
getAttributes
public final String getAttributes()
-
getIsOnline
public final Boolean getIsOnline()
-
getIsNotifiable
public final Boolean getIsNotifiable()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-