Class SlackAssistantThreadStartedEvent
java.lang.Object
com.hubspot.slack.client.models.events.assistant.SlackAssistantThreadStartedEvent
- All Implemented Interfaces:
SlackAssistantThreadStartedEventIF,SlackEvent
@Generated(from="SlackAssistantThreadStartedEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackAssistantThreadStartedEvent
extends Object
implements SlackAssistantThreadStartedEventIF
Immutable implementation of
SlackAssistantThreadStartedEventIF.
Use the builder to create immutable instances:
SlackAssistantThreadStartedEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackAssistantThreadStartedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackAssistantThreadStartedEvent.copyOf(SlackAssistantThreadStartedEventIF instance) Creates an immutable copy of aSlackAssistantThreadStartedEventIFvalue.booleanThis instance is equal to all instances ofSlackAssistantThreadStartedEventthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,assistantThread,eventTs.toString()Prints the immutable valueSlackAssistantThreadStartedEventwith 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.SlackAssistantThreadStartedEventIF
getTs
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackEvent- Returns:
- The value of the
typeattribute
-
getAssistantThread
- Specified by:
getAssistantThreadin interfaceSlackAssistantThreadStartedEventIF- Returns:
- The value of the
assistantThreadattribute
-
getEventTs
- Specified by:
getEventTsin interfaceSlackAssistantThreadStartedEventIF- 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 ofSlackAssistantThreadStartedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,assistantThread,eventTs. -
toString
Prints the immutable valueSlackAssistantThreadStartedEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackAssistantThreadStartedEventIFvalue. 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 SlackAssistantThreadStartedEvent instance
-
builder
Creates a builder forSlackAssistantThreadStartedEvent.SlackAssistantThreadStartedEvent.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 SlackAssistantThreadStartedEvent builder
-