Class Role
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.conversations.v1.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 pathChatServiceSid, String friendlyName, Role.RoleType type, List<String> permission)
static RoleDeleter
deleter(String pathChatServiceSid, String pathSid)
boolean
equals(Object o)
static RoleFetcher
fetcher(String pathChatServiceSid, 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()
String
getChatServiceSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
List<String>
getPermissions()
String
getSid()
Role.RoleType
getType()
URI
getUrl()
int
hashCode()
static RoleReader
reader(String pathChatServiceSid)
static RoleUpdater
updater(String pathChatServiceSid, String pathSid, List<String> permission)
-
-
-
Method Detail
-
creator
public static RoleCreator creator(String pathChatServiceSid, String friendlyName, Role.RoleType type, List<String> permission)
-
deleter
public static RoleDeleter deleter(String pathChatServiceSid, String pathSid)
-
fetcher
public static RoleFetcher fetcher(String pathChatServiceSid, String pathSid)
-
reader
public static RoleReader reader(String pathChatServiceSid)
-
updater
public static RoleUpdater updater(String pathChatServiceSid, 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()
-
getChatServiceSid
public final String getChatServiceSid()
-
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()
-
-