Package ai.extend.types
Class WebhookEvent.Builder
- java.lang.Object
-
- ai.extend.types.WebhookEvent.Builder
-
- All Implemented Interfaces:
WebhookEvent._FinalStage,WebhookEvent.EventIdStage,WebhookEvent.EventTypeStage,WebhookEvent.PayloadStage
- Enclosing class:
- WebhookEvent
public static final class WebhookEvent.Builder extends java.lang.Object implements WebhookEvent.EventIdStage, WebhookEvent.EventTypeStage, WebhookEvent.PayloadStage, WebhookEvent._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookEventbuild()WebhookEvent.EventTypeStageeventId(java.lang.String eventId)Unique identifier for the eventWebhookEvent.PayloadStageeventType(WebhookEventEventType eventType)Type of the event that occurredWebhookEvent.Builderfrom(WebhookEvent other)WebhookEvent._FinalStagepayload(WebhookEventPayload payload)Contains the relevant object for the event type
-
-
-
Method Detail
-
from
public WebhookEvent.Builder from(WebhookEvent other)
- Specified by:
fromin interfaceWebhookEvent.EventIdStage
-
eventId
public WebhookEvent.EventTypeStage eventId(@NotNull java.lang.String eventId)
Unique identifier for the event
Unique identifier for the event
- Specified by:
eventIdin interfaceWebhookEvent.EventIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
eventType
public WebhookEvent.PayloadStage eventType(@NotNull WebhookEventEventType eventType)
Type of the event that occurred
Type of the event that occurred
- Specified by:
eventTypein interfaceWebhookEvent.EventTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
payload
public WebhookEvent._FinalStage payload(@NotNull WebhookEventPayload payload)
Contains the relevant object for the event type
Contains the relevant object for the event type
- Specified by:
payloadin interfaceWebhookEvent.PayloadStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public WebhookEvent build()
- Specified by:
buildin interfaceWebhookEvent._FinalStage
-
-