Class ViewMultiUsersSelect.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewMultiUsersSelect.Builder
- Enclosing class:
ViewMultiUsersSelect
@Generated(from="ViewMultiUsersSelectIF",
generator="Immutables")
@NotThreadSafe
public static final class ViewMultiUsersSelect.Builder
extends Object
Builds instances of type
ViewMultiUsersSelect.
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 TypeMethodDescriptionaddAllSelectedUsers(Iterable<String> elements) Adds elements toselectedUserslist.addSelectedUsers(String element) Adds one element toselectedUserslist.addSelectedUsers(String... elements) Adds elements toselectedUserslist.build()Builds a newViewMultiUsersSelect.Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewInputinstance.from(ViewMultiUsersSelectIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewMultiUsersSelectIFinstance.setSelectedUsers(Iterable<String> elements) Sets or replaces all elements forselectedUserslist.setType(ViewInputType type) Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewMultiUsersSelectIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewInputinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
addSelectedUsers
Adds one element toselectedUserslist.- Parameters:
element- A selectedUsers element- Returns:
thisbuilder for use in a chained invocation
-
addSelectedUsers
Adds elements toselectedUserslist.- Parameters:
elements- An array of selectedUsers elements- Returns:
thisbuilder for use in a chained invocation
-
setSelectedUsers
Sets or replaces all elements forselectedUserslist.- Parameters:
elements- An iterable of selectedUsers elements- Returns:
thisbuilder for use in a chained invocation
-
addAllSelectedUsers
Adds elements toselectedUserslist.- Parameters:
elements- An iterable of selectedUsers elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newViewMultiUsersSelect.- Returns:
- An immutable instance of ViewMultiUsersSelect
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-