Class DataTable.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.DataTable.Builder
- Enclosing class:
DataTable
@Generated(from="DataTableIF",
generator="Immutables")
@NotThreadSafe
public static final class DataTable.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionfinal DataTable.BuilderaddAllRows(Iterable<? extends com.google.common.collect.ImmutableList<DataTableCell>> elements) Adds elements torowslist.final DataTable.BuilderaddRows(com.google.common.collect.ImmutableList<DataTableCell> element) Adds one element torowslist.final DataTable.BuilderaddRows(com.google.common.collect.ImmutableList<DataTableCell>... elements) Adds elements torowslist.build()Builds a newDataTable.final DataTable.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.Blockinstance.final DataTable.Builderfrom(DataTableIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.DataTableIFinstance.final DataTable.BuildersetBlockId(String blockId) Initializes the optional valueblockIdto blockId.final DataTable.BuildersetBlockId(Optional<String> blockId) Initializes the optional valueblockIdto blockId.final DataTable.BuildersetCaption(String caption) Initializes the optional valuecaptionto caption.final DataTable.BuildersetCaption(Optional<String> caption) Initializes the optional valuecaptionto caption.final DataTable.BuildersetPageSize(Integer pageSize) Initializes the optional valuepageSizeto pageSize.final DataTable.BuildersetPageSize(Optional<Integer> pageSize) Initializes the optional valuepageSizeto pageSize.final DataTable.BuildersetRowHeaderColumnIndex(Integer rowHeaderColumnIndex) Initializes the optional valuerowHeaderColumnIndexto rowHeaderColumnIndex.final DataTable.BuildersetRowHeaderColumnIndex(Optional<Integer> rowHeaderColumnIndex) Initializes the optional valuerowHeaderColumnIndexto rowHeaderColumnIndex.final DataTable.BuildersetRows(Iterable<? extends com.google.common.collect.ImmutableList<DataTableCell>> elements) Sets 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.DataTableIFinstance.- 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
-
setCaption
Initializes the optional valuecaptionto caption.- Parameters:
caption- The value for caption,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setCaption
Initializes the optional valuecaptionto caption.- Parameters:
caption- The value for caption- Returns:
thisbuilder for use in a chained invocation
-
addRows
public final DataTable.Builder addRows(com.google.common.collect.ImmutableList<DataTableCell> element) Adds one element torowslist.- Parameters:
element- A rows element- Returns:
thisbuilder for use in a chained invocation
-
addRows
@SafeVarargs public final DataTable.Builder addRows(com.google.common.collect.ImmutableList<DataTableCell>... elements) Adds elements torowslist.- Parameters:
elements- An array of rows elements- Returns:
thisbuilder for use in a chained invocation
-
setRows
public final DataTable.Builder setRows(Iterable<? extends com.google.common.collect.ImmutableList<DataTableCell>> 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 DataTable.Builder addAllRows(Iterable<? extends com.google.common.collect.ImmutableList<DataTableCell>> elements) Adds elements torowslist.- Parameters:
elements- An iterable of rows elements- Returns:
thisbuilder for use in a chained invocation
-
setPageSize
Initializes the optional valuepageSizeto pageSize.- Parameters:
pageSize- The value for pageSize,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setPageSize
Initializes the optional valuepageSizeto pageSize.- Parameters:
pageSize- The value for pageSize- Returns:
thisbuilder for use in a chained invocation
-
setRowHeaderColumnIndex
Initializes the optional valuerowHeaderColumnIndexto rowHeaderColumnIndex.- Parameters:
rowHeaderColumnIndex- The value for rowHeaderColumnIndex,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setRowHeaderColumnIndex
Initializes the optional valuerowHeaderColumnIndexto rowHeaderColumnIndex.- Parameters:
rowHeaderColumnIndex- The value for rowHeaderColumnIndex- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newDataTable.- Returns:
- An immutable instance of DataTable
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-