public class User extends Resource
Modifier and Type | Method and Description |
---|---|
static UserCreator |
creator(String pathServiceSid,
String identity)
Create a UserCreator to execute create.
|
static UserDeleter |
deleter(String pathServiceSid,
String pathSid)
Create a UserDeleter to execute delete.
|
boolean |
equals(Object o) |
static UserFetcher |
fetcher(String pathServiceSid,
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 string that stores application-specific data.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 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 the Service instance.
|
Boolean |
getIsOnline()
Returns Whether the User is actively connected to the Service instance and
online.
|
Integer |
getJoinedChannelsCount()
Returns The number of Channels this User is a Member of.
|
Map<String,String> |
getLinks()
Returns The absolute URLs of the Channel and Binding resources related to the
user.
|
String |
getRoleSid()
Returns The SID of the assigned to the user.
|
String |
getServiceSid()
Returns The SID of the Service that the resource is associated with.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
URI |
getUrl()
Returns The absolute URL of the User resource.
|
int |
hashCode() |
static UserReader |
reader(String pathServiceSid)
Create a UserReader to execute read.
|
static UserUpdater |
updater(String pathServiceSid,
String pathSid)
Create a UserUpdater to execute update.
|
public static UserFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to fetch the resource frompathSid
- The unique string that identifies the resourcepublic static UserDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to delete the resource frompathSid
- The unique string that identifies the resourcepublic static UserCreator creator(String pathServiceSid, String identity)
pathServiceSid
- The SID of the Service to create the new resource underidentity
- The `identity` value that identifies the new resource's Userpublic static UserReader reader(String pathServiceSid)
pathServiceSid
- The SID of the Service to read the resources frompublic static UserUpdater updater(String pathServiceSid, String pathSid)
pathServiceSid
- The SID of the Service to update the resource frompathSid
- The unique string that identifies the resourcepublic 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 getServiceSid()
public final String getAttributes()
public final String getFriendlyName()
public final String getRoleSid()
public final String getIdentity()
public final Boolean getIsOnline()
public final Boolean getIsNotifiable()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final Integer getJoinedChannelsCount()
public final Map<String,String> getLinks()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.