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