Class ExternalMultiSelectMenu.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.ExternalMultiSelectMenu.Builder
- Enclosing class:
ExternalMultiSelectMenu
@Generated(from="ExternalMultiSelectMenuIF",
generator="Immutables")
@NotThreadSafe
public static final class ExternalMultiSelectMenu.Builder
extends Object
Builds instances of type
ExternalMultiSelectMenu.
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.addInitialOptions(OptionOrOptionGroup element) Adds one element toinitialOptionslist.addInitialOptions(OptionOrOptionGroup... elements) Adds elements toinitialOptionslist.build()Builds a newExternalMultiSelectMenu.from(ExternalMultiSelectMenuIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.ExternalMultiSelectMenuIFinstance.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.setInitialOptions(Iterable<? extends OptionOrOptionGroup> elements) Sets or replaces all elements forinitialOptionslist.setMinQueryLength(Integer minQueryLength) Initializes the optional valueminQueryLengthto minQueryLength.setMinQueryLength(Optional<Integer> minQueryLength) Initializes the optional valueminQueryLengthto minQueryLength.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.ExternalMultiSelectMenuIFinstance.- 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
-
setMinQueryLength
Initializes the optional valueminQueryLengthto minQueryLength.- Parameters:
minQueryLength- The value for minQueryLength,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setMinQueryLength
Initializes the optional valueminQueryLengthto minQueryLength.- Parameters:
minQueryLength- The value for minQueryLength- 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 ExternalMultiSelectMenu.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 ExternalMultiSelectMenu.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 ExternalMultiSelectMenu.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 ExternalMultiSelectMenu.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 newExternalMultiSelectMenu.- Returns:
- An immutable instance of ExternalMultiSelectMenu
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-