Class WebhookSubscription.Builder
- java.lang.Object
-
- ai.extend.types.WebhookSubscription.Builder
-
- All Implemented Interfaces:
WebhookSubscription._FinalStage,WebhookSubscription.CreatedAtStage,WebhookSubscription.IdStage,WebhookSubscription.ResourceIdStage,WebhookSubscription.ResourceTypeStage,WebhookSubscription.WebhookEndpointIdStage
- Enclosing class:
- WebhookSubscription
public static final class WebhookSubscription.Builder extends java.lang.Object implements WebhookSubscription.IdStage, WebhookSubscription.WebhookEndpointIdStage, WebhookSubscription.ResourceTypeStage, WebhookSubscription.ResourceIdStage, WebhookSubscription.CreatedAtStage, WebhookSubscription._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookSubscription._FinalStageaddAllEnabledEvents(java.util.List<WebhookSubscriptionEventType> enabledEvents)The list of event types this subscription is subscribed to.WebhookSubscription._FinalStageaddEnabledEvents(WebhookSubscriptionEventType enabledEvents)The list of event types this subscription is subscribed to.WebhookSubscriptionbuild()WebhookSubscription._FinalStagecreatedAt(java.time.OffsetDateTime createdAt)The date and time the webhook subscription was created.WebhookSubscription._FinalStageenabledEvents(java.util.List<WebhookSubscriptionEventType> enabledEvents)The list of event types this subscription is subscribed to.WebhookSubscription.Builderfrom(WebhookSubscription other)WebhookSubscription.WebhookEndpointIdStageid(java.lang.String id)Unique identifier for the webhook subscription.WebhookSubscription.CreatedAtStageresourceId(java.lang.String resourceId)The ID of the resource this subscription is scoped to (e.g., an extractor, classifier, splitter, or workflow).WebhookSubscription.ResourceIdStageresourceType(WebhookSubscriptionResourceType resourceType)WebhookSubscription.ResourceTypeStagewebhookEndpointId(java.lang.String webhookEndpointId)The ID of the webhook endpoint this subscription belongs to.
-
-
-
Method Detail
-
from
public WebhookSubscription.Builder from(WebhookSubscription other)
- Specified by:
fromin interfaceWebhookSubscription.IdStage
-
id
public WebhookSubscription.WebhookEndpointIdStage id(@NotNull java.lang.String id)
Unique identifier for the webhook subscription.
Unique identifier for the webhook subscription.
- Specified by:
idin interfaceWebhookSubscription.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
webhookEndpointId
public WebhookSubscription.ResourceTypeStage webhookEndpointId(@NotNull java.lang.String webhookEndpointId)
The ID of the webhook endpoint this subscription belongs to.
The ID of the webhook endpoint this subscription belongs to.
- Specified by:
webhookEndpointIdin interfaceWebhookSubscription.WebhookEndpointIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resourceType
public WebhookSubscription.ResourceIdStage resourceType(@NotNull WebhookSubscriptionResourceType resourceType)
- Specified by:
resourceTypein interfaceWebhookSubscription.ResourceTypeStage
-
resourceId
public WebhookSubscription.CreatedAtStage resourceId(@NotNull java.lang.String resourceId)
The ID of the resource this subscription is scoped to (e.g., an extractor, classifier, splitter, or workflow).
The ID of the resource this subscription is scoped to (e.g., an extractor, classifier, splitter, or workflow).
- Specified by:
resourceIdin interfaceWebhookSubscription.ResourceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public WebhookSubscription._FinalStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
The date and time the webhook subscription was created.
The date and time the webhook subscription was created.
- Specified by:
createdAtin interfaceWebhookSubscription.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllEnabledEvents
public WebhookSubscription._FinalStage addAllEnabledEvents(java.util.List<WebhookSubscriptionEventType> enabledEvents)
The list of event types this subscription is subscribed to. The valid event types depend on the
resourceType.- Specified by:
addAllEnabledEventsin interfaceWebhookSubscription._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addEnabledEvents
public WebhookSubscription._FinalStage addEnabledEvents(WebhookSubscriptionEventType enabledEvents)
The list of event types this subscription is subscribed to. The valid event types depend on the
resourceType.- Specified by:
addEnabledEventsin interfaceWebhookSubscription._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
enabledEvents
public WebhookSubscription._FinalStage enabledEvents(java.util.List<WebhookSubscriptionEventType> enabledEvents)
The list of event types this subscription is subscribed to. The valid event types depend on the
resourceType.- Specified by:
enabledEventsin interfaceWebhookSubscription._FinalStage
-
build
public WebhookSubscription build()
- Specified by:
buildin interfaceWebhookSubscription._FinalStage
-
-