Class ConversationSetPurposeParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationSetPurposeParams
- All Implemented Interfaces:
ConversationSetPurposeParamsIF
@Generated(from="ConversationSetPurposeParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationSetPurposeParams
extends Object
implements ConversationSetPurposeParamsIF
Immutable implementation of
ConversationSetPurposeParamsIF.
Use the builder to create immutable instances:
ConversationSetPurposeParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationSetPurposeParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationSetPurposeParams.static ConversationSetPurposeParamscopyOf(ConversationSetPurposeParamsIF instance) Creates an immutable copy of aConversationSetPurposeParamsIFvalue.booleanThis instance is equal to all instances ofConversationSetPurposeParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:purpose,channelId.toString()Prints the immutable valueConversationSetPurposeParamswith attribute values.withChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.withPurpose(String value) Copy the current immutable object by setting a value for thepurposeattribute.
-
Method Details
-
getPurpose
- Specified by:
getPurposein interfaceConversationSetPurposeParamsIF- Returns:
- The value of the
purposeattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceConversationSetPurposeParamsIF- Returns:
- The value of the
channelIdattribute
-
withPurpose
Copy the current immutable object by setting a value for thepurposeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for purpose- Returns:
- A modified copy or the
thisobject
-
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 ofConversationSetPurposeParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:purpose,channelId. -
toString
Prints the immutable valueConversationSetPurposeParamswith attribute values. -
copyOf
Creates an immutable copy of aConversationSetPurposeParamsIFvalue. 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 ConversationSetPurposeParams instance
-
builder
Creates a builder forConversationSetPurposeParams.ConversationSetPurposeParams.builder() .setPurpose(String) // requiredpurpose.setChannelId(String) // requiredchannelId.build();- Returns:
- A new ConversationSetPurposeParams builder
-