Class UsergroupPreferences

java.lang.Object
com.hubspot.slack.client.models.usergroups.UsergroupPreferences
All Implemented Interfaces:
UsergroupPreferencesIF

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

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

  • Method Details

    • getChannelIdsUsersAutojoin

      public List<String> getChannelIdsUsersAutojoin()
      Specified by:
      getChannelIdsUsersAutojoin in interface UsergroupPreferencesIF
      Returns:
      The value of the channelIdsUsersAutojoin attribute
    • getGroupsUsersAutojoin

      public List<String> getGroupsUsersAutojoin()
      Specified by:
      getGroupsUsersAutojoin in interface UsergroupPreferencesIF
      Returns:
      The value of the groupsUsersAutojoin attribute
    • withChannelIdsUsersAutojoin

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

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

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

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

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

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

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

      public static UsergroupPreferences.Builder builder()
      Creates a builder for UsergroupPreferences.
       UsergroupPreferences.builder()
          .addChannelIdsUsersAutojoin|addAllChannelIdsUsersAutojoin(String) // channelIdsUsersAutojoin elements
          .addGroupsUsersAutojoin|addAllGroupsUsersAutojoin(String) // groupsUsersAutojoin elements
          .build();
       
      Returns:
      A new UsergroupPreferences builder