Class ConversationsFilter
- java.lang.Object
-
- com.slack.api.model.block.element.ConversationsFilter
-
public class ConversationsFilter extends Object
Filter object for conversation lists Provides a way to filter the list of options in a conversations select menu or conversations multi-select menu.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConversationsFilter.ConversationsFilterBuilder
-
Constructor Summary
Constructors Constructor Description ConversationsFilter()ConversationsFilter(List<String> include, Boolean excludeExternalSharedChannels, Boolean excludeBotUsers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversationsFilter.ConversationsFilterBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)BooleangetExcludeBotUsers()Indicates whether to exclude bot users from conversation lists.BooleangetExcludeExternalSharedChannels()Indicates whether to exclude external shared channels from conversation lists.List<String>getInclude()Indicates which type of conversations should be included in the list.inthashCode()voidsetExcludeBotUsers(Boolean excludeBotUsers)Indicates whether to exclude bot users from conversation lists.voidsetExcludeExternalSharedChannels(Boolean excludeExternalSharedChannels)Indicates whether to exclude external shared channels from conversation lists.voidsetInclude(List<String> include)Indicates which type of conversations should be included in the list.StringtoString()
-
-
-
Method Detail
-
builder
public static ConversationsFilter.ConversationsFilterBuilder builder()
-
getInclude
public List<String> getInclude()
Indicates which type of conversations should be included in the list. When this field is provided, any conversations that do not match will be excluded. You should provide an array of strings from the following options: im, mpim, private, and public. The array cannot be empty.
-
getExcludeExternalSharedChannels
public Boolean getExcludeExternalSharedChannels()
Indicates whether to exclude external shared channels from conversation lists. Defaults to false.
-
getExcludeBotUsers
public Boolean getExcludeBotUsers()
Indicates whether to exclude bot users from conversation lists. Defaults to false.
-
setInclude
public void setInclude(List<String> include)
Indicates which type of conversations should be included in the list. When this field is provided, any conversations that do not match will be excluded. You should provide an array of strings from the following options: im, mpim, private, and public. The array cannot be empty.
-
setExcludeExternalSharedChannels
public void setExcludeExternalSharedChannels(Boolean excludeExternalSharedChannels)
Indicates whether to exclude external shared channels from conversation lists. Defaults to false.
-
setExcludeBotUsers
public void setExcludeBotUsers(Boolean excludeBotUsers)
Indicates whether to exclude bot users from conversation lists. Defaults to false.
-
canEqual
protected boolean canEqual(Object other)
-
-