Class Input.Builder

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

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

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

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

      public final Input.Builder setBlockId(Optional<String> blockId)
      Initializes the optional value blockId to blockId.
      Parameters:
      blockId - The value for blockId
      Returns:
      this builder for use in a chained invocation
    • setLabel

      public final Input.Builder setLabel(Text label)
      Initializes the value for the label attribute.
      Parameters:
      label - The value for label
      Returns:
      this builder for use in a chained invocation
    • setElement

      public final Input.Builder setElement(BlockElement element)
      Initializes the value for the element attribute.
      Parameters:
      element - The value for element
      Returns:
      this builder for use in a chained invocation
    • setHint

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

      public final Input.Builder setHint(Optional<? extends Text> hint)
      Initializes the optional value hint to hint.
      Parameters:
      hint - The value for hint
      Returns:
      this builder for use in a chained invocation
    • setOptional

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

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

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

      public final Input.Builder setDispatchAction(Optional<Boolean> dispatchAction)
      Initializes the optional value dispatchAction to dispatchAction.
      Parameters:
      dispatchAction - The value for dispatchAction
      Returns:
      this builder for use in a chained invocation
    • build

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