Class SlackAssistantThreadContextChangedEvent

java.lang.Object
com.hubspot.slack.client.models.events.assistant.SlackAssistantThreadContextChangedEvent
All Implemented Interfaces:
SlackAssistantThreadContextChangedEventIF, SlackEvent

@Generated(from="SlackAssistantThreadContextChangedEventIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class SlackAssistantThreadContextChangedEvent extends Object implements SlackAssistantThreadContextChangedEventIF
Immutable implementation of SlackAssistantThreadContextChangedEventIF.

Use the builder to create immutable instances: SlackAssistantThreadContextChangedEvent.builder().

  • Method Details

    • getType

      public SlackEventType getType()
      Specified by:
      getType in interface SlackEvent
      Returns:
      The value of the type attribute
    • getAssistantThread

      public AssistantThread getAssistantThread()
      Specified by:
      getAssistantThread in interface SlackAssistantThreadContextChangedEventIF
      Returns:
      The value of the assistantThread attribute
    • getEventTs

      public String getEventTs()
      Specified by:
      getEventTs in interface SlackAssistantThreadContextChangedEventIF
      Returns:
      The value of the eventTs attribute
    • withType

      Copy the current immutable object by setting a value for the type attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy or the this object
    • withAssistantThread

      public final SlackAssistantThreadContextChangedEvent withAssistantThread(AssistantThread value)
      Copy the current immutable object by setting a value for the assistantThread attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for assistantThread
      Returns:
      A modified copy or the this object
    • withEventTs

      public final SlackAssistantThreadContextChangedEvent withEventTs(String value)
      Copy the current immutable object by setting a value for the eventTs attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for eventTs
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of SlackAssistantThreadContextChangedEvent 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: type, assistantThread, eventTs.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      Creates an immutable copy of a SlackAssistantThreadContextChangedEventIF 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 SlackAssistantThreadContextChangedEvent instance
    • builder

      Creates a builder for SlackAssistantThreadContextChangedEvent.
       SlackAssistantThreadContextChangedEvent.builder()
          .setType(com.hubspot.slack.client.models.events.SlackEventType) // required type
          .setAssistantThread(com.hubspot.slack.client.models.response.assistant.AssistantThread) // required assistantThread
          .setEventTs(String) // required eventTs
          .build();
       
      Returns:
      A new SlackAssistantThreadContextChangedEvent builder