@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractUsergroupUsersUpdateParams"}) @Immutable public final class UsergroupUsersUpdateParams extends AbstractUsergroupUsersUpdateParams
AbstractUsergroupUsersUpdateParams.
Use the builder to create immutable instances:
UsergroupUsersUpdateParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
UsergroupUsersUpdateParams.Builder
Builds instances of type
UsergroupUsersUpdateParams. |
| Modifier and Type | Method and Description |
|---|---|
static UsergroupUsersUpdateParams.Builder |
builder()
Creates a builder for
UsergroupUsersUpdateParams. |
static UsergroupUsersUpdateParams |
copyOf(AbstractUsergroupUsersUpdateParams instance)
Creates an immutable copy of a
AbstractUsergroupUsersUpdateParams value. |
boolean |
equals(Object another)
This instance is equal to all instances of
UsergroupUsersUpdateParams that have equal attribute values. |
Optional<String> |
getEncodedUsers() |
Optional<Boolean> |
getIncludeCount() |
List<String> |
getRawUserIds() |
String |
getUsergroupId() |
int |
hashCode()
Computes a hash code from attributes:
usergroupId, includeCount, rawUserIds, encodedUsers. |
String |
toString()
Prints the immutable value
UsergroupUsersUpdateParams with attribute values. |
UsergroupUsersUpdateParams |
withIncludeCount(Boolean value)
Copy the current immutable object by setting a present value for the optional
includeCount attribute. |
UsergroupUsersUpdateParams |
withIncludeCount(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
includeCount attribute. |
UsergroupUsersUpdateParams |
withRawUserIds(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
rawUserIds. |
UsergroupUsersUpdateParams |
withRawUserIds(String... elements)
Copy the current immutable object with elements that replace the content of
rawUserIds. |
UsergroupUsersUpdateParams |
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 AbstractUsergroupUsersUpdateParamsusergroupId attributepublic Optional<Boolean> getIncludeCount()
getIncludeCount in class AbstractUsergroupUsersUpdateParamsincludeCount attributepublic Optional<String> getEncodedUsers()
encodedUsers attributepublic final UsergroupUsersUpdateParams 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 UsergroupUsersUpdateParams withIncludeCount(@Nullable Boolean value)
includeCount attribute.value - The value for includeCount, null is accepted as java.util.Optional.empty()this objectpublic final UsergroupUsersUpdateParams 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 UsergroupUsersUpdateParams withRawUserIds(String... elements)
rawUserIds.elements - The elements to setthis objectpublic final UsergroupUsersUpdateParams withRawUserIds(Iterable<String> elements)
rawUserIds.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of rawUserIds elements to setthis objectpublic boolean equals(@Nullable Object another)
UsergroupUsersUpdateParams that have equal attribute values.public int hashCode()
usergroupId, includeCount, rawUserIds, encodedUsers.public String toString()
UsergroupUsersUpdateParams with attribute values.public static UsergroupUsersUpdateParams copyOf(AbstractUsergroupUsersUpdateParams instance)
AbstractUsergroupUsersUpdateParams 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 UsergroupUsersUpdateParams.Builder builder()
UsergroupUsersUpdateParams.Copyright © 2019. All rights reserved.