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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackAssistantThreadContextChangedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackAssistantThreadContextChangedEvent.Creates an immutable copy of aSlackAssistantThreadContextChangedEventIFvalue.booleanThis instance is equal to all instances ofSlackAssistantThreadContextChangedEventthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,assistantThread,eventTs.toString()Prints the immutable valueSlackAssistantThreadContextChangedEventwith attribute values.Copy the current immutable object by setting a value for theassistantThreadattribute.withEventTs(String value) Copy the current immutable object by setting a value for theeventTsattribute.withType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.Methods inherited from interface com.hubspot.slack.client.models.events.assistant.SlackAssistantThreadContextChangedEventIF
getTs
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackEvent- Returns:
- The value of the
typeattribute
-
getAssistantThread
- Specified by:
getAssistantThreadin interfaceSlackAssistantThreadContextChangedEventIF- Returns:
- The value of the
assistantThreadattribute
-
getEventTs
- Specified by:
getEventTsin interfaceSlackAssistantThreadContextChangedEventIF- Returns:
- The value of the
eventTsattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withAssistantThread
Copy the current immutable object by setting a value for theassistantThreadattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for assistantThread- Returns:
- A modified copy or the
thisobject
-
withEventTs
Copy the current immutable object by setting a value for theeventTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for eventTs- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackAssistantThreadContextChangedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,assistantThread,eventTs. -
toString
Prints the immutable valueSlackAssistantThreadContextChangedEventwith attribute values. -
copyOf
public static SlackAssistantThreadContextChangedEvent copyOf(SlackAssistantThreadContextChangedEventIF instance) Creates an immutable copy of aSlackAssistantThreadContextChangedEventIFvalue. 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 forSlackAssistantThreadContextChangedEvent.SlackAssistantThreadContextChangedEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setAssistantThread(com.hubspot.slack.client.models.response.assistant.AssistantThread) // requiredassistantThread.setEventTs(String) // requiredeventTs.build();- Returns:
- A new SlackAssistantThreadContextChangedEvent builder
-