Class UsergroupCreateParams
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.UsergroupCreateParams
- All Implemented Interfaces:
HasCommaSeperatedChannelIds,UsergroupCreateParamsIF
@Generated(from="UsergroupCreateParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsergroupCreateParams
extends Object
implements UsergroupCreateParamsIF
Immutable implementation of
UsergroupCreateParamsIF.
Use the builder to create immutable instances:
UsergroupCreateParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeUsergroupCreateParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forUsergroupCreateParams.static UsergroupCreateParamscopyOf(UsergroupCreateParamsIF instance) Creates an immutable copy of aUsergroupCreateParamsIFvalue.booleanThis instance is equal to all instances ofUsergroupCreateParamsthat have equal attribute values.getName()inthashCode()Computes a hash code from attributes:rawChannelIds,encodedChannels,name,description,handle,includeCount.toString()Prints the immutable valueUsergroupCreateParamswith attribute values.final UsergroupCreateParamswithDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.final UsergroupCreateParamswithDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.final UsergroupCreateParamswithHandle(String value) Copy the current immutable object by setting a present value for the optionalhandleattribute.final UsergroupCreateParamswithHandle(Optional<String> optional) Copy the current immutable object by setting an optional value for thehandleattribute.final UsergroupCreateParamswithIncludeCount(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeCountattribute.final UsergroupCreateParamswithIncludeCount(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeCountattribute.final UsergroupCreateParamsCopy the current immutable object by setting a value for thenameattribute.final UsergroupCreateParamswithRawChannelIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofrawChannelIds.final UsergroupCreateParamswithRawChannelIds(String... elements) Copy the current immutable object with elements that replace the content ofrawChannelIds.
-
Method Details
-
getRawChannelIds
- Specified by:
getRawChannelIdsin interfaceHasCommaSeperatedChannelIds- Returns:
- The value of the
rawChannelIdsattribute
-
getEncodedChannels
- Specified by:
getEncodedChannelsin interfaceHasCommaSeperatedChannelIds- Returns:
- The computed-at-construction value of the
encodedChannelsattribute
-
getName
- Specified by:
getNamein interfaceUsergroupCreateParamsIF- Returns:
- The value of the
nameattribute
-
getDescription
- Specified by:
getDescriptionin interfaceUsergroupCreateParamsIF- Returns:
- The value of the
descriptionattribute
-
getHandle
- Specified by:
getHandlein interfaceUsergroupCreateParamsIF- Returns:
- The value of the
handleattribute
-
getIncludeCount
- Specified by:
getIncludeCountin interfaceUsergroupCreateParamsIF- 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
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
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 ofUsergroupCreateParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:rawChannelIds,encodedChannels,name,description,handle,includeCount. -
toString
Prints the immutable valueUsergroupCreateParamswith attribute values. -
copyOf
Creates an immutable copy of aUsergroupCreateParamsIFvalue. 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 UsergroupCreateParams instance
-
builder
Creates a builder forUsergroupCreateParams.UsergroupCreateParams.builder() .addRawChannelIds|addAllRawChannelIds(String) //rawChannelIdselements .setName(String) // requiredname.setDescription(Optional<String>) // optionaldescription.setHandle(Optional<String>) // optionalhandle.setIncludeCount(Optional<Boolean>) // optionalincludeCount.build();- Returns:
- A new UsergroupCreateParams builder
-