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 account_sid.
|
String |
getAttributes()
Returns The attributes.
|
ZonedDateTime |
getDateCreated()
Returns The date_created.
|
ZonedDateTime |
getDateUpdated()
Returns The date_updated.
|
String |
getFriendlyName()
Returns The friendly_name.
|
String |
getIdentity()
Returns The identity.
|
Boolean |
getIsNotifiable()
Returns The is_notifiable.
|
Boolean |
getIsOnline()
Returns The is_online.
|
Integer |
getJoinedChannelsCount()
Returns The joined_channels_count.
|
Map<String,String> |
getLinks()
Returns The links.
|
String |
getRoleSid()
Returns The role_sid.
|
String |
getServiceSid()
Returns The service_sid.
|
String |
getSid()
Returns The sid.
|
URI |
getUrl()
Returns The url.
|
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 service_sidpathSid
- The sidpublic static UserDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- The service_sidpathSid
- The sidpublic static UserCreator creator(String pathServiceSid, String identity)
pathServiceSid
- The service_sididentity
- The identitypublic static UserReader reader(String pathServiceSid)
pathServiceSid
- The service_sidpublic static UserUpdater updater(String pathServiceSid, String pathSid)
pathServiceSid
- The service_sidpathSid
- The sidpublic 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 URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.