Class StaticMultiSelectMenu.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.StaticMultiSelectMenu.Builder
- Enclosing class:
StaticMultiSelectMenu
@Generated(from="StaticMultiSelectMenuIF",
generator="Immutables")
@NotThreadSafe
public static final class StaticMultiSelectMenu.Builder
extends Object
Builds instances of type
StaticMultiSelectMenu.
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 TypeMethodDescriptionaddAllInitialOptions(Iterable<? extends OptionOrOptionGroup> elements) Adds elements toinitialOptionslist.addAllOptionGroups(Iterable<? extends OptionGroup> elements) Adds elements tooptionGroupslist.addAllOptions(Iterable<? extends Option> elements) Adds elements tooptionslist.addInitialOptions(OptionOrOptionGroup element) Adds one element toinitialOptionslist.addInitialOptions(OptionOrOptionGroup... elements) Adds elements toinitialOptionslist.addOptionGroups(OptionGroup element) Adds one element tooptionGroupslist.addOptionGroups(OptionGroup... elements) Adds elements tooptionGroupslist.addOptions(Option element) Adds one element tooptionslist.addOptions(Option... elements) Adds elements tooptionslist.build()Builds a newStaticMultiSelectMenu.from(HasActionId instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.HasActionIdinstance.from(StaticMultiSelectMenuIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.StaticMultiSelectMenuIFinstance.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.setInitialOptions(Iterable<? extends OptionOrOptionGroup> elements) Sets or replaces all elements forinitialOptionslist.setOptionGroups(Iterable<? extends OptionGroup> elements) Sets or replaces all elements foroptionGroupslist.setOptions(Iterable<? extends Option> elements) Sets or replaces all elements foroptionslist.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.StaticMultiSelectMenuIFinstance.- 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
-
addOptions
Adds one element tooptionslist.- Parameters:
element- A options element- Returns:
thisbuilder for use in a chained invocation
-
addOptions
Adds elements tooptionslist.- Parameters:
elements- An array of options elements- Returns:
thisbuilder for use in a chained invocation
-
setOptions
Sets or replaces all elements foroptionslist.- Parameters:
elements- An iterable of options elements- Returns:
thisbuilder for use in a chained invocation
-
addAllOptions
Adds elements tooptionslist.- Parameters:
elements- An iterable of options elements- Returns:
thisbuilder for use in a chained invocation
-
addOptionGroups
Adds one element tooptionGroupslist.- Parameters:
element- A optionGroups element- Returns:
thisbuilder for use in a chained invocation
-
addOptionGroups
Adds elements tooptionGroupslist.- Parameters:
elements- An array of optionGroups elements- Returns:
thisbuilder for use in a chained invocation
-
setOptionGroups
public final StaticMultiSelectMenu.Builder setOptionGroups(Iterable<? extends OptionGroup> elements) Sets or replaces all elements foroptionGroupslist.- Parameters:
elements- An iterable of optionGroups elements- Returns:
thisbuilder for use in a chained invocation
-
addAllOptionGroups
public final StaticMultiSelectMenu.Builder addAllOptionGroups(Iterable<? extends OptionGroup> elements) Adds elements tooptionGroupslist.- Parameters:
elements- An iterable of optionGroups elements- Returns:
thisbuilder for use in a chained invocation
-
addInitialOptions
Adds one element toinitialOptionslist.- Parameters:
element- A initialOptions element- Returns:
thisbuilder for use in a chained invocation
-
addInitialOptions
Adds elements toinitialOptionslist.- Parameters:
elements- An array of initialOptions elements- Returns:
thisbuilder for use in a chained invocation
-
setInitialOptions
public final StaticMultiSelectMenu.Builder setInitialOptions(Iterable<? extends OptionOrOptionGroup> elements) Sets or replaces all elements forinitialOptionslist.- Parameters:
elements- An iterable of initialOptions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllInitialOptions
public final StaticMultiSelectMenu.Builder addAllInitialOptions(Iterable<? extends OptionOrOptionGroup> elements) Adds elements toinitialOptionslist.- Parameters:
elements- An iterable of initialOptions elements- Returns:
thisbuilder for use in a chained invocation
-
setConfirmationDialog
public final StaticMultiSelectMenu.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 StaticMultiSelectMenu.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 newStaticMultiSelectMenu.- Returns:
- An immutable instance of StaticMultiSelectMenu
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-