Class GroupsListParams

java.lang.Object
com.hubspot.slack.client.methods.params.group.GroupsListParams
All Implemented Interfaces:
BaseChannelsFilter, GroupsListParamsIF

@Generated(from="GroupsListParamsIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class GroupsListParams extends Object implements GroupsListParamsIF
Immutable implementation of GroupsListParamsIF.

Use the builder to create immutable instances: GroupsListParams.builder().

  • Method Details

    • shouldExcludeArchived

      public Optional<Boolean> shouldExcludeArchived()
      Specified by:
      shouldExcludeArchived in interface BaseChannelsFilter
      Returns:
      The value of the shouldExcludeArchived attribute
    • shouldExcludeMembers

      public boolean shouldExcludeMembers()
      Specified by:
      shouldExcludeMembers in interface BaseChannelsFilter
      Returns:
      The value of the shouldExcludeMembers attribute
    • withShouldExcludeArchived

      public final GroupsListParams withShouldExcludeArchived(@Nullable Boolean value)
      Copy the current immutable object by setting a present value for the optional shouldExcludeArchived attribute.
      Parameters:
      value - The value for shouldExcludeArchived, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withShouldExcludeArchived

      public final GroupsListParams withShouldExcludeArchived(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the shouldExcludeArchived attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for shouldExcludeArchived
      Returns:
      A modified copy or this if not changed
    • withShouldExcludeMembers

      public final GroupsListParams withShouldExcludeMembers(boolean value)
      Copy the current immutable object by setting a value for the shouldExcludeMembers attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for shouldExcludeMembers
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of GroupsListParams that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: shouldExcludeArchived, shouldExcludeMembers.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value GroupsListParams with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static GroupsListParams copyOf(GroupsListParamsIF instance)
      Creates an immutable copy of a GroupsListParamsIF value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable GroupsListParams instance
    • builder

      public static GroupsListParams.Builder builder()
      Creates a builder for GroupsListParams.
       GroupsListParams.builder()
          .setShouldExcludeArchived(Optional<Boolean>) // optional shouldExcludeArchived
          .setShouldExcludeMembers(boolean) // optional shouldExcludeMembers
          .build();
       
      Returns:
      A new GroupsListParams builder