public class TaskRouterGrant extends Object implements Grant
For more information see: https://www.twilio.com/docs/api/rest/access-tokens
| Modifier and Type | Class and Description |
|---|---|
class |
TaskRouterGrant.Payload |
| Constructor and Description |
|---|
TaskRouterGrant() |
| Modifier and Type | Method and Description |
|---|---|
String |
getGrantKey()
The key for the grant.
|
Object |
getPayload()
The payload for this grant.
|
String |
getRole() |
String |
getWorkerSid() |
String |
getWorkspaceSid() |
TaskRouterGrant |
setRole(String role) |
TaskRouterGrant |
setWorkerSid(String workerSid) |
TaskRouterGrant |
setWorkspaceSid(String workspaceSid) |
public String getWorkspaceSid()
public TaskRouterGrant setWorkspaceSid(String workspaceSid)
public String getWorkerSid()
public TaskRouterGrant setWorkerSid(String workerSid)
public String getRole()
public TaskRouterGrant setRole(String role)
public String getGrantKey()
GrantgetGrantKey in interface Grantpublic Object getPayload()
GrantThe payload allows us to decouple the user API from how the grant is structured.
getPayload in interface GrantCopyright © 2016 Twilio, Inc. All Rights Reserved.