@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ChatUnfurlParamsIF"}) @Immutable public final class ChatUnfurlParams extends Object implements ChatUnfurlParamsIF
ChatUnfurlParamsIF.
Use the builder to create immutable instances:
ChatUnfurlParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatUnfurlParams.Builder
Builds instances of type
ChatUnfurlParams. |
| Modifier and Type | Method and Description |
|---|---|
static ChatUnfurlParams.Builder |
builder()
Creates a builder for
ChatUnfurlParams. |
static ChatUnfurlParams |
copyOf(ChatUnfurlParamsIF instance)
Creates an immutable copy of a
ChatUnfurlParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChatUnfurlParams that have equal attribute values. |
String |
getChannelId() |
String |
getTs() |
Map<String,BlockOrAttachment> |
getUnfurls() |
Optional<String> |
getUserAuthMessage() |
Optional<URI> |
getUserAuthUrl() |
int |
hashCode()
Computes a hash code from attributes:
channelId, ts, unfurls, userAuthRequired, userAuthMessage, userAuthUrl. |
Optional<Boolean> |
isUserAuthRequired() |
String |
toString()
Prints the immutable value
ChatUnfurlParams with attribute values. |
ChatUnfurlParams |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
ChatUnfurlParams |
withTs(String ts)
Copy the current immutable object by setting a value for the
ts attribute. |
ChatUnfurlParams |
withUnfurls(Map<String,? extends BlockOrAttachment> unfurls)
Copy the current immutable object by replacing the
unfurls map with the specified map. |
ChatUnfurlParams |
withUserAuthMessage(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
userAuthMessage attribute. |
ChatUnfurlParams |
withUserAuthMessage(String value)
Copy the current immutable object by setting a present value for the optional
userAuthMessage attribute. |
ChatUnfurlParams |
withUserAuthRequired(Boolean value)
Copy the current immutable object by setting a present value for the optional
userAuthRequired attribute. |
ChatUnfurlParams |
withUserAuthRequired(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
userAuthRequired attribute. |
ChatUnfurlParams |
withUserAuthUrl(Optional<URI> optional)
Copy the current immutable object by setting an optional value for the
userAuthUrl attribute. |
ChatUnfurlParams |
withUserAuthUrl(URI value)
Copy the current immutable object by setting a present value for the optional
userAuthUrl attribute. |
public String getChannelId()
getChannelId in interface HasChannelgetChannelId in interface ChatUnfurlParamsIFchannelId attributepublic String getTs()
getTs in interface ChatUnfurlParamsIFts attributepublic Map<String,BlockOrAttachment> getUnfurls()
getUnfurls in interface ChatUnfurlParamsIFunfurls attributepublic Optional<Boolean> isUserAuthRequired()
isUserAuthRequired in interface ChatUnfurlParamsIFuserAuthRequired attributepublic Optional<String> getUserAuthMessage()
getUserAuthMessage in interface ChatUnfurlParamsIFuserAuthMessage attributepublic Optional<URI> getUserAuthUrl()
getUserAuthUrl in interface ChatUnfurlParamsIFuserAuthUrl attributepublic final ChatUnfurlParams 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 ChatUnfurlParams 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 ChatUnfurlParams withUnfurls(Map<String,? extends BlockOrAttachment> unfurls)
unfurls map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.unfurls - The entries to be added to the unfurls mapthis objectpublic final ChatUnfurlParams withUserAuthRequired(@Nullable Boolean value)
userAuthRequired attribute.value - The value for userAuthRequired, null is accepted as java.util.Optional.empty()this objectpublic final ChatUnfurlParams withUserAuthRequired(Optional<Boolean> optional)
userAuthRequired attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for userAuthRequiredthis objectpublic final ChatUnfurlParams withUserAuthMessage(@Nullable String value)
userAuthMessage attribute.value - The value for userAuthMessage, null is accepted as java.util.Optional.empty()this objectpublic final ChatUnfurlParams withUserAuthMessage(Optional<String> optional)
userAuthMessage attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for userAuthMessagethis objectpublic final ChatUnfurlParams withUserAuthUrl(@Nullable URI value)
userAuthUrl attribute.value - The value for userAuthUrl, null is accepted as java.util.Optional.empty()this objectpublic final ChatUnfurlParams withUserAuthUrl(Optional<URI> optional)
userAuthUrl attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for userAuthUrlthis objectpublic boolean equals(@Nullable Object another)
ChatUnfurlParams that have equal attribute values.public int hashCode()
channelId, ts, unfurls, userAuthRequired, userAuthMessage, userAuthUrl.public String toString()
ChatUnfurlParams with attribute values.public static ChatUnfurlParams copyOf(ChatUnfurlParamsIF instance)
ChatUnfurlParamsIF 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 ChatUnfurlParams.Builder builder()
ChatUnfurlParams.Copyright © 2020. All rights reserved.