Class TableColumnSetting

java.lang.Object
com.hubspot.slack.client.models.blocks.table.TableColumnSetting
All Implemented Interfaces:
TableColumnSettingIF

@Generated(from="TableColumnSettingIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class TableColumnSetting extends Object implements TableColumnSettingIF
Immutable implementation of TableColumnSettingIF.

Use the builder to create immutable instances: TableColumnSetting.builder().

  • Method Details

    • getAlign

      public Optional<TableColumnAlign> getAlign()
      Specified by:
      getAlign in interface TableColumnSettingIF
      Returns:
      The value of the align attribute
    • isWrapped

      public Optional<Boolean> isWrapped()
      Specified by:
      isWrapped in interface TableColumnSettingIF
      Returns:
      The value of the wrapped attribute
    • withAlign

      public final TableColumnSetting withAlign(@Nullable TableColumnAlign value)
      Copy the current immutable object by setting a present value for the optional align attribute.
      Parameters:
      value - The value for align, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withAlign

      public final TableColumnSetting withAlign(Optional<? extends TableColumnAlign> optional)
      Copy the current immutable object by setting an optional value for the align attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for align
      Returns:
      A modified copy or this if not changed
    • withWrapped

      public final TableColumnSetting withWrapped(@Nullable Boolean value)
      Copy the current immutable object by setting a present value for the optional wrapped attribute.
      Parameters:
      value - The value for wrapped, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withWrapped

      public final TableColumnSetting withWrapped(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the wrapped attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for wrapped
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of TableColumnSetting that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: align, wrapped.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value TableColumnSetting with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static TableColumnSetting copyOf(TableColumnSettingIF instance)
      Creates an immutable copy of a TableColumnSettingIF value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable TableColumnSetting instance
    • builder

      public static TableColumnSetting.Builder builder()
      Creates a builder for TableColumnSetting.
       TableColumnSetting.builder()
          .setAlign(Optional<com.hubspot.slack.client.models.blocks.table.TableColumnAlign>) // optional align
          .setWrapped(Optional<Boolean>) // optional wrapped
          .build();
       
      Returns:
      A new TableColumnSetting builder