public class Role extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Role.RoleType |
Modifier and Type | Method and Description |
---|---|
static RoleCreator |
creator(String pathServiceSid,
String friendlyName,
Role.RoleType type,
List<String> permission)
Create a RoleCreator to execute create.
|
static RoleDeleter |
deleter(String pathServiceSid,
String pathSid)
Create a RoleDeleter to execute delete.
|
boolean |
equals(Object o) |
static RoleFetcher |
fetcher(String pathServiceSid,
String pathSid)
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 account_sid.
|
ZonedDateTime |
getDateCreated()
Returns The date_created.
|
ZonedDateTime |
getDateUpdated()
Returns The date_updated.
|
String |
getFriendlyName()
Returns The friendly_name.
|
List<String> |
getPermissions()
Returns The permissions.
|
String |
getServiceSid()
Returns The service_sid.
|
String |
getSid()
Returns The sid.
|
Role.RoleType |
getType()
Returns The type.
|
URI |
getUrl()
Returns The url.
|
int |
hashCode() |
static RoleReader |
reader(String pathServiceSid)
Create a RoleReader to execute read.
|
static RoleUpdater |
updater(String pathServiceSid,
String pathSid,
List<String> permission)
Create a RoleUpdater to execute update.
|
public static RoleFetcher fetcher(String pathServiceSid, String pathSid)
pathServiceSid
- The service_sidpathSid
- The sidpublic static RoleDeleter deleter(String pathServiceSid, String pathSid)
pathServiceSid
- The service_sidpathSid
- The sidpublic static RoleCreator creator(String pathServiceSid, String friendlyName, Role.RoleType type, List<String> permission)
pathServiceSid
- The service_sidfriendlyName
- The friendly_nametype
- The typepermission
- The permissionpublic static RoleReader reader(String pathServiceSid)
pathServiceSid
- The service_sidpublic static RoleUpdater updater(String pathServiceSid, String pathSid, List<String> permission)
pathServiceSid
- The service_sidpathSid
- The sidpermission
- 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()
public final String getAccountSid()
public final String getServiceSid()
public final String getFriendlyName()
public final Role.RoleType getType()
public final List<String> getPermissions()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.