@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ChatPostEphemeralMessageParamsIF"}) @Immutable public final class ChatPostEphemeralMessageParams extends Object implements ChatPostEphemeralMessageParamsIF
ChatPostEphemeralMessageParamsIF.
Use the builder to create immutable instances:
ChatPostEphemeralMessageParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatPostEphemeralMessageParams.Builder
Builds instances of type
ChatPostEphemeralMessageParams. |
| Modifier and Type | Method and Description |
|---|---|
static ChatPostEphemeralMessageParams.Builder |
builder()
Creates a builder for
ChatPostEphemeralMessageParams. |
static ChatPostEphemeralMessageParams |
copyOf(ChatPostEphemeralMessageParamsIF instance)
Creates an immutable copy of a
ChatPostEphemeralMessageParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChatPostEphemeralMessageParams that have equal attribute values. |
List<Attachment> |
getAttachments() |
List<Block> |
getBlocks() |
String |
getChannelId() |
String |
getParseMode() |
boolean |
getSendAsUser() |
boolean |
getShouldLinkNames() |
Optional<String> |
getText() |
Optional<String> |
getThreadTs() |
String |
getUserToSendTo() |
int |
hashCode()
Computes a hash code from attributes:
channelId, userToSendTo, sendAsUser, threadTs, shouldLinkNames, parseMode, text, attachments, blocks. |
String |
toString()
Prints the immutable value
ChatPostEphemeralMessageParams with attribute values. |
ChatPostEphemeralMessageParams |
withAttachments(Attachment... elements)
Copy the current immutable object with elements that replace the content of
attachments. |
ChatPostEphemeralMessageParams |
withAttachments(Iterable<? extends Attachment> elements)
Copy the current immutable object with elements that replace the content of
attachments. |
ChatPostEphemeralMessageParams |
withBlocks(Block... elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ChatPostEphemeralMessageParams |
withBlocks(Iterable<? extends Block> elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ChatPostEphemeralMessageParams |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
ChatPostEphemeralMessageParams |
withParseMode(String parseMode)
Copy the current immutable object by setting a value for the
parseMode attribute. |
ChatPostEphemeralMessageParams |
withSendAsUser(boolean sendAsUser)
Copy the current immutable object by setting a value for the
sendAsUser attribute. |
ChatPostEphemeralMessageParams |
withShouldLinkNames(boolean shouldLinkNames)
Copy the current immutable object by setting a value for the
shouldLinkNames attribute. |
ChatPostEphemeralMessageParams |
withText(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
text attribute. |
ChatPostEphemeralMessageParams |
withText(String value)
Copy the current immutable object by setting a present value for the optional
text attribute. |
ChatPostEphemeralMessageParams |
withThreadTs(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
threadTs attribute. |
ChatPostEphemeralMessageParams |
withThreadTs(String value)
Copy the current immutable object by setting a present value for the optional
threadTs attribute. |
ChatPostEphemeralMessageParams |
withUserToSendTo(String userToSendTo)
Copy the current immutable object by setting a value for the
userToSendTo attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckpublic String getChannelId()
getChannelId in interface HasChannelgetChannelId in interface ChatPostEphemeralMessageParamsIFchannelId attributepublic String getUserToSendTo()
getUserToSendTo in interface ChatPostEphemeralMessageParamsIFuserToSendTo attributepublic boolean getSendAsUser()
getSendAsUser in interface ChatPostEphemeralMessageParamsIFsendAsUser attributepublic Optional<String> getThreadTs()
getThreadTs in interface ChatPostEphemeralMessageParamsIFthreadTs attributepublic boolean getShouldLinkNames()
getShouldLinkNames in interface ChatPostEphemeralMessageParamsIFshouldLinkNames attributepublic String getParseMode()
getParseMode in interface ChatPostEphemeralMessageParamsIFparseMode attributepublic Optional<String> getText()
getText in interface MessageParamstext attributepublic List<Attachment> getAttachments()
getAttachments in interface MessageParamsattachments attributepublic List<Block> getBlocks()
getBlocks in interface MessageParamsblocks attributepublic final ChatPostEphemeralMessageParams withChannelId(String channelId)
channelId attribute.
An equals check used to prevent copying of the same value by returning this.channelId - A new value for channelIdthis objectpublic final ChatPostEphemeralMessageParams withUserToSendTo(String userToSendTo)
userToSendTo attribute.
An equals check used to prevent copying of the same value by returning this.userToSendTo - A new value for userToSendTothis objectpublic final ChatPostEphemeralMessageParams withSendAsUser(boolean sendAsUser)
sendAsUser attribute.
A value equality check is used to prevent copying of the same value by returning this.sendAsUser - A new value for sendAsUserthis objectpublic final ChatPostEphemeralMessageParams withThreadTs(@Nullable String value)
threadTs attribute.value - The value for threadTs, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostEphemeralMessageParams withThreadTs(Optional<String> optional)
threadTs attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for threadTsthis objectpublic final ChatPostEphemeralMessageParams withShouldLinkNames(boolean shouldLinkNames)
shouldLinkNames attribute.
A value equality check is used to prevent copying of the same value by returning this.shouldLinkNames - A new value for shouldLinkNamesthis objectpublic final ChatPostEphemeralMessageParams withParseMode(String parseMode)
parseMode attribute.
An equals check used to prevent copying of the same value by returning this.parseMode - A new value for parseModethis objectpublic final ChatPostEphemeralMessageParams withText(@Nullable String value)
text attribute.value - The value for text, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostEphemeralMessageParams withText(Optional<String> optional)
text attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for textthis objectpublic final ChatPostEphemeralMessageParams withAttachments(Attachment... elements)
attachments.elements - The elements to setthis objectpublic final ChatPostEphemeralMessageParams withAttachments(Iterable<? extends Attachment> elements)
attachments.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of attachments elements to setthis objectpublic final ChatPostEphemeralMessageParams withBlocks(Block... elements)
blocks.elements - The elements to setthis objectpublic final ChatPostEphemeralMessageParams withBlocks(Iterable<? extends Block> elements)
blocks.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of blocks elements to setthis objectpublic boolean equals(@Nullable Object another)
ChatPostEphemeralMessageParams that have equal attribute values.public int hashCode()
channelId, userToSendTo, sendAsUser, threadTs, shouldLinkNames, parseMode, text, attachments, blocks.public String toString()
ChatPostEphemeralMessageParams with attribute values.public static ChatPostEphemeralMessageParams copyOf(ChatPostEphemeralMessageParamsIF instance)
ChatPostEphemeralMessageParamsIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ChatPostEphemeralMessageParams.Builder builder()
ChatPostEphemeralMessageParams.Copyright © 2019. All rights reserved.