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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeUsergroupPreferences. -
Method Summary
Modifier and TypeMethodDescriptionstatic UsergroupPreferences.Builderbuilder()Creates a builder forUsergroupPreferences.static UsergroupPreferencescopyOf(UsergroupPreferencesIF instance) Creates an immutable copy of aUsergroupPreferencesIFvalue.booleanThis instance is equal to all instances ofUsergroupPreferencesthat have equal attribute values.inthashCode()Computes a hash code from attributes:channelIdsUsersAutojoin,groupsUsersAutojoin.toString()Prints the immutable valueUsergroupPreferenceswith attribute values.final UsergroupPreferenceswithChannelIdsUsersAutojoin(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofchannelIdsUsersAutojoin.final UsergroupPreferenceswithChannelIdsUsersAutojoin(String... elements) Copy the current immutable object with elements that replace the content ofchannelIdsUsersAutojoin.final UsergroupPreferenceswithGroupsUsersAutojoin(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofgroupsUsersAutojoin.final UsergroupPreferenceswithGroupsUsersAutojoin(String... elements) Copy the current immutable object with elements that replace the content ofgroupsUsersAutojoin.
-
Method Details
-
getChannelIdsUsersAutojoin
- Specified by:
getChannelIdsUsersAutojoinin interfaceUsergroupPreferencesIF- Returns:
- The value of the
channelIdsUsersAutojoinattribute
-
getGroupsUsersAutojoin
- Specified by:
getGroupsUsersAutojoinin interfaceUsergroupPreferencesIF- Returns:
- The value of the
groupsUsersAutojoinattribute
-
withChannelIdsUsersAutojoin
Copy the current immutable object with elements that replace the content ofchannelIdsUsersAutojoin.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withChannelIdsUsersAutojoin
Copy the current immutable object with elements that replace the content ofchannelIdsUsersAutojoin. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of channelIdsUsersAutojoin elements to set- Returns:
- A modified copy or
thisif not changed
-
withGroupsUsersAutojoin
Copy the current immutable object with elements that replace the content ofgroupsUsersAutojoin.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withGroupsUsersAutojoin
Copy the current immutable object with elements that replace the content ofgroupsUsersAutojoin. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of groupsUsersAutojoin elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofUsergroupPreferencesthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelIdsUsersAutojoin,groupsUsersAutojoin. -
toString
Prints the immutable valueUsergroupPreferenceswith attribute values. -
copyOf
Creates an immutable copy of aUsergroupPreferencesIFvalue. 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
Creates a builder forUsergroupPreferences.UsergroupPreferences.builder() .addChannelIdsUsersAutojoin|addAllChannelIdsUsersAutojoin(String) //channelIdsUsersAutojoinelements .addGroupsUsersAutojoin|addAllGroupsUsersAutojoin(String) //groupsUsersAutojoinelements .build();- Returns:
- A new UsergroupPreferences builder
-