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