Class UsergroupUpdateParams
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.AbstractUsergroupUpdateParams
com.hubspot.slack.client.methods.params.usergroups.UsergroupUpdateParams
- All Implemented Interfaces:
HasCommaSeperatedChannelIds,HasUsergroup
@Generated(from="AbstractUsergroupUpdateParams",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsergroupUpdateParams
extends AbstractUsergroupUpdateParams
Immutable implementation of
AbstractUsergroupUpdateParams.
Use the builder to create immutable instances:
UsergroupUpdateParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeUsergroupUpdateParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forUsergroupUpdateParams.static UsergroupUpdateParamscopyOf(AbstractUsergroupUpdateParams instance) Creates an immutable copy of aAbstractUsergroupUpdateParamsvalue.booleanThis instance is equal to all instances ofUsergroupUpdateParamsthat have equal attribute values.getName()inthashCode()Computes a hash code from attributes:rawChannelIds,encodedChannels,usergroupId,name,description,handle,includeCount.toString()Prints the immutable valueUsergroupUpdateParamswith attribute values.final UsergroupUpdateParamswithDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.final UsergroupUpdateParamswithDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.final UsergroupUpdateParamswithHandle(String value) Copy the current immutable object by setting a present value for the optionalhandleattribute.final UsergroupUpdateParamswithHandle(Optional<String> optional) Copy the current immutable object by setting an optional value for thehandleattribute.final UsergroupUpdateParamswithIncludeCount(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeCountattribute.final UsergroupUpdateParamswithIncludeCount(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeCountattribute.final UsergroupUpdateParamsCopy the current immutable object by setting a present value for the optionalnameattribute.final UsergroupUpdateParamsCopy the current immutable object by setting an optional value for thenameattribute.final UsergroupUpdateParamswithRawChannelIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofrawChannelIds.final UsergroupUpdateParamswithRawChannelIds(String... elements) Copy the current immutable object with elements that replace the content ofrawChannelIds.final UsergroupUpdateParamswithUsergroupId(String value) Copy the current immutable object by setting a value for theusergroupIdattribute.
-
Method Details
-
getRawChannelIds
- Returns:
- The value of the
rawChannelIdsattribute
-
getEncodedChannels
- Returns:
- The computed-at-construction value of the
encodedChannelsattribute
-
getUsergroupId
- Specified by:
getUsergroupIdin interfaceHasUsergroup- Specified by:
getUsergroupIdin classAbstractUsergroupUpdateParams- Returns:
- The value of the
usergroupIdattribute
-
getName
- Specified by:
getNamein classAbstractUsergroupUpdateParams- Returns:
- The value of the
nameattribute
-
getDescription
- Specified by:
getDescriptionin classAbstractUsergroupUpdateParams- Returns:
- The value of the
descriptionattribute
-
getHandle
- Specified by:
getHandlein classAbstractUsergroupUpdateParams- Returns:
- The value of the
handleattribute
-
getIncludeCount
- Specified by:
getIncludeCountin classAbstractUsergroupUpdateParams- Returns:
- The value of the
includeCountattribute
-
withRawChannelIds
Copy the current immutable object with elements that replace the content ofrawChannelIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRawChannelIds
Copy the current immutable object with elements that replace the content ofrawChannelIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of rawChannelIds elements to set- Returns:
- A modified copy or
thisif not changed
-
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
-
withName
Copy the current immutable object by setting a present value for the optionalnameattribute.- Parameters:
value- The value for name,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withName
Copy the current immutable object by setting an optional value for thenameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for name- Returns:
- A modified copy or
thisif not changed
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withDescription
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for description- Returns:
- A modified copy or
thisif not changed
-
withHandle
Copy the current immutable object by setting a present value for the optionalhandleattribute.- Parameters:
value- The value for handle,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withHandle
Copy the current immutable object by setting an optional value for thehandleattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for handle- Returns:
- A modified copy or
thisif not changed
-
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 ofUsergroupUpdateParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:rawChannelIds,encodedChannels,usergroupId,name,description,handle,includeCount. -
toString
Prints the immutable valueUsergroupUpdateParamswith attribute values. -
copyOf
Creates an immutable copy of aAbstractUsergroupUpdateParamsvalue. 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 UsergroupUpdateParams instance
-
builder
Creates a builder forUsergroupUpdateParams.UsergroupUpdateParams.builder() .addRawChannelIds|addAllRawChannelIds(String) //rawChannelIdselements .setUsergroupId(String) // requiredusergroupId.setName(Optional<String>) // optionalname.setDescription(Optional<String>) // optionaldescription.setHandle(Optional<String>) // optionalhandle.setIncludeCount(Optional<Boolean>) // optionalincludeCount.build();- Returns:
- A new UsergroupUpdateParams builder
-