Class Table.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.Table.Builder
- Enclosing class:
Table
@Generated(from="TableIF",
generator="Immutables")
@NotThreadSafe
public static final class Table.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionfinal Table.BuilderaddAllColumnSettings(Iterable<? extends TableColumnSetting> elements) Adds elements tocolumnSettingslist.final Table.BuilderaddAllRows(Iterable<? extends com.google.common.collect.ImmutableList<TableCell>> elements) Adds elements torowslist.final Table.BuilderaddColumnSettings(TableColumnSetting element) Adds one element tocolumnSettingslist.final Table.BuilderaddColumnSettings(TableColumnSetting... elements) Adds elements tocolumnSettingslist.final Table.BuilderAdds one element torowslist.final Table.BuilderAdds elements torowslist.build()Builds a newTable.final Table.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.Blockinstance.final Table.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.TableIFinstance.final Table.BuildersetBlockId(String blockId) Initializes the optional valueblockIdto blockId.final Table.BuildersetBlockId(Optional<String> blockId) Initializes the optional valueblockIdto blockId.final Table.BuildersetColumnSettings(Iterable<? extends TableColumnSetting> elements) Sets or replaces all elements forcolumnSettingslist.final Table.BuilderSets or replaces all elements forrowslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.Blockinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.TableIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setBlockId
Initializes the optional valueblockIdto blockId.- Parameters:
blockId- The value for blockId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setBlockId
Initializes the optional valueblockIdto blockId.- Parameters:
blockId- The value for blockId- Returns:
thisbuilder for use in a chained invocation
-
addRows
Adds one element torowslist.- Parameters:
element- A rows element- Returns:
thisbuilder for use in a chained invocation
-
addRows
@SafeVarargs public final Table.Builder addRows(com.google.common.collect.ImmutableList<TableCell>... elements) Adds elements torowslist.- Parameters:
elements- An array of rows elements- Returns:
thisbuilder for use in a chained invocation
-
setRows
public final Table.Builder setRows(Iterable<? extends com.google.common.collect.ImmutableList<TableCell>> elements) Sets or replaces all elements forrowslist.- Parameters:
elements- An iterable of rows elements- Returns:
thisbuilder for use in a chained invocation
-
addAllRows
public final Table.Builder addAllRows(Iterable<? extends com.google.common.collect.ImmutableList<TableCell>> elements) Adds elements torowslist.- Parameters:
elements- An iterable of rows elements- Returns:
thisbuilder for use in a chained invocation
-
addColumnSettings
Adds one element tocolumnSettingslist.- Parameters:
element- A columnSettings element- Returns:
thisbuilder for use in a chained invocation
-
addColumnSettings
Adds elements tocolumnSettingslist.- Parameters:
elements- An array of columnSettings elements- Returns:
thisbuilder for use in a chained invocation
-
setColumnSettings
Sets or replaces all elements forcolumnSettingslist.- Parameters:
elements- An iterable of columnSettings elements- Returns:
thisbuilder for use in a chained invocation
-
addAllColumnSettings
Adds elements tocolumnSettingslist.- Parameters:
elements- An iterable of columnSettings elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newTable.- Returns:
- An immutable instance of Table
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-