Class BatchCompletedWebhookEvent
-
- All Implemented Interfaces:
public final class BatchCompletedWebhookEventSent when a batch API request has been completed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBatchCompletedWebhookEvent.BuilderA builder for BatchCompletedWebhookEvent.
public final classBatchCompletedWebhookEvent.DataEvent data payload.
public final classBatchCompletedWebhookEvent.ObjectThe object of the event. Always
event.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the event. final LongcreatedAt()The Unix timestamp (in seconds) of when the batch API request was completed. final BatchCompletedWebhookEvent.Datadata()Event data payload. final JsonValue_type()The type of the event. final Optional<BatchCompletedWebhookEvent.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<BatchCompletedWebhookEvent.Data>_data()Returns the raw JSON value of data. final JsonField<BatchCompletedWebhookEvent.Object>_object_()Returns the raw JSON value of object_. final Map<String, JsonValue>_additionalProperties()final BatchCompletedWebhookEvent.BuildertoBuilder()final BatchCompletedWebhookEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BatchCompletedWebhookEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BatchCompletedWebhookEvent. -
-
Method Detail
-
createdAt
final Long createdAt()
The Unix timestamp (in seconds) of when the batch API request was completed.
-
data
final BatchCompletedWebhookEvent.Data data()
Event data payload.
-
_type
final JsonValue _type()
The type of the event. Always
batch.completed.Expected to always return the following:
JsonValue.from("batch.completed")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
object_
final Optional<BatchCompletedWebhookEvent.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<BatchCompletedWebhookEvent.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<BatchCompletedWebhookEvent.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 BatchCompletedWebhookEvent.Builder toBuilder()
-
validate
final BatchCompletedWebhookEvent validate()
-
builder
final static BatchCompletedWebhookEvent.Builder builder()
Returns a mutable builder for constructing an instance of BatchCompletedWebhookEvent.
The following fields are required:
.id() .createdAt() .data()
-
-
-
-