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