Class FolderCreateEvent
-
- All Implemented Interfaces:
public final class FolderCreateEventTriggered when a folder is created, whether explicitly, by copying or moving a folder, or implicitly when an upload creates missing parent folders. Copying or moving a folder tree sends one event per folder in the tree.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFolderCreateEvent.BuilderA builder for FolderCreateEvent.
-
Method Summary
Modifier and Type Method Description final BaseWebhookEventtoBaseWebhookEvent()final Stringid()Unique identifier for the event. final OffsetDateTimecreatedAt()Timestamp of when the event occurred in ISO8601 format. final Folderdata()final JsonValue_type()Type of the webhook event. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<Folder>_data()Returns the raw JSON value of data. final Map<String, JsonValue>_additionalProperties()final FolderCreateEvent.BuildertoBuilder()final FolderCreateEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FolderCreateEvent.Builderbuilder()Returns a mutable builder for constructing an instance of FolderCreateEvent. -
-
Method Detail
-
toBaseWebhookEvent
final BaseWebhookEvent toBaseWebhookEvent()
-
createdAt
final OffsetDateTime createdAt()
Timestamp of when the event occurred in ISO8601 format.
-
_type
final JsonValue _type()
Type of the webhook event.
Expected to always return the following:
JsonValue.from("folder.created")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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<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<Folder> _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 FolderCreateEvent.Builder toBuilder()
-
validate
final FolderCreateEvent 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 FolderCreateEvent.Builder builder()
Returns a mutable builder for constructing an instance of FolderCreateEvent.
The following fields are required:
.id() .createdAt() .data()
-
-
-
-