Class AssistantThreadContext
java.lang.Object
com.hubspot.slack.client.models.response.assistant.AssistantThreadContext
- All Implemented Interfaces:
AssistantThreadContextIF
@Generated(from="AssistantThreadContextIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class AssistantThreadContext
extends Object
implements AssistantThreadContextIF
Immutable implementation of
AssistantThreadContextIF.
Use the builder to create immutable instances:
AssistantThreadContext.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeAssistantThreadContext. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forAssistantThreadContext.static AssistantThreadContextcopyOf(AssistantThreadContextIF instance) Creates an immutable copy of aAssistantThreadContextIFvalue.booleanThis instance is equal to all instances ofAssistantThreadContextthat have equal attribute values.inthashCode()Computes a hash code from attributes:channelId,teamId,enterpriseId,threadEntryPoint,forceSearch.toString()Prints the immutable valueAssistantThreadContextwith attribute values.final AssistantThreadContextwithChannelId(String value) Copy the current immutable object by setting a present value for the optionalchannelIdattribute.final AssistantThreadContextwithChannelId(Optional<String> optional) Copy the current immutable object by setting an optional value for thechannelIdattribute.final AssistantThreadContextwithEnterpriseId(String value) Copy the current immutable object by setting a present value for the optionalenterpriseIdattribute.final AssistantThreadContextwithEnterpriseId(Optional<String> optional) Copy the current immutable object by setting an optional value for theenterpriseIdattribute.final AssistantThreadContextwithForceSearch(Boolean value) Copy the current immutable object by setting a present value for the optionalforceSearchattribute.final AssistantThreadContextwithForceSearch(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theforceSearchattribute.final AssistantThreadContextwithTeamId(String value) Copy the current immutable object by setting a present value for the optionalteamIdattribute.final AssistantThreadContextwithTeamId(Optional<String> optional) Copy the current immutable object by setting an optional value for theteamIdattribute.final AssistantThreadContextwithThreadEntryPoint(String value) Copy the current immutable object by setting a present value for the optionalthreadEntryPointattribute.final AssistantThreadContextwithThreadEntryPoint(Optional<String> optional) Copy the current immutable object by setting an optional value for thethreadEntryPointattribute.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceAssistantThreadContextIF- Returns:
- The value of the
channelIdattribute
-
getTeamId
- Specified by:
getTeamIdin interfaceAssistantThreadContextIF- Returns:
- The value of the
teamIdattribute
-
getEnterpriseId
- Specified by:
getEnterpriseIdin interfaceAssistantThreadContextIF- Returns:
- The value of the
enterpriseIdattribute
-
getThreadEntryPoint
- Specified by:
getThreadEntryPointin interfaceAssistantThreadContextIF- Returns:
- The value of the
threadEntryPointattribute
-
isForceSearch
- Specified by:
isForceSearchin interfaceAssistantThreadContextIF- Returns:
- The value of the
forceSearchattribute
-
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
-
withTeamId
Copy the current immutable object by setting a present value for the optionalteamIdattribute.- Parameters:
value- The value for teamId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTeamId
Copy the current immutable object by setting an optional value for theteamIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for teamId- Returns:
- A modified copy or
thisif not changed
-
withEnterpriseId
Copy the current immutable object by setting a present value for the optionalenterpriseIdattribute.- Parameters:
value- The value for enterpriseId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withEnterpriseId
Copy the current immutable object by setting an optional value for theenterpriseIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for enterpriseId- Returns:
- A modified copy or
thisif not changed
-
withThreadEntryPoint
Copy the current immutable object by setting a present value for the optionalthreadEntryPointattribute.- Parameters:
value- The value for threadEntryPoint,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThreadEntryPoint
Copy the current immutable object by setting an optional value for thethreadEntryPointattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for threadEntryPoint- Returns:
- A modified copy or
thisif not changed
-
withForceSearch
Copy the current immutable object by setting a present value for the optionalforceSearchattribute.- Parameters:
value- The value for forceSearch,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withForceSearch
Copy the current immutable object by setting an optional value for theforceSearchattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for forceSearch- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofAssistantThreadContextthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,teamId,enterpriseId,threadEntryPoint,forceSearch. -
toString
Prints the immutable valueAssistantThreadContextwith attribute values. -
copyOf
Creates an immutable copy of aAssistantThreadContextIFvalue. 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 AssistantThreadContext instance
-
builder
Creates a builder forAssistantThreadContext.AssistantThreadContext.builder() .setChannelId(Optional<String>) // optionalchannelId.setTeamId(Optional<String>) // optionalteamId.setEnterpriseId(Optional<String>) // optionalenterpriseId.setThreadEntryPoint(Optional<String>) // optionalthreadEntryPoint.setForceSearch(Optional<Boolean>) // optionalforceSearch.build();- Returns:
- A new AssistantThreadContext builder
-