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 The account_sid.
|
String |
getAttributes()
Returns The The attributes.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
String |
getIdentity()
Returns The The identity.
|
Boolean |
getIsNotifiable()
Returns The The is_notifiable.
|
Boolean |
getIsOnline()
Returns The The is_online.
|
Integer |
getJoinedChannelsCount()
Returns The The joined_channels_count.
|
Map<String,String> |
getLinks()
Returns The The links.
|
String |
getRoleSid()
Returns The The role_sid.
|
String |
getServiceSid()
Returns The The service_sid.
|
String |
getSid()
Returns The The sid.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static UserReader |
reader(String pathServiceSid)
Create a UserReader to execute read.
|
String |
toString() |
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 org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final Integer getJoinedChannelsCount()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.