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