@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ChatUpdateMessageParamsIF"}) @Immutable public final class ChatUpdateMessageParams extends Object implements ChatUpdateMessageParamsIF
ChatUpdateMessageParamsIF.
Use the builder to create immutable instances:
ChatUpdateMessageParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatUpdateMessageParams.Builder
Builds instances of type
ChatUpdateMessageParams. |
| Modifier and Type | Method and Description |
|---|---|
static ChatUpdateMessageParams.Builder |
builder()
Creates a builder for
ChatUpdateMessageParams. |
static ChatUpdateMessageParams |
copyOf(ChatUpdateMessageParamsIF instance)
Creates an immutable copy of a
ChatUpdateMessageParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChatUpdateMessageParams that have equal attribute values. |
Optional<Boolean> |
getAsUser() |
List<Attachment> |
getAttachments() |
List<Block> |
getBlocks() |
String |
getChannelId() |
String |
getParse() |
Optional<String> |
getText() |
String |
getTs() |
int |
hashCode()
Computes a hash code from attributes:
channelId, text, ts, asUser, shouldLinkNames, parse, attachments, blocks. |
boolean |
shouldLinkNames() |
String |
toString()
Prints the immutable value
ChatUpdateMessageParams with attribute values. |
ChatUpdateMessageParams |
withAsUser(Boolean value)
Copy the current immutable object by setting a present value for the optional
asUser attribute. |
ChatUpdateMessageParams |
withAsUser(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
asUser attribute. |
ChatUpdateMessageParams |
withAttachments(Attachment... elements)
Copy the current immutable object with elements that replace the content of
attachments. |
ChatUpdateMessageParams |
withAttachments(Iterable<? extends Attachment> elements)
Copy the current immutable object with elements that replace the content of
attachments. |
ChatUpdateMessageParams |
withBlocks(Block... elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ChatUpdateMessageParams |
withBlocks(Iterable<? extends Block> elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ChatUpdateMessageParams |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
ChatUpdateMessageParams |
withParse(String parse)
Copy the current immutable object by setting a value for the
parse attribute. |
ChatUpdateMessageParams |
withShouldLinkNames(boolean shouldLinkNames)
Copy the current immutable object by setting a value for the
shouldLinkNames attribute. |
ChatUpdateMessageParams |
withText(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
text attribute. |
ChatUpdateMessageParams |
withText(String value)
Copy the current immutable object by setting a present value for the optional
text attribute. |
ChatUpdateMessageParams |
withTs(String ts)
Copy the current immutable object by setting a value for the
ts attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckpublic String getChannelId()
getChannelId in interface HasChannelgetChannelId in interface ChatUpdateMessageParamsIFchannelId attributepublic Optional<String> getText()
getText in interface ChatUpdateMessageParamsIFgetText in interface MessageParamstext attributepublic String getTs()
getTs in interface ChatUpdateMessageParamsIFts attributepublic Optional<Boolean> getAsUser()
getAsUser in interface ChatUpdateMessageParamsIFasUser attributepublic boolean shouldLinkNames()
shouldLinkNames in interface ChatUpdateMessageParamsIFshouldLinkNames attributepublic String getParse()
getParse in interface ChatUpdateMessageParamsIFparse attributepublic List<Attachment> getAttachments()
getAttachments in interface MessageParamsattachments attributepublic List<Block> getBlocks()
getBlocks in interface MessageParamsblocks attributepublic final ChatUpdateMessageParams 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 ChatUpdateMessageParams withText(@Nullable String value)
text attribute.value - The value for text, null is accepted as java.util.Optional.empty()this objectpublic final ChatUpdateMessageParams 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 ChatUpdateMessageParams withTs(String ts)
ts attribute.
An equals check used to prevent copying of the same value by returning this.ts - A new value for tsthis objectpublic final ChatUpdateMessageParams withAsUser(@Nullable Boolean value)
asUser attribute.value - The value for asUser, null is accepted as java.util.Optional.empty()this objectpublic final ChatUpdateMessageParams withAsUser(Optional<Boolean> optional)
asUser attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for asUserthis objectpublic final ChatUpdateMessageParams 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 ChatUpdateMessageParams withParse(String parse)
parse attribute.
An equals check used to prevent copying of the same value by returning this.parse - A new value for parsethis objectpublic final ChatUpdateMessageParams withAttachments(Attachment... elements)
attachments.elements - The elements to setthis objectpublic final ChatUpdateMessageParams 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 ChatUpdateMessageParams withBlocks(Block... elements)
blocks.elements - The elements to setthis objectpublic final ChatUpdateMessageParams 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)
ChatUpdateMessageParams that have equal attribute values.public int hashCode()
channelId, text, ts, asUser, shouldLinkNames, parse, attachments, blocks.public String toString()
ChatUpdateMessageParams with attribute values.public static ChatUpdateMessageParams copyOf(ChatUpdateMessageParamsIF instance)
ChatUpdateMessageParamsIF 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 ChatUpdateMessageParams.Builder builder()
ChatUpdateMessageParams.Copyright © 2019. All rights reserved.