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 Summary
Modifier and TypeMethodDescriptionbuild()Builds a newTableColumnSetting.from(TableColumnSettingIF instance) Fill a builder with attribute values from the providedTableColumnSettingIFinstance.setAlign(TableColumnAlign align) Initializes the optional valuealignto align.setAlign(Optional<? extends TableColumnAlign> align) Initializes the optional valuealignto align.setWrapped(Boolean wrapped) Initializes the optional valuewrappedto wrapped.setWrapped(Optional<Boolean> wrapped) Initializes the optional valuewrappedto wrapped.
-
Method Details
-
from
Fill a builder with attribute values from the providedTableColumnSettingIFinstance. 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:
thisbuilder for use in a chained invocation
-
setAlign
Initializes the optional valuealignto align.- Parameters:
align- The value for align,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setAlign
Initializes the optional valuealignto align.- Parameters:
align- The value for align- Returns:
thisbuilder for use in a chained invocation
-
setWrapped
Initializes the optional valuewrappedto wrapped.- Parameters:
wrapped- The value for wrapped,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setWrapped
Initializes the optional valuewrappedto wrapped.- Parameters:
wrapped- The value for wrapped- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newTableColumnSetting.- Returns:
- An immutable instance of TableColumnSetting
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-