Class ExternalSelectMenu.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.ExternalSelectMenu.Builder
- Enclosing class:
ExternalSelectMenu
@Generated(from="ExternalSelectMenuIF",
generator="Immutables")
@NotThreadSafe
public static final class ExternalSelectMenu.Builder
extends Object
Builds instances of type
ExternalSelectMenu.
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 TypeMethodDescriptionbuild()Builds a newExternalSelectMenu.from(ExternalSelectMenuIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.ExternalSelectMenuIFinstance.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.setInitialOption(Option initialOption) Initializes the optional valueinitialOptionto initialOption.setInitialOption(Optional<? extends Option> initialOption) Initializes the optional valueinitialOptionto initialOption.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.ExternalSelectMenuIFinstance.- 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
-
setInitialOption
Initializes the optional valueinitialOptionto initialOption.- Parameters:
initialOption- The value for initialOption,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setInitialOption
Initializes the optional valueinitialOptionto initialOption.- Parameters:
initialOption- The value for initialOption- 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
-
setConfirmationDialog
public final ExternalSelectMenu.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 ExternalSelectMenu.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 newExternalSelectMenu.- Returns:
- An immutable instance of ExternalSelectMenu
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-