Class UsergroupPreferences.Builder
java.lang.Object
com.hubspot.slack.client.models.usergroups.UsergroupPreferences.Builder
- Enclosing class:
UsergroupPreferences
@Generated(from="UsergroupPreferencesIF",
generator="Immutables")
@NotThreadSafe
public static final class UsergroupPreferences.Builder
extends Object
Builds instances of type
UsergroupPreferences.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllChannelIdsUsersAutojoin(Iterable<String> elements) Adds elements tochannelIdsUsersAutojoinlist.addAllGroupsUsersAutojoin(Iterable<String> elements) Adds elements togroupsUsersAutojoinlist.addChannelIdsUsersAutojoin(String element) Adds one element tochannelIdsUsersAutojoinlist.addChannelIdsUsersAutojoin(String... elements) Adds elements tochannelIdsUsersAutojoinlist.addGroupsUsersAutojoin(String element) Adds one element togroupsUsersAutojoinlist.addGroupsUsersAutojoin(String... elements) Adds elements togroupsUsersAutojoinlist.build()Builds a newUsergroupPreferences.from(UsergroupPreferencesIF instance) Fill a builder with attribute values from the providedUsergroupPreferencesIFinstance.setChannelIdsUsersAutojoin(Iterable<String> elements) Sets or replaces all elements forchannelIdsUsersAutojoinlist.setGroupsUsersAutojoin(Iterable<String> elements) Sets or replaces all elements forgroupsUsersAutojoinlist.
-
Method Details
-
from
Fill a builder with attribute values from the providedUsergroupPreferencesIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addChannelIdsUsersAutojoin
Adds one element tochannelIdsUsersAutojoinlist.- Parameters:
element- A channelIdsUsersAutojoin element- Returns:
thisbuilder for use in a chained invocation
-
addChannelIdsUsersAutojoin
Adds elements tochannelIdsUsersAutojoinlist.- Parameters:
elements- An array of channelIdsUsersAutojoin elements- Returns:
thisbuilder for use in a chained invocation
-
setChannelIdsUsersAutojoin
Sets or replaces all elements forchannelIdsUsersAutojoinlist.- Parameters:
elements- An iterable of channelIdsUsersAutojoin elements- Returns:
thisbuilder for use in a chained invocation
-
addAllChannelIdsUsersAutojoin
Adds elements tochannelIdsUsersAutojoinlist.- Parameters:
elements- An iterable of channelIdsUsersAutojoin elements- Returns:
thisbuilder for use in a chained invocation
-
addGroupsUsersAutojoin
Adds one element togroupsUsersAutojoinlist.- Parameters:
element- A groupsUsersAutojoin element- Returns:
thisbuilder for use in a chained invocation
-
addGroupsUsersAutojoin
Adds elements togroupsUsersAutojoinlist.- Parameters:
elements- An array of groupsUsersAutojoin elements- Returns:
thisbuilder for use in a chained invocation
-
setGroupsUsersAutojoin
Sets or replaces all elements forgroupsUsersAutojoinlist.- Parameters:
elements- An iterable of groupsUsersAutojoin elements- Returns:
thisbuilder for use in a chained invocation
-
addAllGroupsUsersAutojoin
Adds elements togroupsUsersAutojoinlist.- Parameters:
elements- An iterable of groupsUsersAutojoin elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newUsergroupPreferences.- Returns:
- An immutable instance of UsergroupPreferences
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-