Class TaskRouterGrant

    • Constructor Detail

      • TaskRouterGrant

        public TaskRouterGrant()
    • Method Detail

      • getWorkspaceSid

        public String getWorkspaceSid()
      • getWorkerSid

        public String getWorkerSid()
      • getRole

        public String getRole()
      • getGrantKey

        public String getGrantKey()
        Description copied from interface: Grant
        The key for the grant.
        Specified by:
        getGrantKey in interface Grant
        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 interface Grant
        Returns:
        The payload for this grant.