@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ChatPostEphemeralMessageResponseIF"}) @Immutable public final class ChatPostEphemeralMessageResponse extends Object implements ChatPostEphemeralMessageResponseIF
ChatPostEphemeralMessageResponseIF.
Use the builder to create immutable instances:
ChatPostEphemeralMessageResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatPostEphemeralMessageResponse.Builder
Builds instances of type
ChatPostEphemeralMessageResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ChatPostEphemeralMessageResponse.Builder |
builder()
Creates a builder for
ChatPostEphemeralMessageResponse. |
static ChatPostEphemeralMessageResponse |
copyOf(ChatPostEphemeralMessageResponseIF instance)
Creates an immutable copy of a
ChatPostEphemeralMessageResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChatPostEphemeralMessageResponse that have equal attribute values. |
String |
getMessageTs() |
Optional<ResponseMetadata> |
getResponseMetadata() |
int |
hashCode()
Computes a hash code from attributes:
messageTs, ok, responseMetadata. |
boolean |
isOk() |
String |
toString()
Prints the immutable value
ChatPostEphemeralMessageResponse with attribute values. |
ChatPostEphemeralMessageResponse |
withMessageTs(String messageTs)
Copy the current immutable object by setting a value for the
messageTs attribute. |
ChatPostEphemeralMessageResponse |
withOk(boolean ok)
Copy the current immutable object by setting a value for the
ok attribute. |
ChatPostEphemeralMessageResponse |
withResponseMetadata(Optional<ResponseMetadata> optional)
Copy the current immutable object by setting an optional value for the
responseMetadata attribute. |
ChatPostEphemeralMessageResponse |
withResponseMetadata(ResponseMetadata value)
Copy the current immutable object by setting a present value for the optional
responseMetadata attribute. |
public String getMessageTs()
getMessageTs in interface ChatPostEphemeralMessageResponseIFmessageTs attributepublic boolean isOk()
isOk in interface SlackResponseok attributepublic Optional<ResponseMetadata> getResponseMetadata()
getResponseMetadata in interface SlackResponseresponseMetadata attributepublic final ChatPostEphemeralMessageResponse withMessageTs(String messageTs)
messageTs attribute.
An equals check used to prevent copying of the same value by returning this.messageTs - A new value for messageTsthis objectpublic final ChatPostEphemeralMessageResponse 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 ChatPostEphemeralMessageResponse withResponseMetadata(@Nullable ResponseMetadata value)
responseMetadata attribute.value - The value for responseMetadata, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostEphemeralMessageResponse 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)
ChatPostEphemeralMessageResponse that have equal attribute values.public int hashCode()
messageTs, ok, responseMetadata.public String toString()
ChatPostEphemeralMessageResponse with attribute values.public static ChatPostEphemeralMessageResponse copyOf(ChatPostEphemeralMessageResponseIF instance)
ChatPostEphemeralMessageResponseIF 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 ChatPostEphemeralMessageResponse.Builder builder()
ChatPostEphemeralMessageResponse.Copyright © 2019. All rights reserved.