Class DatePicker.Builder

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

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

      public final DatePicker.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
    • setActionId

      public final DatePicker.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 DatePicker.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 DatePicker.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
    • setInitialDate

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

      public final DatePicker.Builder setInitialDate(Optional<? extends LocalDate> initialDate)
      Initializes the optional value initialDate to initialDate.
      Parameters:
      initialDate - The value for initialDate
      Returns:
      this builder for use in a chained invocation
    • setConfirmationDialog

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