Class BetaWebhookSessionThreadTerminatedEventData
-
- All Implemented Interfaces:
public final class BetaWebhookSessionThreadTerminatedEventData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWebhookSessionThreadTerminatedEventData.BuilderA builder for BetaWebhookSessionThreadTerminatedEventData.
-
Method Summary
Modifier and Type Method Description final Stringid()ID of the session that triggered the event. final StringorganizationId()final StringsessionThreadId()ID of the session thread this event refers to. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("session.thread_terminated")final StringworkspaceId()final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_organizationId()Returns the raw JSON value of organizationId. final JsonField<String>_sessionThreadId()Returns the raw JSON value of sessionThreadId. final JsonField<String>_workspaceId()Returns the raw JSON value of workspaceId. final Map<String, JsonValue>_additionalProperties()final BetaWebhookSessionThreadTerminatedEventData.BuildertoBuilder()final BetaWebhookSessionThreadTerminatedEventDatavalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaWebhookSessionThreadTerminatedEventData.Builderbuilder()Returns a mutable builder for constructing an instance of BetaWebhookSessionThreadTerminatedEventData. -
-
Method Detail
-
organizationId
final String organizationId()
-
sessionThreadId
final String sessionThreadId()
ID of the session thread this event refers to.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("session.thread_terminated")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
workspaceId
final String workspaceId()
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_organizationId
final JsonField<String> _organizationId()
Returns the raw JSON value of organizationId.
Unlike organizationId, this method doesn't throw if the JSON field has an unexpected type.
-
_sessionThreadId
final JsonField<String> _sessionThreadId()
Returns the raw JSON value of sessionThreadId.
Unlike sessionThreadId, this method doesn't throw if the JSON field has an unexpected type.
-
_workspaceId
final JsonField<String> _workspaceId()
Returns the raw JSON value of workspaceId.
Unlike workspaceId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaWebhookSessionThreadTerminatedEventData.Builder toBuilder()
-
validate
final BetaWebhookSessionThreadTerminatedEventData validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaWebhookSessionThreadTerminatedEventData.Builder builder()
Returns a mutable builder for constructing an instance of BetaWebhookSessionThreadTerminatedEventData.
The following fields are required:
.id() .organizationId() .sessionThreadId() .workspaceId()
-
-
-
-