Class Role
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.ipmessaging.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 classRole.RoleType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RoleCreatorcreator(String pathServiceSid, String friendlyName, Role.RoleType type, List<String> permission)static RoleDeleterdeleter(String pathServiceSid, String pathSid)booleanequals(Object o)static RoleFetcherfetcher(String pathServiceSid, String pathSid)static RolefromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Role object using the provided ObjectMapper.static RolefromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Role object using the provided ObjectMapper.StringgetAccountSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()List<String>getPermissions()StringgetServiceSid()StringgetSid()Role.RoleTypegetType()URIgetUrl()inthashCode()static RoleReaderreader(String pathServiceSid)static RoleUpdaterupdater(String pathServiceSid, String pathSid, List<String> permission)
-
-
-
Method Detail
-
creator
public static RoleCreator creator(String pathServiceSid, String friendlyName, Role.RoleType type, List<String> permission)
-
fetcher
public static RoleFetcher fetcher(String pathServiceSid, String pathSid)
-
deleter
public static RoleDeleter deleter(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()
-
-