Class UsergroupUsersUpdateParams

java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.users.AbstractUsergroupUsersUpdateParams
com.hubspot.slack.client.methods.params.usergroups.users.UsergroupUsersUpdateParams
All Implemented Interfaces:
HasCommaSeperatedUserIds, HasUsergroup

@Generated(from="AbstractUsergroupUsersUpdateParams", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class UsergroupUsersUpdateParams extends AbstractUsergroupUsersUpdateParams
Immutable implementation of AbstractUsergroupUsersUpdateParams.

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

  • Method Details

    • getRawUserIds

      public List<String> getRawUserIds()
      Returns:
      The value of the rawUserIds attribute
    • getEncodedUsers

      public Optional<String> getEncodedUsers()
      Returns:
      The computed-at-construction value of the encodedUsers attribute
    • getUsergroupId

      public String getUsergroupId()
      Specified by:
      getUsergroupId in interface HasUsergroup
      Specified by:
      getUsergroupId in class AbstractUsergroupUsersUpdateParams
      Returns:
      The value of the usergroupId attribute
    • getIncludeCount

      public Optional<Boolean> getIncludeCount()
      Specified by:
      getIncludeCount in class AbstractUsergroupUsersUpdateParams
      Returns:
      The value of the includeCount attribute
    • withRawUserIds

      public final UsergroupUsersUpdateParams withRawUserIds(String... elements)
      Copy the current immutable object with elements that replace the content of rawUserIds.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withRawUserIds

      public final UsergroupUsersUpdateParams withRawUserIds(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of rawUserIds. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of rawUserIds elements to set
      Returns:
      A modified copy or this if not changed
    • withUsergroupId

      public final UsergroupUsersUpdateParams withUsergroupId(String value)
      Copy the current immutable object by setting a value for the usergroupId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for usergroupId
      Returns:
      A modified copy or the this object
    • withIncludeCount

      public final UsergroupUsersUpdateParams 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 UsergroupUsersUpdateParams 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
    • equals

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

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

      Creates an immutable copy of a AbstractUsergroupUsersUpdateParams 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 UsergroupUsersUpdateParams instance
    • builder

      public static UsergroupUsersUpdateParams.Builder builder()
      Creates a builder for UsergroupUsersUpdateParams.
       UsergroupUsersUpdateParams.builder()
          .addRawUserIds|addAllRawUserIds(String) // rawUserIds elements
          .setUsergroupId(String) // required usergroupId
          .setIncludeCount(Optional<Boolean>) // optional includeCount
          .build();
       
      Returns:
      A new UsergroupUsersUpdateParams builder