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