Class UsergroupDisableParams
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.AbstractUsergroupDisableParams
com.hubspot.slack.client.methods.params.usergroups.UsergroupDisableParams
- All Implemented Interfaces:
HasUsergroup
@Generated(from="AbstractUsergroupDisableParams",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsergroupDisableParams
extends AbstractUsergroupDisableParams
Immutable implementation of
AbstractUsergroupDisableParams.
Use the builder to create immutable instances:
UsergroupDisableParams.builder().
Use the static factory method to create immutable instances:
UsergroupDisableParams.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeUsergroupDisableParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forUsergroupDisableParams.static UsergroupDisableParamscopyOf(AbstractUsergroupDisableParams instance) Creates an immutable copy of aAbstractUsergroupDisableParamsvalue.booleanThis instance is equal to all instances ofUsergroupDisableParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:usergroupId,includeCount.static UsergroupDisableParamsConstruct a new immutableUsergroupDisableParamsinstance.toString()Prints the immutable valueUsergroupDisableParamswith attribute values.final UsergroupDisableParamswithIncludeCount(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeCountattribute.final UsergroupDisableParamswithIncludeCount(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeCountattribute.final UsergroupDisableParamswithUsergroupId(String value) Copy the current immutable object by setting a value for theusergroupIdattribute.
-
Method Details
-
getUsergroupId
- Specified by:
getUsergroupIdin interfaceHasUsergroup- Specified by:
getUsergroupIdin classAbstractUsergroupDisableParams- Returns:
- The value of the
usergroupIdattribute
-
getIncludeCount
- Specified by:
getIncludeCountin classAbstractUsergroupDisableParams- 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 ofUsergroupDisableParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:usergroupId,includeCount. -
toString
Prints the immutable valueUsergroupDisableParamswith attribute values. -
of
Construct a new immutableUsergroupDisableParamsinstance.- Parameters:
usergroupId- The value for theusergroupIdattribute- Returns:
- An immutable UsergroupDisableParams instance
-
copyOf
Creates an immutable copy of aAbstractUsergroupDisableParamsvalue. 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 UsergroupDisableParams instance
-
builder
Creates a builder forUsergroupDisableParams.UsergroupDisableParams.builder() .setUsergroupId(String) // requiredusergroupId.setIncludeCount(Optional<Boolean>) // optionalincludeCount.build();- Returns:
- A new UsergroupDisableParams builder
-