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