Class TableColumnSetting.Builder

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

@Generated(from="TableColumnSettingIF", generator="Immutables") @NotThreadSafe public static final class TableColumnSetting.Builder extends Object
Builds instances of type TableColumnSetting. 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 TableColumnSetting.Builder from(TableColumnSettingIF instance)
      Fill a builder with attribute values from the provided TableColumnSettingIF instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setAlign

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

      public final TableColumnSetting.Builder setAlign(Optional<? extends TableColumnAlign> align)
      Initializes the optional value align to align.
      Parameters:
      align - The value for align
      Returns:
      this builder for use in a chained invocation
    • setWrapped

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

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

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