Class UsergroupEnableParams
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.UsergroupEnableParams
- All Implemented Interfaces:
UsergroupEnableParamsIF
@Generated(from="UsergroupEnableParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsergroupEnableParams
extends Object
implements UsergroupEnableParamsIF
Immutable implementation of
UsergroupEnableParamsIF.
Use the builder to create immutable instances:
UsergroupEnableParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeUsergroupEnableParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forUsergroupEnableParams.static UsergroupEnableParamscopyOf(UsergroupEnableParamsIF instance) Creates an immutable copy of aUsergroupEnableParamsIFvalue.booleanThis instance is equal to all instances ofUsergroupEnableParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:usergroupId,includeCount.toString()Prints the immutable valueUsergroupEnableParamswith attribute values.final UsergroupEnableParamswithIncludeCount(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeCountattribute.final UsergroupEnableParamswithIncludeCount(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeCountattribute.final UsergroupEnableParamswithUsergroupId(String value) Copy the current immutable object by setting a value for theusergroupIdattribute.
-
Method Details
-
getUsergroupId
- Specified by:
getUsergroupIdin interfaceUsergroupEnableParamsIF- Returns:
- The value of the
usergroupIdattribute
-
getIncludeCount
- Specified by:
getIncludeCountin interfaceUsergroupEnableParamsIF- Returns:
- The value of the
includeCountattribute
-
withUsergroupId
Copy the current immutable object by setting a value for theusergroupIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for usergroupId- Returns:
- A modified copy or the
thisobject
-
withIncludeCount
Copy the current immutable object by setting a present value for the optionalincludeCountattribute.- Parameters:
value- The value for includeCount,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIncludeCount
Copy the current immutable object by setting an optional value for theincludeCountattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for includeCount- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofUsergroupEnableParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:usergroupId,includeCount. -
toString
Prints the immutable valueUsergroupEnableParamswith attribute values. -
copyOf
Creates an immutable copy of aUsergroupEnableParamsIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable UsergroupEnableParams instance
-
builder
Creates a builder forUsergroupEnableParams.UsergroupEnableParams.builder() .setUsergroupId(String) // requiredusergroupId.setIncludeCount(Optional<Boolean>) // optionalincludeCount.build();- Returns:
- A new UsergroupEnableParams builder
-