Class PlainTextInput.Builder

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

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

      public final PlainTextInput.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 PlainTextInput.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 PlainTextInput.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
    • setInitialValue

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

      public final PlainTextInput.Builder setInitialValue(Optional<String> initialValue)
      Initializes the optional value initialValue to initialValue.
      Parameters:
      initialValue - The value for initialValue
      Returns:
      this builder for use in a chained invocation
    • setMultiline

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

      public final PlainTextInput.Builder setMultiline(Optional<Boolean> multiline)
      Initializes the optional value multiline to multiline.
      Parameters:
      multiline - The value for multiline
      Returns:
      this builder for use in a chained invocation
    • setMinLength

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

      public final PlainTextInput.Builder setMinLength(Optional<Integer> minLength)
      Initializes the optional value minLength to minLength.
      Parameters:
      minLength - The value for minLength
      Returns:
      this builder for use in a chained invocation
    • setMaxLength

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

      public final PlainTextInput.Builder setMaxLength(Optional<Integer> maxLength)
      Initializes the optional value maxLength to maxLength.
      Parameters:
      maxLength - The value for maxLength
      Returns:
      this builder for use in a chained invocation
    • build

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