Class AdminUsersInviteRequest
java.lang.Object
com.slack.api.methods.request.admin.users.AdminUsersInviteRequest
- All Implemented Interfaces:
SlackApiRequest
public class AdminUsersInviteRequest extends java.lang.Object implements SlackApiRequest
https://api.slack.com/methods/admin.users.invite
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdminUsersInviteRequest.AdminUsersInviteRequestBuilder -
Method Summary
Modifier and Type Method Description static AdminUsersInviteRequest.AdminUsersInviteRequestBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.List<java.lang.String>getChannelIds()A comma-separated list of channel_ids for this user to join.java.lang.StringgetCustomMessage()An optional message to send to the user in the invite email.java.lang.StringgetEmail()The email address of the person to invite.java.lang.BooleangetEmailPasswordPolicyEnabled()Allow invited user to sign in via email and password.java.lang.StringgetGuestExpirationTs()Timestamp when guest account should be disabled.java.lang.StringgetRealName()Full name of the user.java.lang.StringgetTeamId()Workspace Idjava.lang.StringgetToken()Authentication token bearing required scopes.inthashCode()booleanisResend()Allow this invite to be resent in the future if a user has not signed up yet.booleanisRestricted()Is this user a multi-channel guest user? (default: false)booleanisUltraRestricted()Is this user a single channel guest user? (default: false)voidsetChannelIds(java.util.List<java.lang.String> channelIds)A comma-separated list of channel_ids for this user to join.voidsetCustomMessage(java.lang.String customMessage)An optional message to send to the user in the invite email.voidsetEmail(java.lang.String email)The email address of the person to invite.voidsetEmailPasswordPolicyEnabled(java.lang.Boolean emailPasswordPolicyEnabled)Allow invited user to sign in via email and password.voidsetGuestExpirationTs(java.lang.String guestExpirationTs)Timestamp when guest account should be disabled.voidsetRealName(java.lang.String realName)Full name of the user.voidsetResend(boolean resend)Allow this invite to be resent in the future if a user has not signed up yet.voidsetRestricted(boolean isRestricted)Is this user a multi-channel guest user? (default: false)voidsetTeamId(java.lang.String teamId)Workspace IdvoidsetToken(java.lang.String token)Authentication token bearing required scopes.voidsetUltraRestricted(boolean isUltraRestricted)Is this user a single channel guest user? (default: false)java.lang.StringtoString()
-
Method Details
-
builder
-
getToken
public java.lang.String getToken()Authentication token bearing required scopes.- Specified by:
getTokenin interfaceSlackApiRequest
-
getChannelIds
public java.util.List<java.lang.String> getChannelIds()A comma-separated list of channel_ids for this user to join. At least one channel is required. -
getEmail
public java.lang.String getEmail()The email address of the person to invite. -
getTeamId
public java.lang.String getTeamId()Workspace Id -
getCustomMessage
public java.lang.String getCustomMessage()An optional message to send to the user in the invite email. -
getEmailPasswordPolicyEnabled
public java.lang.Boolean getEmailPasswordPolicyEnabled()Allow invited user to sign in via email and password. Only available for Enterprise Grid teams via admin invite. (As this parameter does not have the default value, we don't use the primitive value type) -
getGuestExpirationTs
public java.lang.String getGuestExpirationTs()Timestamp when guest account should be disabled. Only include this timestamp if you inviting a guest user and you want their account to expire on a certain date. -
isRestricted
public boolean isRestricted()Is this user a multi-channel guest user? (default: false) -
isUltraRestricted
public boolean isUltraRestricted()Is this user a single channel guest user? (default: false) -
getRealName
public java.lang.String getRealName()Full name of the user. -
isResend
public boolean isResend()Allow this invite to be resent in the future if a user has not signed up yet. (default: false) -
setToken
public void setToken(java.lang.String token)Authentication token bearing required scopes. -
setChannelIds
public void setChannelIds(java.util.List<java.lang.String> channelIds)A comma-separated list of channel_ids for this user to join. At least one channel is required. -
setEmail
public void setEmail(java.lang.String email)The email address of the person to invite. -
setTeamId
public void setTeamId(java.lang.String teamId)Workspace Id -
setCustomMessage
public void setCustomMessage(java.lang.String customMessage)An optional message to send to the user in the invite email. -
setEmailPasswordPolicyEnabled
public void setEmailPasswordPolicyEnabled(java.lang.Boolean emailPasswordPolicyEnabled)Allow invited user to sign in via email and password. Only available for Enterprise Grid teams via admin invite. (As this parameter does not have the default value, we don't use the primitive value type) -
setGuestExpirationTs
public void setGuestExpirationTs(java.lang.String guestExpirationTs)Timestamp when guest account should be disabled. Only include this timestamp if you inviting a guest user and you want their account to expire on a certain date. -
setRestricted
public void setRestricted(boolean isRestricted)Is this user a multi-channel guest user? (default: false) -
setUltraRestricted
public void setUltraRestricted(boolean isUltraRestricted)Is this user a single channel guest user? (default: false) -
setRealName
public void setRealName(java.lang.String realName)Full name of the user. -
setResend
public void setResend(boolean resend)Allow this invite to be resent in the future if a user has not signed up yet. (default: false) -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-