Class ConversationsFilter

java.lang.Object
com.slack.api.model.block.element.ConversationsFilter

public class ConversationsFilter
extends java.lang.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 class  ConversationsFilter.ConversationsFilterBuilder  
  • Constructor Summary

    Constructors 
    Constructor Description
    ConversationsFilter()  
    ConversationsFilter​(java.util.List<java.lang.String> include, java.lang.Boolean excludeExternalSharedChannels, java.lang.Boolean excludeBotUsers)  
  • Method Summary

    Modifier and Type Method Description
    static ConversationsFilter.ConversationsFilterBuilder builder()  
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.Boolean getExcludeBotUsers()
    Indicates whether to exclude bot users from conversation lists.
    java.lang.Boolean getExcludeExternalSharedChannels()
    Indicates whether to exclude external shared channels from conversation lists.
    java.util.List<java.lang.String> getInclude()
    Indicates which type of conversations should be included in the list.
    int hashCode()  
    void setExcludeBotUsers​(java.lang.Boolean excludeBotUsers)
    Indicates whether to exclude bot users from conversation lists.
    void setExcludeExternalSharedChannels​(java.lang.Boolean excludeExternalSharedChannels)
    Indicates whether to exclude external shared channels from conversation lists.
    void setInclude​(java.util.List<java.lang.String> include)
    Indicates which type of conversations should be included in the list.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ConversationsFilter

      public ConversationsFilter​(java.util.List<java.lang.String> include, java.lang.Boolean excludeExternalSharedChannels, java.lang.Boolean excludeBotUsers)
    • ConversationsFilter

      public ConversationsFilter()
  • Method Details

    • builder

    • getInclude

      public java.util.List<java.lang.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 java.lang.Boolean getExcludeExternalSharedChannels()
      Indicates whether to exclude external shared channels from conversation lists. Defaults to false.
    • getExcludeBotUsers

      public java.lang.Boolean getExcludeBotUsers()
      Indicates whether to exclude bot users from conversation lists. Defaults to false.
    • setInclude

      public void setInclude​(java.util.List<java.lang.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​(java.lang.Boolean excludeExternalSharedChannels)
      Indicates whether to exclude external shared channels from conversation lists. Defaults to false.
    • setExcludeBotUsers

      public void setExcludeBotUsers​(java.lang.Boolean excludeBotUsers)
      Indicates whether to exclude bot users from conversation lists. Defaults to false.
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object