Class TimePicker.Builder

java.lang.Object
com.hubspot.slack.client.models.blocks.elements.TimePicker.Builder
Enclosing class:
TimePicker

@Generated(from="TimePickerIF", generator="Immutables") @NotThreadSafe public static final class TimePicker.Builder extends Object
Builds instances of type TimePicker. 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 TimePicker.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 TimePicker.Builder from(TimePickerIF instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.blocks.elements.TimePickerIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setActionId

      public final TimePicker.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
    • setPlaceholder

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

      public final TimePicker.Builder setPlaceholder(Optional<? extends Text> placeholder)
      Initializes the optional value placeholder to placeholder.
      Parameters:
      placeholder - The value for placeholder
      Returns:
      this builder for use in a chained invocation
    • setTimezone

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

      public final TimePicker.Builder setTimezone(Optional<String> timezone)
      Initializes the optional value timezone to timezone.
      Parameters:
      timezone - The value for timezone
      Returns:
      this builder for use in a chained invocation
    • setInitialTime

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

      public final TimePicker.Builder setInitialTime(Optional<? extends LocalTime> initialTime)
      Initializes the optional value initialTime to initialTime.
      Parameters:
      initialTime - The value for initialTime
      Returns:
      this builder for use in a chained invocation
    • setConfirmationDialog

      public final TimePicker.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 TimePicker.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 TimePicker build()
      Builds a new TimePicker.
      Returns:
      An immutable instance of TimePicker
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing