Class UsergroupListParams

java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.UsergroupListParams
All Implemented Interfaces:
UsergroupListParamsIF

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

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

  • Method Details

    • getIncludeCount

      public Optional<Boolean> getIncludeCount()
      Specified by:
      getIncludeCount in interface UsergroupListParamsIF
      Returns:
      The value of the includeCount attribute
    • getIncludeDisabled

      public Optional<Boolean> getIncludeDisabled()
      Specified by:
      getIncludeDisabled in interface UsergroupListParamsIF
      Returns:
      The value of the includeDisabled attribute
    • getIncludeUsers

      public Optional<Boolean> getIncludeUsers()
      Specified by:
      getIncludeUsers in interface UsergroupListParamsIF
      Returns:
      The value of the includeUsers attribute
    • withIncludeCount

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

      public final UsergroupListParams withIncludeCount(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the includeCount 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 includeCount
      Returns:
      A modified copy or this if not changed
    • withIncludeDisabled

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

      public final UsergroupListParams withIncludeDisabled(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the includeDisabled 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 includeDisabled
      Returns:
      A modified copy or this if not changed
    • withIncludeUsers

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

      public final UsergroupListParams withIncludeUsers(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the includeUsers 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 includeUsers
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of UsergroupListParams 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: includeCount, includeDisabled, includeUsers.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static UsergroupListParams copyOf(UsergroupListParamsIF instance)
      Creates an immutable copy of a UsergroupListParamsIF 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 UsergroupListParams instance
    • builder

      public static UsergroupListParams.Builder builder()
      Creates a builder for UsergroupListParams.
       UsergroupListParams.builder()
          .setIncludeCount(Optional<Boolean>) // optional includeCount
          .setIncludeDisabled(Optional<Boolean>) // optional includeDisabled
          .setIncludeUsers(Optional<Boolean>) // optional includeUsers
          .build();
       
      Returns:
      A new UsergroupListParams builder