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 Details

    • from

      public final ChannelSelectMenu.Builder from(HasActionId instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.blocks.elements.HasActionId instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ChannelSelectMenu.Builder from(ChannelSelectMenuIF instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.blocks.elements.ChannelSelectMenuIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setPlaceholder

      public final ChannelSelectMenu.Builder setPlaceholder(Text placeholder)
      Initializes the value for the placeholder attribute.
      Parameters:
      placeholder - The value for placeholder
      Returns:
      this builder for use in a chained invocation
    • setActionId

      public final ChannelSelectMenu.Builder setActionId(String actionId)
      Initializes the value for the actionId attribute.
      Parameters:
      actionId - The value for actionId
      Returns:
      this builder for use in a chained invocation
    • setInitialChannelId

      public final ChannelSelectMenu.Builder setInitialChannelId(@Nullable String initialChannelId)
      Initializes the optional value initialChannelId to initialChannelId.
      Parameters:
      initialChannelId - The value for initialChannelId, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setInitialChannelId

      public final ChannelSelectMenu.Builder setInitialChannelId(Optional<String> initialChannelId)
      Initializes the optional value initialChannelId to initialChannelId.
      Parameters:
      initialChannelId - The value for initialChannelId
      Returns:
      this builder for use in a chained invocation
    • setConfirmationDialog

      public final ChannelSelectMenu.Builder setConfirmationDialog(@Nullable ConfirmationDialog confirmationDialog)
      Initializes the optional value confirmationDialog to confirmationDialog.
      Parameters:
      confirmationDialog - The value for confirmationDialog, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setConfirmationDialog

      public final ChannelSelectMenu.Builder setConfirmationDialog(Optional<? extends ConfirmationDialog> confirmationDialog)
      Initializes the optional value confirmationDialog to confirmationDialog.
      Parameters:
      confirmationDialog - The value for confirmationDialog
      Returns:
      this builder for use in a chained invocation
    • build

      public ChannelSelectMenu build()
      Builds a new ChannelSelectMenu.
      Returns:
      An immutable instance of ChannelSelectMenu
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing