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