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