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