Package com.twilio.rest.chat.v2.service
Class Role
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.chat.v2.service.Role
-
- All Implemented Interfaces:
Serializable
public class Role extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Role.RoleType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RoleCreator
creator(String pathServiceSid, String friendlyName, Role.RoleType type, List<String> permission)
static RoleDeleter
deleter(String pathServiceSid, String pathSid)
boolean
equals(Object o)
static RoleFetcher
fetcher(String pathServiceSid, String pathSid)
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()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
List<String>
getPermissions()
String
getServiceSid()
String
getSid()
Role.RoleType
getType()
URI
getUrl()
int
hashCode()
static RoleReader
reader(String pathServiceSid)
static RoleUpdater
updater(String pathServiceSid, String pathSid, List<String> permission)
-
-
-
Method Detail
-
creator
public static RoleCreator creator(String pathServiceSid, String friendlyName, Role.RoleType type, List<String> permission)
-
deleter
public static RoleDeleter deleter(String pathServiceSid, String pathSid)
-
fetcher
public static RoleFetcher fetcher(String pathServiceSid, String pathSid)
-
reader
public static RoleReader reader(String pathServiceSid)
-
updater
public static RoleUpdater updater(String pathServiceSid, String pathSid, List<String> permission)
-
fromJson
public static Role fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Role object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Role object represented by the provided JSON
-
fromJson
public static Role fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Role object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Role object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getFriendlyName
public final String getFriendlyName()
-
getType
public final Role.RoleType getType()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-