public class User extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
User.WebhookEnabledType |
Modifier and Type | Method and Description |
---|---|
static UserCreator |
creator(String identity)
Create a UserCreator to execute create.
|
static UserDeleter |
deleter(String pathSid)
Create a UserDeleter to execute delete.
|
boolean |
equals(Object o) |
static UserFetcher |
fetcher(String pathSid)
Create a UserFetcher to execute fetch.
|
static User |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a User object using the provided
ObjectMapper.
|
static User |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a User object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getAttributes()
Returns The JSON Object string that stores application-specific data.
|
String |
getChatServiceSid()
Returns The SID of the Conversation Service that the resource is associated
with.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the resource.
|
String |
getIdentity()
Returns The string that identifies the resource's User.
|
Boolean |
getIsNotifiable()
Returns Whether the User has a potentially valid Push Notification
registration for this Conversations Service.
|
Boolean |
getIsOnline()
Returns Whether the User is actively connected to this Conversations Service
and online.
|
Map<String,String> |
getLinks()
Returns The links.
|
String |
getRoleSid()
Returns The SID of a service-level Role assigned to the user.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
URI |
getUrl()
Returns An absolute URL for this user..
|
int |
hashCode() |
static UserReader |
reader()
Create a UserReader to execute read.
|
static UserUpdater |
updater(String pathSid)
Create a UserUpdater to execute update.
|
public static UserCreator creator(String identity)
identity
- The string that identifies the resource's Userpublic static UserUpdater updater(String pathSid)
pathSid
- The SID of the User resource to updatepublic static UserDeleter deleter(String pathSid)
pathSid
- The SID of the User resource to deletepublic static UserFetcher fetcher(String pathSid)
pathSid
- The SID of the User resource to fetchpublic static UserReader reader()
public static User fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static User fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getChatServiceSid()
public final String getRoleSid()
public final String getIdentity()
public final String getFriendlyName()
public final String getAttributes()
public final Boolean getIsOnline()
public final Boolean getIsNotifiable()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.