public class User extends SidResource
Modifier and Type | Method and Description |
---|---|
static UserCreator |
create(String serviceSid,
String identity,
String roleSid)
Create a UserCreator to execute create.
|
static UserDeleter |
delete(String serviceSid,
String sid)
Create a UserDeleter to execute delete.
|
boolean |
equals(Object o) |
static UserFetcher |
fetch(String serviceSid,
String sid)
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.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getIdentity()
Returns The The identity.
|
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 |
read(String serviceSid)
Create a UserReader to execute read.
|
String |
toString() |
static UserUpdater |
update(String serviceSid,
String sid,
String roleSid)
Create a UserUpdater to execute update.
|
public static UserFetcher fetch(String serviceSid, String sid)
serviceSid
- The service_sidsid
- The sidpublic static UserDeleter delete(String serviceSid, String sid)
serviceSid
- The service_sidsid
- The sidpublic static UserCreator create(String serviceSid, String identity, String roleSid)
serviceSid
- The service_sididentity
- The identityroleSid
- The role_sidpublic static UserReader read(String serviceSid)
serviceSid
- The service_sidpublic static UserUpdater update(String serviceSid, String sid, String roleSid)
serviceSid
- The service_sidsid
- The sidroleSid
- The role_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()
getSid
in class SidResource
public final String getAccountSid()
public final String getServiceSid()
public final String getRoleSid()
public final String getIdentity()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.