Class RawTextTableCell
java.lang.Object
com.hubspot.slack.client.models.blocks.table.RawTextTableCell
- All Implemented Interfaces:
DataTableCell,RawTextTableCellIF,TableCell
@Generated(from="RawTextTableCellIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class RawTextTableCell
extends Object
implements RawTextTableCellIF
Immutable implementation of
RawTextTableCellIF.
Use the builder to create immutable instances:
RawTextTableCell.builder().
Use the static factory method to create immutable instances:
RawTextTableCell.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.table.RawTextTableCellIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic RawTextTableCell.Builderbuilder()Creates a builder forRawTextTableCell.static RawTextTableCellcopyOf(RawTextTableCellIF instance) Creates an immutable copy of aRawTextTableCellIFvalue.booleanThis instance is equal to all instances ofRawTextTableCellthat have equal attribute values.getText()getType()inthashCode()Computes a hash code from attributes:type,text.static RawTextTableCellConstruct a new immutableRawTextTableCellinstance.toString()Prints the immutable valueRawTextTableCellwith attribute values.final RawTextTableCellCopy the current immutable object by setting a value for thetextattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceRawTextTableCellIF- Specified by:
getTypein interfaceTableCell- Returns:
- The computed-at-construction value of the
typeattribute
-
getText
- Specified by:
getTextin interfaceRawTextTableCellIF- Returns:
- The value of the
textattribute
-
withText
Copy the current immutable object by setting a value for thetextattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for text- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofRawTextTableCellthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,text. -
toString
Prints the immutable valueRawTextTableCellwith attribute values. -
of
Construct a new immutableRawTextTableCellinstance.- Parameters:
text- The value for thetextattribute- Returns:
- An immutable RawTextTableCell instance
-
copyOf
Creates an immutable copy of aRawTextTableCellIFvalue. 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 RawTextTableCell instance
-
builder
Creates a builder forRawTextTableCell.RawTextTableCell.builder() .setText(String) // requiredtext.build();- Returns:
- A new RawTextTableCell builder
-