@NotThreadSafe public static final class UsergroupPreferences.Builder extends Object
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.
public final UsergroupPreferences.Builder from(UsergroupPreferencesIF instance)
UsergroupPreferencesIF instance.
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.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UsergroupPreferences.Builder addChannelIdsUsersAutojoin(String element)
channelIdsUsersAutojoin list.element - A channelIdsUsersAutojoin elementthis builder for use in a chained invocationpublic final UsergroupPreferences.Builder addChannelIdsUsersAutojoin(String... elements)
channelIdsUsersAutojoin list.elements - An array of channelIdsUsersAutojoin elementsthis builder for use in a chained invocationpublic final UsergroupPreferences.Builder setChannelIdsUsersAutojoin(Iterable<String> elements)
channelIdsUsersAutojoin list.elements - An iterable of channelIdsUsersAutojoin elementsthis builder for use in a chained invocationpublic final UsergroupPreferences.Builder addAllChannelIdsUsersAutojoin(Iterable<String> elements)
channelIdsUsersAutojoin list.elements - An iterable of channelIdsUsersAutojoin elementsthis builder for use in a chained invocationpublic final UsergroupPreferences.Builder addGroupsUsersAutojoin(String element)
groupsUsersAutojoin list.element - A groupsUsersAutojoin elementthis builder for use in a chained invocationpublic final UsergroupPreferences.Builder addGroupsUsersAutojoin(String... elements)
groupsUsersAutojoin list.elements - An array of groupsUsersAutojoin elementsthis builder for use in a chained invocationpublic final UsergroupPreferences.Builder setGroupsUsersAutojoin(Iterable<String> elements)
groupsUsersAutojoin list.elements - An iterable of groupsUsersAutojoin elementsthis builder for use in a chained invocationpublic final UsergroupPreferences.Builder addAllGroupsUsersAutojoin(Iterable<String> elements)
groupsUsersAutojoin list.elements - An iterable of groupsUsersAutojoin elementsthis builder for use in a chained invocationpublic UsergroupPreferences build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
UsergroupPreferences.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.