Package com.twilio.jwt.accesstoken
Class TaskRouterGrant
- java.lang.Object
-
- com.twilio.jwt.accesstoken.TaskRouterGrant
-
- All Implemented Interfaces:
Grant
public class TaskRouterGrant extends Object implements Grant
Grant used to access Twilio TaskRouter.For more information see: https://www.twilio.com/docs/api/rest/access-tokens
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TaskRouterGrant.Payload
-
Constructor Summary
Constructors Constructor Description TaskRouterGrant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getWorkspaceSid
public String getWorkspaceSid()
-
setWorkspaceSid
public TaskRouterGrant setWorkspaceSid(String workspaceSid)
-
getWorkerSid
public String getWorkerSid()
-
setWorkerSid
public TaskRouterGrant setWorkerSid(String workerSid)
-
getRole
public String getRole()
-
setRole
public TaskRouterGrant setRole(String role)
-
getGrantKey
public String getGrantKey()
Description copied from interface:Grant
The key for the grant.- Specified by:
getGrantKey
in interfaceGrant
- Returns:
- The key for the grant.
-
getPayload
public Object getPayload()
Description copied from interface:Grant
The payload for this grant.The payload allows us to decouple the user API from how the grant is structured.
- Specified by:
getPayload
in interfaceGrant
- Returns:
- The payload for this grant.
-
-