Class FolderDeleteEvent
-
- All Implemented Interfaces:
public final class FolderDeleteEventTriggered when a folder is deleted. Deleting a folder tree sends one event per folder in the tree; the files inside it send
file.deletedevents and their versions sendfile-version.deletedevents. Moving a folder sends this event for the oldfolderIdandfolder.createdfor the new one.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFolderDeleteEvent.BuilderA builder for FolderDeleteEvent.
public final classFolderDeleteEvent.Data
-
Method Summary
Modifier and Type Method Description final BaseWebhookEventtoBaseWebhookEvent()final Stringid()Unique identifier for the event. final Stringtype()The type of webhook event. final OffsetDateTimecreatedAt()Timestamp of when the event occurred in ISO8601 format. final FolderDeleteEvent.Datadata()final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_type()Returns the raw JSON value of type. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<FolderDeleteEvent.Data>_data()Returns the raw JSON value of data. final Map<String, JsonValue>_additionalProperties()final FolderDeleteEvent.BuildertoBuilder()final FolderDeleteEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FolderDeleteEvent.Builderbuilder()Returns a mutable builder for constructing an instance of FolderDeleteEvent. -
-
Method Detail
-
toBaseWebhookEvent
final BaseWebhookEvent toBaseWebhookEvent()
-
createdAt
final OffsetDateTime createdAt()
Timestamp of when the event occurred in ISO8601 format.
-
data
final FolderDeleteEvent.Data data()
-
_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.
-
_type
final JsonField<String> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _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<FolderDeleteEvent.Data> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FolderDeleteEvent.Builder toBuilder()
-
validate
final FolderDeleteEvent 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 FolderDeleteEvent.Builder builder()
Returns a mutable builder for constructing an instance of FolderDeleteEvent.
The following fields are required:
.id() .type() .createdAt() .data()
-
-
-
-