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().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TableColumnSetting.Builderbuilder()Creates a builder forTableColumnSetting.static TableColumnSettingcopyOf(TableColumnSettingIF instance) Creates an immutable copy of aTableColumnSettingIFvalue.booleanThis instance is equal to all instances ofTableColumnSettingthat have equal attribute values.getAlign()inthashCode()Computes a hash code from attributes:align,wrapped.toString()Prints the immutable valueTableColumnSettingwith attribute values.final TableColumnSettingwithAlign(TableColumnAlign value) Copy the current immutable object by setting a present value for the optionalalignattribute.final TableColumnSettingwithAlign(Optional<? extends TableColumnAlign> optional) Copy the current immutable object by setting an optional value for thealignattribute.final TableColumnSettingwithWrapped(Boolean value) Copy the current immutable object by setting a present value for the optionalwrappedattribute.final TableColumnSettingwithWrapped(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thewrappedattribute.
-
Method Details
-
getAlign
- Specified by:
getAlignin interfaceTableColumnSettingIF- Returns:
- The value of the
alignattribute
-
isWrapped
- Specified by:
isWrappedin interfaceTableColumnSettingIF- Returns:
- The value of the
wrappedattribute
-
withAlign
Copy the current immutable object by setting a present value for the optionalalignattribute.- Parameters:
value- The value for align,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withAlign
Copy the current immutable object by setting an optional value for thealignattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for align- Returns:
- A modified copy or
thisif not changed
-
withWrapped
Copy the current immutable object by setting a present value for the optionalwrappedattribute.- Parameters:
value- The value for wrapped,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withWrapped
Copy the current immutable object by setting an optional value for thewrappedattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for wrapped- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofTableColumnSettingthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:align,wrapped. -
toString
Prints the immutable valueTableColumnSettingwith attribute values. -
copyOf
Creates an immutable copy of aTableColumnSettingIFvalue. 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
Creates a builder forTableColumnSetting.TableColumnSetting.builder() .setAlign(Optional<com.hubspot.slack.client.models.blocks.table.TableColumnAlign>) // optionalalign.setWrapped(Optional<Boolean>) // optionalwrapped.build();- Returns:
- A new TableColumnSetting builder
-