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