Package com.flagright.api.types
Class WebhookEvent.Builder
- java.lang.Object
-
- com.flagright.api.types.WebhookEvent.Builder
-
- All Implemented Interfaces:
WebhookEvent._FinalStage,WebhookEvent.CreatedTimestampStage,WebhookEvent.DataStage,WebhookEvent.IdStage,WebhookEvent.TriggeredByStage,WebhookEvent.TypeStage
- Enclosing class:
- WebhookEvent
public static final class WebhookEvent.Builder extends java.lang.Object implements WebhookEvent.IdStage, WebhookEvent.TriggeredByStage, WebhookEvent.CreatedTimestampStage, WebhookEvent.TypeStage, WebhookEvent.DataStage, WebhookEvent._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookEventbuild()WebhookEvent.TypeStagecreatedTimestamp(double createdTimestamp)Time at which the event was created.WebhookEvent._FinalStagedata(WebhookEventData data)WebhookEvent.Builderfrom(WebhookEvent other)WebhookEvent.TriggeredByStageid(java.lang.String id)Unique identifier for the eventWebhookEvent.CreatedTimestampStagetriggeredBy(WebhookEventTriggeredBy triggeredBy)Event triggered by a user or systemWebhookEvent.DataStagetype(WebhookEventType type)
-
-
-
Method Detail
-
from
public WebhookEvent.Builder from(WebhookEvent other)
- Specified by:
fromin interfaceWebhookEvent.IdStage
-
id
public WebhookEvent.TriggeredByStage id(@NotNull java.lang.String id)
Unique identifier for the event
- Specified by:
idin interfaceWebhookEvent.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
triggeredBy
public WebhookEvent.CreatedTimestampStage triggeredBy(@NotNull WebhookEventTriggeredBy triggeredBy)
Event triggered by a user or system
- Specified by:
triggeredByin interfaceWebhookEvent.TriggeredByStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdTimestamp
public WebhookEvent.TypeStage createdTimestamp(double createdTimestamp)
Time at which the event was created. Measured in ms since the Unix epoch.
- Specified by:
createdTimestampin interfaceWebhookEvent.CreatedTimestampStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public WebhookEvent.DataStage type(@NotNull WebhookEventType type)
- Specified by:
typein interfaceWebhookEvent.TypeStage
-
data
public WebhookEvent._FinalStage data(@NotNull WebhookEventData data)
- Specified by:
datain interfaceWebhookEvent.DataStage
-
build
public WebhookEvent build()
- Specified by:
buildin interfaceWebhookEvent._FinalStage
-
-