@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","UsergroupCreateParamsIF"}) @Immutable public final class UsergroupCreateParams extends Object implements UsergroupCreateParamsIF
UsergroupCreateParamsIF.
Use the builder to create immutable instances:
UsergroupCreateParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
UsergroupCreateParams.Builder
Builds instances of type
UsergroupCreateParams. |
| Modifier and Type | Method and Description |
|---|---|
static UsergroupCreateParams.Builder |
builder()
Creates a builder for
UsergroupCreateParams. |
static UsergroupCreateParams |
copyOf(UsergroupCreateParamsIF instance)
Creates an immutable copy of a
UsergroupCreateParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
UsergroupCreateParams that have equal attribute values. |
Optional<String> |
getDescription() |
Optional<String> |
getEncodedChannels() |
Optional<String> |
getHandle() |
Optional<Boolean> |
getIncludeCount() |
String |
getName() |
List<String> |
getRawChannelIds() |
int |
hashCode()
Computes a hash code from attributes:
name, description, handle, includeCount, rawChannelIds, encodedChannels. |
String |
toString()
Prints the immutable value
UsergroupCreateParams with attribute values. |
UsergroupCreateParams |
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
description attribute. |
UsergroupCreateParams |
withDescription(String value)
Copy the current immutable object by setting a present value for the optional
description attribute. |
UsergroupCreateParams |
withHandle(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
handle attribute. |
UsergroupCreateParams |
withHandle(String value)
Copy the current immutable object by setting a present value for the optional
handle attribute. |
UsergroupCreateParams |
withIncludeCount(Boolean value)
Copy the current immutable object by setting a present value for the optional
includeCount attribute. |
UsergroupCreateParams |
withIncludeCount(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
includeCount attribute. |
UsergroupCreateParams |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
UsergroupCreateParams |
withRawChannelIds(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
rawChannelIds. |
UsergroupCreateParams |
withRawChannelIds(String... elements)
Copy the current immutable object with elements that replace the content of
rawChannelIds. |
public String getName()
getName in interface UsergroupCreateParamsIFname attributepublic Optional<String> getDescription()
getDescription in interface UsergroupCreateParamsIFdescription attributepublic Optional<String> getHandle()
getHandle in interface UsergroupCreateParamsIFhandle attributepublic Optional<Boolean> getIncludeCount()
getIncludeCount in interface UsergroupCreateParamsIFincludeCount attributepublic List<String> getRawChannelIds()
getRawChannelIds in interface HasCommaSeperatedChannelIdsrawChannelIds attributepublic Optional<String> getEncodedChannels()
getEncodedChannels in interface HasCommaSeperatedChannelIdsencodedChannels attributepublic final UsergroupCreateParams withName(String name)
name attribute.
An equals check used to prevent copying of the same value by returning this.name - A new value for namethis objectpublic final UsergroupCreateParams withDescription(@Nullable String value)
description attribute.value - The value for description, null is accepted as java.util.Optional.empty()this objectpublic final UsergroupCreateParams withDescription(Optional<String> optional)
description attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for descriptionthis objectpublic final UsergroupCreateParams withHandle(@Nullable String value)
handle attribute.value - The value for handle, null is accepted as java.util.Optional.empty()this objectpublic final UsergroupCreateParams withHandle(Optional<String> optional)
handle attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for handlethis objectpublic final UsergroupCreateParams withIncludeCount(@Nullable Boolean value)
includeCount attribute.value - The value for includeCount, null is accepted as java.util.Optional.empty()this objectpublic final UsergroupCreateParams withIncludeCount(Optional<Boolean> optional)
includeCount attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for includeCountthis objectpublic final UsergroupCreateParams withRawChannelIds(String... elements)
rawChannelIds.elements - The elements to setthis objectpublic final UsergroupCreateParams withRawChannelIds(Iterable<String> elements)
rawChannelIds.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of rawChannelIds elements to setthis objectpublic boolean equals(@Nullable Object another)
UsergroupCreateParams that have equal attribute values.public int hashCode()
name, description, handle, includeCount, rawChannelIds, encodedChannels.public String toString()
UsergroupCreateParams with attribute values.public static UsergroupCreateParams copyOf(UsergroupCreateParamsIF instance)
UsergroupCreateParamsIF 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 UsergroupCreateParams.Builder builder()
UsergroupCreateParams.Copyright © 2019. All rights reserved.