Class ConversationsMultiSelectMenu.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.ConversationsMultiSelectMenu.Builder
- Enclosing class:
ConversationsMultiSelectMenu
@Generated(from="ConversationsMultiSelectMenuIF",
generator="Immutables")
@NotThreadSafe
public static final class ConversationsMultiSelectMenu.Builder
extends Object
Builds instances of type
ConversationsMultiSelectMenu.
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 TypeMethodDescriptionaddAllInitialChannelIds(Iterable<String> elements) Adds elements toinitialChannelIdslist.addInitialChannelIds(String element) Adds one element toinitialChannelIdslist.addInitialChannelIds(String... elements) Adds elements toinitialChannelIdslist.build()Builds a newConversationsMultiSelectMenu.from(ConversationsMultiSelectMenuIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.ConversationsMultiSelectMenuIFinstance.from(HasActionId instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.HasActionIdinstance.setActionId(String actionId) Initializes the value for theactionIdattribute.setConfirmationDialog(ConfirmationDialog confirmationDialog) Initializes the optional valueconfirmationDialogto confirmationDialog.setConfirmationDialog(Optional<? extends ConfirmationDialog> confirmationDialog) Initializes the optional valueconfirmationDialogto confirmationDialog.setInitialChannelIds(Iterable<String> elements) Sets or replaces all elements forinitialChannelIdslist.setPlaceholder(Text placeholder) Initializes the value for theplaceholderattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.HasActionIdinstance.- 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.blocks.elements.ConversationsMultiSelectMenuIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setPlaceholder
Initializes the value for theplaceholderattribute.- Parameters:
placeholder- The value for placeholder- Returns:
thisbuilder for use in a chained invocation
-
setActionId
Initializes the value for theactionIdattribute.- Parameters:
actionId- The value for actionId- Returns:
thisbuilder for use in a chained invocation
-
addInitialChannelIds
Adds one element toinitialChannelIdslist.- Parameters:
element- A initialChannelIds element- Returns:
thisbuilder for use in a chained invocation
-
addInitialChannelIds
Adds elements toinitialChannelIdslist.- Parameters:
elements- An array of initialChannelIds elements- Returns:
thisbuilder for use in a chained invocation
-
setInitialChannelIds
Sets or replaces all elements forinitialChannelIdslist.- Parameters:
elements- An iterable of initialChannelIds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllInitialChannelIds
public final ConversationsMultiSelectMenu.Builder addAllInitialChannelIds(Iterable<String> elements) Adds elements toinitialChannelIdslist.- Parameters:
elements- An iterable of initialChannelIds elements- Returns:
thisbuilder for use in a chained invocation
-
setConfirmationDialog
public final ConversationsMultiSelectMenu.Builder setConfirmationDialog(@Nullable ConfirmationDialog confirmationDialog) Initializes the optional valueconfirmationDialogto confirmationDialog.- Parameters:
confirmationDialog- The value for confirmationDialog,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setConfirmationDialog
public final ConversationsMultiSelectMenu.Builder setConfirmationDialog(Optional<? extends ConfirmationDialog> confirmationDialog) Initializes the optional valueconfirmationDialogto confirmationDialog.- Parameters:
confirmationDialog- The value for confirmationDialog- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newConversationsMultiSelectMenu.- Returns:
- An immutable instance of ConversationsMultiSelectMenu
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-