Class ResponseFailedWebhookEvent
-
- All Implemented Interfaces:
public final class ResponseFailedWebhookEvent
Sent when a background response has failed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseFailedWebhookEvent.Builder
A builder for ResponseFailedWebhookEvent.
public final class
ResponseFailedWebhookEvent.Data
Event data payload.
public final class
ResponseFailedWebhookEvent.Object
The object of the event. Always
event
.
-
Method Summary
Modifier and Type Method Description final String
id()
The unique ID of the event. final Long
createdAt()
The Unix timestamp (in seconds) of when the model response failed. final ResponseFailedWebhookEvent.Data
data()
Event data payload. final JsonValue
_type()
The type of the event. final Optional<ResponseFailedWebhookEvent.Object>
object_()
The object of the event. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<Long>
_createdAt()
Returns the raw JSON value of createdAt. final JsonField<ResponseFailedWebhookEvent.Data>
_data()
Returns the raw JSON value of data. final JsonField<ResponseFailedWebhookEvent.Object>
_object_()
Returns the raw JSON value of object_. final Map<String, JsonValue>
_additionalProperties()
final ResponseFailedWebhookEvent.Builder
toBuilder()
final ResponseFailedWebhookEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseFailedWebhookEvent.Builder
builder()
Returns a mutable builder for constructing an instance of ResponseFailedWebhookEvent. -
-
Method Detail
-
data
final ResponseFailedWebhookEvent.Data data()
Event data payload.
-
_type
final JsonValue _type()
The type of the event. Always
response.failed
.Expected to always return the following:
JsonValue.from("response.failed")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
object_
final Optional<ResponseFailedWebhookEvent.Object> object_()
The object of the event. Always
event
.
-
_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.
-
_createdAt
final JsonField<Long> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_data
final JsonField<ResponseFailedWebhookEvent.Data> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_object_
final JsonField<ResponseFailedWebhookEvent.Object> _object_()
Returns the raw JSON value of object_.
Unlike object_, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseFailedWebhookEvent.Builder toBuilder()
-
validate
final ResponseFailedWebhookEvent validate()
-
builder
final static ResponseFailedWebhookEvent.Builder builder()
Returns a mutable builder for constructing an instance of ResponseFailedWebhookEvent.
The following fields are required:
.id() .createdAt() .data()
-
-
-
-