Class AssistantThread
java.lang.Object
com.hubspot.slack.client.models.response.assistant.AssistantThread
- All Implemented Interfaces:
AssistantThreadIF
@Generated(from="AssistantThreadIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class AssistantThread
extends Object
implements AssistantThreadIF
Immutable implementation of
AssistantThreadIF.
Use the builder to create immutable instances:
AssistantThread.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AssistantThread.Builderbuilder()Creates a builder forAssistantThread.static AssistantThreadcopyOf(AssistantThreadIF instance) Creates an immutable copy of aAssistantThreadIFvalue.booleanThis instance is equal to all instances ofAssistantThreadthat have equal attribute values.inthashCode()Computes a hash code from attributes:userId,context,channelId,threadTs.toString()Prints the immutable valueAssistantThreadwith attribute values.final AssistantThreadwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final AssistantThreadCopy the current immutable object by setting a value for thecontextattribute.final AssistantThreadwithThreadTs(String value) Copy the current immutable object by setting a value for thethreadTsattribute.final AssistantThreadwithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.
-
Method Details
-
getUserId
- Specified by:
getUserIdin interfaceAssistantThreadIF- Returns:
- The value of the
userIdattribute
-
getContext
- Specified by:
getContextin interfaceAssistantThreadIF- Returns:
- The value of the
contextattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceAssistantThreadIF- Returns:
- The value of the
channelIdattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceAssistantThreadIF- Returns:
- The value of the
threadTsattribute
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy or the
thisobject
-
withContext
Copy the current immutable object by setting a value for thecontextattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for context- 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
-
withThreadTs
Copy the current immutable object by setting a value for thethreadTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for threadTs- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofAssistantThreadthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:userId,context,channelId,threadTs. -
toString
Prints the immutable valueAssistantThreadwith attribute values. -
copyOf
Creates an immutable copy of aAssistantThreadIFvalue. 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 AssistantThread instance
-
builder
Creates a builder forAssistantThread.AssistantThread.builder() .setUserId(String) // requireduserId.setContext(com.hubspot.slack.client.models.response.assistant.AssistantThreadContext) // requiredcontext.setChannelId(String) // requiredchannelId.setThreadTs(String) // requiredthreadTs.build();- Returns:
- A new AssistantThread builder
-