Class AssistantThreadContext.Builder
java.lang.Object
com.hubspot.slack.client.models.response.assistant.AssistantThreadContext.Builder
- Enclosing class:
AssistantThreadContext
@Generated(from="AssistantThreadContextIF",
generator="Immutables")
@NotThreadSafe
public static final class AssistantThreadContext.Builder
extends Object
Builds instances of type
AssistantThreadContext.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newAssistantThreadContext.from(AssistantThreadContextIF instance) Fill a builder with attribute values from the providedAssistantThreadContextIFinstance.setChannelId(String channelId) Initializes the optional valuechannelIdto channelId.setChannelId(Optional<String> channelId) Initializes the optional valuechannelIdto channelId.setEnterpriseId(String enterpriseId) Initializes the optional valueenterpriseIdto enterpriseId.setEnterpriseId(Optional<String> enterpriseId) Initializes the optional valueenterpriseIdto enterpriseId.setForceSearch(Boolean forceSearch) Initializes the optional valueforceSearchto forceSearch.setForceSearch(Optional<Boolean> forceSearch) Initializes the optional valueforceSearchto forceSearch.Initializes the optional valueteamIdto teamId.Initializes the optional valueteamIdto teamId.setThreadEntryPoint(String threadEntryPoint) Initializes the optional valuethreadEntryPointto threadEntryPoint.setThreadEntryPoint(Optional<String> threadEntryPoint) Initializes the optional valuethreadEntryPointto threadEntryPoint.
-
Method Details
-
from
Fill a builder with attribute values from the providedAssistantThreadContextIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the optional valuechannelIdto channelId.- Parameters:
channelId- The value for channelId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setChannelId
Initializes the optional valuechannelIdto channelId.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
setTeamId
Initializes the optional valueteamIdto teamId.- Parameters:
teamId- The value for teamId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTeamId
Initializes the optional valueteamIdto teamId.- Parameters:
teamId- The value for teamId- Returns:
thisbuilder for use in a chained invocation
-
setEnterpriseId
Initializes the optional valueenterpriseIdto enterpriseId.- Parameters:
enterpriseId- The value for enterpriseId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setEnterpriseId
Initializes the optional valueenterpriseIdto enterpriseId.- Parameters:
enterpriseId- The value for enterpriseId- Returns:
thisbuilder for use in a chained invocation
-
setThreadEntryPoint
Initializes the optional valuethreadEntryPointto threadEntryPoint.- Parameters:
threadEntryPoint- The value for threadEntryPoint,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThreadEntryPoint
Initializes the optional valuethreadEntryPointto threadEntryPoint.- Parameters:
threadEntryPoint- The value for threadEntryPoint- Returns:
thisbuilder for use in a chained invocation
-
setForceSearch
Initializes the optional valueforceSearchto forceSearch.- Parameters:
forceSearch- The value for forceSearch,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setForceSearch
Initializes the optional valueforceSearchto forceSearch.- Parameters:
forceSearch- The value for forceSearch- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newAssistantThreadContext.- Returns:
- An immutable instance of AssistantThreadContext
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-