@NotThreadSafe public static final class ChannelSelectMenu.Builder extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
ChannelSelectMenu |
build()
Builds a new
ChannelSelectMenu. |
ChannelSelectMenu.Builder |
from(ChannelSelectMenuIF instance)
Fill a builder with attribute values from the provided
ChannelSelectMenuIF instance. |
ChannelSelectMenu.Builder |
setActionId(String actionId)
Initializes the value for the
actionId attribute. |
ChannelSelectMenu.Builder |
setConfirmationDialog(ConfirmationDialog confirmationDialog)
Initializes the optional value
confirmationDialog to confirmationDialog. |
ChannelSelectMenu.Builder |
setConfirmationDialog(Optional<ConfirmationDialog> confirmationDialog)
Initializes the optional value
confirmationDialog to confirmationDialog. |
ChannelSelectMenu.Builder |
setInitialChannelId(Optional<String> initialChannelId)
Initializes the optional value
initialChannelId to initialChannelId. |
ChannelSelectMenu.Builder |
setInitialChannelId(String initialChannelId)
Initializes the optional value
initialChannelId to initialChannelId. |
ChannelSelectMenu.Builder |
setPlaceholder(Text placeholder)
Initializes the value for the
placeholder attribute. |
public final ChannelSelectMenu.Builder from(ChannelSelectMenuIF instance)
ChannelSelectMenuIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChannelSelectMenu.Builder setPlaceholder(Text placeholder)
placeholder attribute.placeholder - The value for placeholderthis builder for use in a chained invocationpublic final ChannelSelectMenu.Builder setActionId(String actionId)
actionId attribute.actionId - The value for actionIdthis builder for use in a chained invocationpublic final ChannelSelectMenu.Builder setInitialChannelId(@Nullable String initialChannelId)
initialChannelId to initialChannelId.initialChannelId - The value for initialChannelId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelSelectMenu.Builder setInitialChannelId(Optional<String> initialChannelId)
initialChannelId to initialChannelId.initialChannelId - The value for initialChannelIdthis builder for use in a chained invocationpublic final ChannelSelectMenu.Builder setConfirmationDialog(@Nullable ConfirmationDialog confirmationDialog)
confirmationDialog to confirmationDialog.confirmationDialog - The value for confirmationDialog, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelSelectMenu.Builder setConfirmationDialog(Optional<ConfirmationDialog> confirmationDialog)
confirmationDialog to confirmationDialog.confirmationDialog - The value for confirmationDialogthis builder for use in a chained invocationpublic ChannelSelectMenu build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChannelSelectMenu.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.