@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ChatPostMessageResponseIF"}) @Immutable public final class ChatPostMessageResponse extends Object implements ChatPostMessageResponseIF
ChatPostMessageResponseIF.
Use the builder to create immutable instances:
ChatPostMessageResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatPostMessageResponse.Builder
Builds instances of type
ChatPostMessageResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ChatPostMessageResponse.Builder |
builder()
Creates a builder for
ChatPostMessageResponse. |
static ChatPostMessageResponse |
copyOf(ChatPostMessageResponseIF instance)
Creates an immutable copy of a
ChatPostMessageResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChatPostMessageResponse that have equal attribute values. |
String |
getChannel() |
Map<String,Object> |
getMessage() |
Optional<ResponseMetadata> |
getResponseMetadata() |
String |
getTs() |
int |
hashCode()
Computes a hash code from attributes:
ts, channel, message, ok, responseMetadata. |
boolean |
isOk() |
String |
toString()
Prints the immutable value
ChatPostMessageResponse with attribute values. |
ChatPostMessageResponse |
withChannel(String channel)
Copy the current immutable object by setting a value for the
channel attribute. |
ChatPostMessageResponse |
withMessage(Map<String,? extends Object> message)
Copy the current immutable object by replacing the
message map with the specified map. |
ChatPostMessageResponse |
withOk(boolean ok)
Copy the current immutable object by setting a value for the
ok attribute. |
ChatPostMessageResponse |
withResponseMetadata(Optional<ResponseMetadata> optional)
Copy the current immutable object by setting an optional value for the
responseMetadata attribute. |
ChatPostMessageResponse |
withResponseMetadata(ResponseMetadata value)
Copy the current immutable object by setting a present value for the optional
responseMetadata attribute. |
ChatPostMessageResponse |
withTs(String ts)
Copy the current immutable object by setting a value for the
ts attribute. |
public String getTs()
getTs in interface ChatPostMessageResponseIFts attributepublic String getChannel()
getChannel in interface ChatPostMessageResponseIFchannel attributepublic Map<String,Object> getMessage()
getMessage in interface ChatPostMessageResponseIFmessage attributepublic boolean isOk()
isOk in interface SlackResponseok attributepublic Optional<ResponseMetadata> getResponseMetadata()
getResponseMetadata in interface SlackResponseresponseMetadata attributepublic final ChatPostMessageResponse 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 ChatPostMessageResponse withChannel(String channel)
channel attribute.
An equals check used to prevent copying of the same value by returning this.channel - A new value for channelthis objectpublic final ChatPostMessageResponse withMessage(Map<String,? extends Object> message)
message 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.message - The entries to be added to the message mapthis objectpublic final ChatPostMessageResponse withOk(boolean ok)
ok attribute.
A value equality check is used to prevent copying of the same value by returning this.ok - A new value for okthis objectpublic final ChatPostMessageResponse withResponseMetadata(@Nullable ResponseMetadata value)
responseMetadata attribute.value - The value for responseMetadata, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageResponse withResponseMetadata(Optional<ResponseMetadata> optional)
responseMetadata 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 responseMetadatathis objectpublic boolean equals(@Nullable Object another)
ChatPostMessageResponse that have equal attribute values.public int hashCode()
ts, channel, message, ok, responseMetadata.public String toString()
ChatPostMessageResponse with attribute values.public static ChatPostMessageResponse copyOf(ChatPostMessageResponseIF instance)
ChatPostMessageResponseIF 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 ChatPostMessageResponse.Builder builder()
ChatPostMessageResponse.Copyright © 2019. All rights reserved.