Class MarkdownTextChunk
java.lang.Object
com.hubspot.slack.client.methods.params.stream.chunks.MarkdownTextChunk
- All Implemented Interfaces:
MarkdownTextChunkIF,StreamChunk
@Generated(from="MarkdownTextChunkIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class MarkdownTextChunk
extends Object
implements MarkdownTextChunkIF
Immutable implementation of
MarkdownTextChunkIF.
Use the builder to create immutable instances:
MarkdownTextChunk.builder().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.methods.params.stream.chunks.MarkdownTextChunkIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic MarkdownTextChunk.Builderbuilder()Creates a builder forMarkdownTextChunk.static MarkdownTextChunkcopyOf(MarkdownTextChunkIF instance) Creates an immutable copy of aMarkdownTextChunkIFvalue.booleanThis instance is equal to all instances ofMarkdownTextChunkthat have equal attribute values.getText()getType()inthashCode()Computes a hash code from attributes:type,text.toString()Prints the immutable valueMarkdownTextChunkwith attribute values.final MarkdownTextChunkCopy the current immutable object by setting a value for thetextattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceMarkdownTextChunkIF- Specified by:
getTypein interfaceStreamChunk- Returns:
- The computed-at-construction value of the
typeattribute
-
getText
- Specified by:
getTextin interfaceMarkdownTextChunkIF- 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 ofMarkdownTextChunkthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,text. -
toString
Prints the immutable valueMarkdownTextChunkwith attribute values. -
copyOf
Creates an immutable copy of aMarkdownTextChunkIFvalue. 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 MarkdownTextChunk instance
-
builder
Creates a builder forMarkdownTextChunk.MarkdownTextChunk.builder() .setText(String) // requiredtext.build();- Returns:
- A new MarkdownTextChunk builder
-