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