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()
Grant
getGrantKey
in interface Grant
public Object getPayload()
Grant
The payload allows us to decouple the user API from how the grant is structured.
getPayload
in interface Grant
Copyright © 2019 Twilio, Inc. All Rights Reserved.