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 Details

    • from

      Fill a builder with attribute values from the provided AssistantThreadContextIF instance. 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:
      this builder for use in a chained invocation
    • setChannelId

      public final AssistantThreadContext.Builder setChannelId(@Nullable String channelId)
      Initializes the optional value channelId to channelId.
      Parameters:
      channelId - The value for channelId, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setChannelId

      public final AssistantThreadContext.Builder setChannelId(Optional<String> channelId)
      Initializes the optional value channelId to channelId.
      Parameters:
      channelId - The value for channelId
      Returns:
      this builder for use in a chained invocation
    • setTeamId

      public final AssistantThreadContext.Builder setTeamId(@Nullable String teamId)
      Initializes the optional value teamId to teamId.
      Parameters:
      teamId - The value for teamId, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setTeamId

      public final AssistantThreadContext.Builder setTeamId(Optional<String> teamId)
      Initializes the optional value teamId to teamId.
      Parameters:
      teamId - The value for teamId
      Returns:
      this builder for use in a chained invocation
    • setEnterpriseId

      public final AssistantThreadContext.Builder setEnterpriseId(@Nullable String enterpriseId)
      Initializes the optional value enterpriseId to enterpriseId.
      Parameters:
      enterpriseId - The value for enterpriseId, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setEnterpriseId

      public final AssistantThreadContext.Builder setEnterpriseId(Optional<String> enterpriseId)
      Initializes the optional value enterpriseId to enterpriseId.
      Parameters:
      enterpriseId - The value for enterpriseId
      Returns:
      this builder for use in a chained invocation
    • setThreadEntryPoint

      public final AssistantThreadContext.Builder setThreadEntryPoint(@Nullable String threadEntryPoint)
      Initializes the optional value threadEntryPoint to threadEntryPoint.
      Parameters:
      threadEntryPoint - The value for threadEntryPoint, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setThreadEntryPoint

      public final AssistantThreadContext.Builder setThreadEntryPoint(Optional<String> threadEntryPoint)
      Initializes the optional value threadEntryPoint to threadEntryPoint.
      Parameters:
      threadEntryPoint - The value for threadEntryPoint
      Returns:
      this builder for use in a chained invocation
    • setForceSearch

      public final AssistantThreadContext.Builder setForceSearch(@Nullable Boolean forceSearch)
      Initializes the optional value forceSearch to forceSearch.
      Parameters:
      forceSearch - The value for forceSearch, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setForceSearch

      public final AssistantThreadContext.Builder setForceSearch(Optional<Boolean> forceSearch)
      Initializes the optional value forceSearch to forceSearch.
      Parameters:
      forceSearch - The value for forceSearch
      Returns:
      this builder for use in a chained invocation
    • build

      public AssistantThreadContext build()
      Returns:
      An immutable instance of AssistantThreadContext
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing