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