Class ConversationsAcceptSharedInviteRequest

java.lang.Object
com.slack.api.methods.request.conversations.ConversationsAcceptSharedInviteRequest
All Implemented Interfaces:
SlackApiRequest

public class ConversationsAcceptSharedInviteRequest extends Object implements SlackApiRequest
https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite
  • Method Details

    • builder

    • getToken

      public String getToken()
      Description copied from interface: SlackApiRequest
      Returns a token in this request object. If the API endpoint does not require a token (e.g., api.test), this method can return null.
      Specified by:
      getToken in interface SlackApiRequest
      Returns:
      token string value or null
    • getChannelName

      public String getChannelName()
      Name of the channel. If the channel does not exist already in your workspace, this name is the one that the channel will take.
    • getChannelId

      public String getChannelId()
      ID of the channel that you'd like to accept. Must provide either invite_id or channel_id.
    • getFreeTrialAccept

      public Boolean getFreeTrialAccept()
      Whether you'd like to use your workspace's free trial to begin using Slack Connect.
    • getInviteId

      public String getInviteId()
      See the shared_channel_invite_received event payload for more details on how to retrieve the ID of the invitation.
    • getIsPrivate

      public Boolean getIsPrivate()
      Whether the channel should be private.
    • getTeamId

      public String getTeamId()
      The ID of the workspace to accept the channel in. If an org-level token is used to call this method, the team_id argument is required.
    • setToken

      public void setToken(String token)
      Description copied from interface: SlackApiRequest
      Updates the token in this request object.

      The default implementation throws UnsupportedOperationException. All the built-in implementing classes overrides this method in a proper way.

      Specified by:
      setToken in interface SlackApiRequest
    • setChannelName

      public void setChannelName(String channelName)
      Name of the channel. If the channel does not exist already in your workspace, this name is the one that the channel will take.
    • setChannelId

      public void setChannelId(String channelId)
      ID of the channel that you'd like to accept. Must provide either invite_id or channel_id.
    • setFreeTrialAccept

      public void setFreeTrialAccept(Boolean freeTrialAccept)
      Whether you'd like to use your workspace's free trial to begin using Slack Connect.
    • setInviteId

      public void setInviteId(String inviteId)
      See the shared_channel_invite_received event payload for more details on how to retrieve the ID of the invitation.
    • setIsPrivate

      public void setIsPrivate(Boolean isPrivate)
      Whether the channel should be private.
    • setTeamId

      public void setTeamId(String teamId)
      The ID of the workspace to accept the channel in. If an org-level token is used to call this method, the team_id argument is required.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object