@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractUsergroupDisableParams"}) @Immutable public final class UsergroupDisableParams extends AbstractUsergroupDisableParams
AbstractUsergroupDisableParams.
Use the builder to create immutable instances:
UsergroupDisableParams.builder().
Use the static factory method to create immutable instances:
UsergroupDisableParams.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
UsergroupDisableParams.Builder
Builds instances of type
UsergroupDisableParams. |
| Modifier and Type | Method and Description |
|---|---|
static UsergroupDisableParams.Builder |
builder()
Creates a builder for
UsergroupDisableParams. |
static UsergroupDisableParams |
copyOf(AbstractUsergroupDisableParams instance)
Creates an immutable copy of a
AbstractUsergroupDisableParams value. |
boolean |
equals(Object another)
This instance is equal to all instances of
UsergroupDisableParams that have equal attribute values. |
Optional<Boolean> |
getIncludeCount() |
String |
getUsergroupId() |
int |
hashCode()
Computes a hash code from attributes:
usergroupId, includeCount. |
static UsergroupDisableParams |
of(String usergroupId)
Construct a new immutable
UsergroupDisableParams instance. |
String |
toString()
Prints the immutable value
UsergroupDisableParams with attribute values. |
UsergroupDisableParams |
withIncludeCount(Boolean value)
Copy the current immutable object by setting a present value for the optional
includeCount attribute. |
UsergroupDisableParams |
withIncludeCount(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
includeCount attribute. |
UsergroupDisableParams |
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 AbstractUsergroupDisableParamsusergroupId attributepublic Optional<Boolean> getIncludeCount()
getIncludeCount in class AbstractUsergroupDisableParamsincludeCount attributepublic final UsergroupDisableParams 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 UsergroupDisableParams withIncludeCount(@Nullable Boolean value)
includeCount attribute.value - The value for includeCount, null is accepted as java.util.Optional.empty()this objectpublic final UsergroupDisableParams 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 boolean equals(@Nullable Object another)
UsergroupDisableParams that have equal attribute values.public int hashCode()
usergroupId, includeCount.public String toString()
UsergroupDisableParams with attribute values.public static UsergroupDisableParams of(String usergroupId)
UsergroupDisableParams instance.usergroupId - The value for the usergroupId attributepublic static UsergroupDisableParams copyOf(AbstractUsergroupDisableParams instance)
AbstractUsergroupDisableParams 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 UsergroupDisableParams.Builder builder()
UsergroupDisableParams.Copyright © 2019. All rights reserved.