Class ChatUnfurlBlocks
java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatUnfurlBlocks
- All Implemented Interfaces:
ChatUnfurlBlocksIF,ChatUnfurlBlocksOrAttachment
@Generated(from="ChatUnfurlBlocksIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatUnfurlBlocks
extends Object
implements ChatUnfurlBlocksIF
Immutable implementation of
ChatUnfurlBlocksIF.
Use the builder to create immutable instances:
ChatUnfurlBlocks.builder().
Use the static factory method to create immutable instances:
ChatUnfurlBlocks.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatUnfurlBlocks.Builderbuilder()Creates a builder forChatUnfurlBlocks.static ChatUnfurlBlockscopyOf(ChatUnfurlBlocksIF instance) Creates an immutable copy of aChatUnfurlBlocksIFvalue.booleanThis instance is equal to all instances ofChatUnfurlBlocksthat have equal attribute values.List<? extends BlockOrAttachment> inthashCode()Computes a hash code from attributes:blocks.static ChatUnfurlBlocksof(List<? extends BlockOrAttachment> blocks) Construct a new immutableChatUnfurlBlocksinstance.toString()Prints the immutable valueChatUnfurlBlockswith attribute values.final ChatUnfurlBlockswithBlocks(List<? extends BlockOrAttachment> value) Copy the current immutable object by setting a value for theblocksattribute.
-
Method Details
-
getBlocks
- Specified by:
getBlocksin interfaceChatUnfurlBlocksIF- Returns:
- The value of the
blocksattribute
-
withBlocks
Copy the current immutable object by setting a value for theblocksattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for blocks- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChatUnfurlBlocksthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:blocks. -
toString
Prints the immutable valueChatUnfurlBlockswith attribute values. -
of
Construct a new immutableChatUnfurlBlocksinstance.- Parameters:
blocks- The value for theblocksattribute- Returns:
- An immutable ChatUnfurlBlocks instance
-
copyOf
Creates an immutable copy of aChatUnfurlBlocksIFvalue. 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 ChatUnfurlBlocks instance
-
builder
Creates a builder forChatUnfurlBlocks.ChatUnfurlBlocks.builder() .setBlocks(List<? extends com.hubspot.slack.client.models.BlockOrAttachment>) // requiredblocks.build();- Returns:
- A new ChatUnfurlBlocks builder
-