Class WebhookSubscriptionsCreateRequest.Builder
- java.lang.Object
-
- ai.extend.resources.webhooksubscriptions.requests.WebhookSubscriptionsCreateRequest.Builder
-
- All Implemented Interfaces:
WebhookSubscriptionsCreateRequest._FinalStage,WebhookSubscriptionsCreateRequest.ResourceIdStage,WebhookSubscriptionsCreateRequest.ResourceTypeStage,WebhookSubscriptionsCreateRequest.WebhookEndpointIdStage
- Enclosing class:
- WebhookSubscriptionsCreateRequest
public static final class WebhookSubscriptionsCreateRequest.Builder extends java.lang.Object implements WebhookSubscriptionsCreateRequest.WebhookEndpointIdStage, WebhookSubscriptionsCreateRequest.ResourceTypeStage, WebhookSubscriptionsCreateRequest.ResourceIdStage, WebhookSubscriptionsCreateRequest._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public WebhookSubscriptionsCreateRequest.Builder from(WebhookSubscriptionsCreateRequest other)
- Specified by:
fromin interfaceWebhookSubscriptionsCreateRequest.WebhookEndpointIdStage
-
webhookEndpointId
public WebhookSubscriptionsCreateRequest.ResourceTypeStage webhookEndpointId(@NotNull java.lang.String webhookEndpointId)
The ID of the webhook endpoint to attach this subscription to.
The ID of the webhook endpoint to attach this subscription to.
- Specified by:
webhookEndpointIdin interfaceWebhookSubscriptionsCreateRequest.WebhookEndpointIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resourceType
public WebhookSubscriptionsCreateRequest.ResourceIdStage resourceType(@NotNull WebhookSubscriptionResourceType resourceType)
- Specified by:
resourceTypein interfaceWebhookSubscriptionsCreateRequest.ResourceTypeStage
-
resourceId
public WebhookSubscriptionsCreateRequest._FinalStage resourceId(@NotNull java.lang.String resourceId)
The ID of the resource to scope this subscription to.
The ID of the resource to scope this subscription to.
- Specified by:
resourceIdin interfaceWebhookSubscriptionsCreateRequest.ResourceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllEnabledEvents
public WebhookSubscriptionsCreateRequest._FinalStage addAllEnabledEvents(java.util.List<WebhookSubscriptionEventType> enabledEvents)
The event types to subscribe to. Must be valid for the given
resourceType.- Specified by:
addAllEnabledEventsin interfaceWebhookSubscriptionsCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addEnabledEvents
public WebhookSubscriptionsCreateRequest._FinalStage addEnabledEvents(WebhookSubscriptionEventType enabledEvents)
The event types to subscribe to. Must be valid for the given
resourceType.- Specified by:
addEnabledEventsin interfaceWebhookSubscriptionsCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
enabledEvents
public WebhookSubscriptionsCreateRequest._FinalStage enabledEvents(java.util.List<WebhookSubscriptionEventType> enabledEvents)
The event types to subscribe to. Must be valid for the given
resourceType.- Specified by:
enabledEventsin interfaceWebhookSubscriptionsCreateRequest._FinalStage
-
build
public WebhookSubscriptionsCreateRequest build()
- Specified by:
buildin interfaceWebhookSubscriptionsCreateRequest._FinalStage
-
-