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