@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ChannelsListParamsIF"}) @Immutable public final class ChannelsListParams extends Object implements ChannelsListParamsIF
ChannelsListParamsIF.
Use the builder to create immutable instances:
ChannelsListParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChannelsListParams.Builder
Builds instances of type
ChannelsListParams. |
| Modifier and Type | Method and Description |
|---|---|
static ChannelsListParams.Builder |
builder()
Creates a builder for
ChannelsListParams. |
static ChannelsListParams |
copyOf(ChannelsListParamsIF instance)
Creates an immutable copy of a
ChannelsListParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChannelsListParams that have equal attribute values. |
Optional<String> |
getCursor() |
Optional<Integer> |
getLimit() |
int |
hashCode()
Computes a hash code from attributes:
cursor, limit, shouldExcludeArchived, shouldExcludeMembers. |
Optional<Boolean> |
shouldExcludeArchived() |
boolean |
shouldExcludeMembers() |
String |
toString()
Prints the immutable value
ChannelsListParams with attribute values. |
ChannelsListParams |
withCursor(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
cursor attribute. |
ChannelsListParams |
withCursor(String value)
Copy the current immutable object by setting a present value for the optional
cursor attribute. |
ChannelsListParams |
withLimit(Integer value)
Copy the current immutable object by setting a present value for the optional
limit attribute. |
ChannelsListParams |
withLimit(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
limit attribute. |
ChannelsListParams |
withShouldExcludeArchived(Boolean value)
Copy the current immutable object by setting a present value for the optional
shouldExcludeArchived attribute. |
ChannelsListParams |
withShouldExcludeArchived(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
shouldExcludeArchived attribute. |
ChannelsListParams |
withShouldExcludeMembers(boolean shouldExcludeMembers)
Copy the current immutable object by setting a value for the
shouldExcludeMembers attribute. |
public Optional<String> getCursor()
getCursor in interface ChannelsListParamsIFcursor attributepublic Optional<Integer> getLimit()
getLimit in interface ChannelsListParamsIFlimit attributepublic Optional<Boolean> shouldExcludeArchived()
shouldExcludeArchived in interface BaseChannelsFiltershouldExcludeArchived attributepublic boolean shouldExcludeMembers()
shouldExcludeMembers in interface BaseChannelsFiltershouldExcludeMembers attributepublic final ChannelsListParams withCursor(@Nullable String value)
cursor attribute.value - The value for cursor, null is accepted as java.util.Optional.empty()this objectpublic final ChannelsListParams withCursor(Optional<String> optional)
cursor attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for cursorthis objectpublic final ChannelsListParams withLimit(@Nullable Integer value)
limit attribute.value - The value for limit, null is accepted as java.util.Optional.empty()this objectpublic final ChannelsListParams withLimit(Optional<Integer> optional)
limit attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for limitthis objectpublic final ChannelsListParams withShouldExcludeArchived(@Nullable Boolean value)
shouldExcludeArchived attribute.value - The value for shouldExcludeArchived, null is accepted as java.util.Optional.empty()this objectpublic final ChannelsListParams withShouldExcludeArchived(Optional<Boolean> optional)
shouldExcludeArchived attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for shouldExcludeArchivedthis objectpublic final ChannelsListParams withShouldExcludeMembers(boolean shouldExcludeMembers)
shouldExcludeMembers attribute.
A value equality check is used to prevent copying of the same value by returning this.shouldExcludeMembers - A new value for shouldExcludeMembersthis objectpublic boolean equals(@Nullable Object another)
ChannelsListParams that have equal attribute values.public int hashCode()
cursor, limit, shouldExcludeArchived, shouldExcludeMembers.public String toString()
ChannelsListParams with attribute values.public static ChannelsListParams copyOf(ChannelsListParamsIF instance)
ChannelsListParamsIF 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 ChannelsListParams.Builder builder()
ChannelsListParams.Copyright © 2019. All rights reserved.