Class ConversationMemberParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationMemberParams
- All Implemented Interfaces:
ConversationMemberParamsIF
@Generated(from="ConversationMemberParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationMemberParams
extends Object
implements ConversationMemberParamsIF
Immutable implementation of
ConversationMemberParamsIF.
Use the builder to create immutable instances:
ConversationMemberParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationMemberParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationMemberParams.static ConversationMemberParamscopyOf(ConversationMemberParamsIF instance) Creates an immutable copy of aConversationMemberParamsIFvalue.booleanThis instance is equal to all instances ofConversationMemberParamsthat have equal attribute values.getLimit()inthashCode()Computes a hash code from attributes:cursor,limit,channelId.toString()Prints the immutable valueConversationMemberParamswith attribute values.final ConversationMemberParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final ConversationMemberParamswithCursor(String value) Copy the current immutable object by setting a present value for the optionalcursorattribute.final ConversationMemberParamswithCursor(Optional<String> optional) Copy the current immutable object by setting an optional value for thecursorattribute.final ConversationMemberParamsCopy the current immutable object by setting a present value for the optionallimitattribute.final ConversationMemberParamsCopy the current immutable object by setting an optional value for thelimitattribute.
-
Method Details
-
getCursor
- Specified by:
getCursorin interfaceConversationMemberParamsIF- Returns:
- The value of the
cursorattribute
-
getLimit
- Specified by:
getLimitin interfaceConversationMemberParamsIF- Returns:
- The value of the
limitattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceConversationMemberParamsIF- Returns:
- The value of the
channelIdattribute
-
withCursor
Copy the current immutable object by setting a present value for the optionalcursorattribute.- Parameters:
value- The value for cursor,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCursor
Copy the current immutable object by setting an optional value for thecursorattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for cursor- Returns:
- A modified copy or
thisif not changed
-
withLimit
Copy the current immutable object by setting a present value for the optionallimitattribute.- Parameters:
value- The value for limit,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLimit
Copy the current immutable object by setting an optional value for thelimitattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for limit- Returns:
- A modified copy or
thisif not changed
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofConversationMemberParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:cursor,limit,channelId. -
toString
Prints the immutable valueConversationMemberParamswith attribute values. -
copyOf
Creates an immutable copy of aConversationMemberParamsIFvalue. 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 ConversationMemberParams instance
-
builder
Creates a builder forConversationMemberParams.ConversationMemberParams.builder() .setCursor(Optional<String>) // optionalcursor.setLimit(Optional<Integer>) // optionallimit.setChannelId(String) // requiredchannelId.build();- Returns:
- A new ConversationMemberParams builder
-