Class ConversationOpenParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationOpenParams
- All Implemented Interfaces:
ConversationOpenParamsIF
@Generated(from="ConversationOpenParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationOpenParams
extends Object
implements ConversationOpenParamsIF
Immutable implementation of
ConversationOpenParamsIF.
Use the builder to create immutable instances:
ConversationOpenParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationOpenParams. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.methods.params.conversations.ConversationOpenParamsIF
COMMA_JOINER -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationOpenParams.static ConversationOpenParamscopyOf(ConversationOpenParamsIF instance) Creates an immutable copy of aConversationOpenParamsIFvalue.booleanThis instance is equal to all instances ofConversationOpenParamsthat have equal attribute values.booleangetUsers()inthashCode()Computes a hash code from attributes:channelId,users,returnIm.toString()Prints the immutable valueConversationOpenParamswith attribute values.final ConversationOpenParamswithChannelId(String value) Copy the current immutable object by setting a present value for the optionalchannelIdattribute.final ConversationOpenParamswithChannelId(Optional<String> optional) Copy the current immutable object by setting an optional value for thechannelIdattribute.final ConversationOpenParamswithReturnIm(boolean value) Copy the current immutable object by setting a value for thereturnImattribute.final ConversationOpenParamsCopy the current immutable object with elements that replace the content ofusers.final ConversationOpenParamsCopy the current immutable object with elements that replace the content ofusers.Methods inherited from interface com.hubspot.slack.client.methods.params.conversations.ConversationOpenParamsIF
getUsersString
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceConversationOpenParamsIF- Returns:
- The value of the
channelIdattribute
-
getUsers
- Specified by:
getUsersin interfaceConversationOpenParamsIF- Returns:
- The value of the
usersattribute
-
getReturnIm
public boolean getReturnIm()- Specified by:
getReturnImin interfaceConversationOpenParamsIF- Returns:
- The value of the
returnImattribute
-
withChannelId
Copy the current immutable object by setting a present value for the optionalchannelIdattribute.- Parameters:
value- The value for channelId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withChannelId
Copy the current immutable object by setting an optional value for thechannelIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for channelId- Returns:
- A modified copy or
thisif not changed
-
withUsers
Copy the current immutable object with elements that replace the content ofusers.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withUsers
Copy the current immutable object with elements that replace the content ofusers. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of users elements to set- Returns:
- A modified copy or
thisif not changed
-
withReturnIm
Copy the current immutable object by setting a value for thereturnImattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for returnIm- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofConversationOpenParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,users,returnIm. -
toString
Prints the immutable valueConversationOpenParamswith attribute values. -
copyOf
Creates an immutable copy of aConversationOpenParamsIFvalue. 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 ConversationOpenParams instance
-
builder
Creates a builder forConversationOpenParams.ConversationOpenParams.builder() .setChannelId(Optional<String>) // optionalchannelId.addUsers|addAllUsers(String) //userselements .setReturnIm(boolean) // optionalreturnIm.build();- Returns:
- A new ConversationOpenParams builder
-