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