public class Role extends NextGenInstanceResource<TwilioIPMessagingClient>
| Constructor and Description |
|---|
Role(TwilioIPMessagingClient client,
Map<String,Object> properties) |
Role(TwilioIPMessagingClient client,
String serviceSid,
String sid) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Deletes the Role
|
String |
getAccountSid()
The account sid that owns this role
|
Calendar |
getDateCreated()
The date when this role was created
|
Calendar |
getDateUpdated()
The date when this role was updated
|
String |
getFriendlyName()
The human readable name for this channel
|
List<String> |
getPermissions()
Return a list of permissions for this role
|
String |
getServiceSid()
The service sid that is associated to this role
|
String |
getSid()
The unique identifier for this role
|
String |
getType()
Return the type for this role
|
String |
getUrl()
Absolute url of this role
|
getCastedObject, getObject, getProperty, getPropertyAsInteger, toJSON, update, updatesetRequestAccountSidpublic Role(TwilioIPMessagingClient client, String serviceSid, String sid)
public Role(TwilioIPMessagingClient client, Map<String,Object> properties)
public String getSid()
public String getAccountSid()
public String getServiceSid()
public String getFriendlyName()
public String getType()
public List<String> getPermissions()
public Calendar getDateCreated()
public Calendar getDateUpdated()
public String getUrl()
public boolean delete()
throws TwilioRestException
TwilioRestExceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.