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().

  • Method Details

    • getChannelId

      public Optional<String> getChannelId()
      Specified by:
      getChannelId in interface AssistantThreadContextIF
      Returns:
      The value of the channelId attribute
    • getTeamId

      public Optional<String> getTeamId()
      Specified by:
      getTeamId in interface AssistantThreadContextIF
      Returns:
      The value of the teamId attribute
    • getEnterpriseId

      public Optional<String> getEnterpriseId()
      Specified by:
      getEnterpriseId in interface AssistantThreadContextIF
      Returns:
      The value of the enterpriseId attribute
    • getThreadEntryPoint

      public Optional<String> getThreadEntryPoint()
      Specified by:
      getThreadEntryPoint in interface AssistantThreadContextIF
      Returns:
      The value of the threadEntryPoint attribute
    • isForceSearch

      public Optional<Boolean> isForceSearch()
      Specified by:
      isForceSearch in interface AssistantThreadContextIF
      Returns:
      The value of the forceSearch attribute
    • withChannelId

      public final AssistantThreadContext withChannelId(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional channelId attribute.
      Parameters:
      value - The value for channelId, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withChannelId

      public final AssistantThreadContext withChannelId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the channelId attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for channelId
      Returns:
      A modified copy or this if not changed
    • withTeamId

      public final AssistantThreadContext withTeamId(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional teamId attribute.
      Parameters:
      value - The value for teamId, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withTeamId

      public final AssistantThreadContext withTeamId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the teamId attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for teamId
      Returns:
      A modified copy or this if not changed
    • withEnterpriseId

      public final AssistantThreadContext withEnterpriseId(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional enterpriseId attribute.
      Parameters:
      value - The value for enterpriseId, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withEnterpriseId

      public final AssistantThreadContext withEnterpriseId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the enterpriseId attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for enterpriseId
      Returns:
      A modified copy or this if not changed
    • withThreadEntryPoint

      public final AssistantThreadContext withThreadEntryPoint(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional threadEntryPoint attribute.
      Parameters:
      value - The value for threadEntryPoint, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withThreadEntryPoint

      public final AssistantThreadContext withThreadEntryPoint(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the threadEntryPoint attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for threadEntryPoint
      Returns:
      A modified copy or this if not changed
    • withForceSearch

      public final AssistantThreadContext withForceSearch(@Nullable Boolean value)
      Copy the current immutable object by setting a present value for the optional forceSearch attribute.
      Parameters:
      value - The value for forceSearch, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withForceSearch

      public final AssistantThreadContext withForceSearch(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the forceSearch attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for forceSearch
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of AssistantThreadContext that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: channelId, teamId, enterpriseId, threadEntryPoint, forceSearch.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value AssistantThreadContext with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static AssistantThreadContext copyOf(AssistantThreadContextIF instance)
      Creates an immutable copy of a AssistantThreadContextIF value. 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

      public static AssistantThreadContext.Builder builder()
      Creates a builder for AssistantThreadContext.
       AssistantThreadContext.builder()
          .setChannelId(Optional<String>) // optional channelId
          .setTeamId(Optional<String>) // optional teamId
          .setEnterpriseId(Optional<String>) // optional enterpriseId
          .setThreadEntryPoint(Optional<String>) // optional threadEntryPoint
          .setForceSearch(Optional<Boolean>) // optional forceSearch
          .build();
       
      Returns:
      A new AssistantThreadContext builder