public class Role extends SidResource
| Modifier and Type | Class and Description |
|---|---|
static class |
Role.RoleType |
| Modifier and Type | Method and Description |
|---|---|
static RoleCreator |
create(String serviceSid,
String friendlyName,
Role.RoleType type,
List<String> permission)
Create a RoleCreator to execute create.
|
static RoleDeleter |
delete(String serviceSid,
String sid)
Create a RoleDeleter to execute delete.
|
boolean |
equals(Object o) |
static RoleFetcher |
fetch(String serviceSid,
String sid)
Create a RoleFetcher to execute fetch.
|
static Role |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Role object using the provided
ObjectMapper.
|
static Role |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Role 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 |
getFriendlyName()
Returns The The friendly_name.
|
List<String> |
getPermissions()
Returns The The permissions.
|
String |
getServiceSid()
Returns The The service_sid.
|
String |
getSid()
Returns The The sid.
|
Role.RoleType |
getType()
Returns The The type.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static RoleReader |
read(String serviceSid)
Create a RoleReader to execute read.
|
String |
toString() |
static RoleUpdater |
update(String serviceSid,
String sid,
String friendlyName,
List<String> permission)
Create a RoleUpdater to execute update.
|
public static RoleFetcher fetch(String serviceSid, String sid)
serviceSid - The service_sidsid - The sidpublic static RoleDeleter delete(String serviceSid, String sid)
serviceSid - The service_sidsid - The sidpublic static RoleCreator create(String serviceSid, String friendlyName, Role.RoleType type, List<String> permission)
serviceSid - The service_sidfriendlyName - The friendly_nametype - The typepermission - The permissionpublic static RoleReader read(String serviceSid)
serviceSid - The service_sidpublic static RoleUpdater update(String serviceSid, String sid, String friendlyName, List<String> permission)
serviceSid - The service_sidsid - The sidfriendlyName - The friendly_namepermission - The permissionpublic static Role fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON StringobjectMapper - Jackson ObjectMapperpublic static Role fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json - Raw JSON InputStreamobjectMapper - Jackson ObjectMapperpublic final String getSid()
getSid in class SidResourcepublic final String getAccountSid()
public final String getServiceSid()
public final String getFriendlyName()
public final Role.RoleType getType()
public final List<String> getPermissions()
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.