Class WebhookEndpointsCreateRequest.Builder
- java.lang.Object
-
- ai.extend.resources.webhookendpoints.requests.WebhookEndpointsCreateRequest.Builder
-
- All Implemented Interfaces:
WebhookEndpointsCreateRequest._FinalStage,WebhookEndpointsCreateRequest.ApiVersionStage,WebhookEndpointsCreateRequest.NameStage,WebhookEndpointsCreateRequest.UrlStage
- Enclosing class:
- WebhookEndpointsCreateRequest
public static final class WebhookEndpointsCreateRequest.Builder extends java.lang.Object implements WebhookEndpointsCreateRequest.UrlStage, WebhookEndpointsCreateRequest.NameStage, WebhookEndpointsCreateRequest.ApiVersionStage, WebhookEndpointsCreateRequest._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public WebhookEndpointsCreateRequest.Builder from(WebhookEndpointsCreateRequest other)
- Specified by:
fromin interfaceWebhookEndpointsCreateRequest.UrlStage
-
url
public WebhookEndpointsCreateRequest.NameStage url(@NotNull java.lang.String url)
The URL that webhook events will be sent to.
The URL that webhook events will be sent to.
- Specified by:
urlin interfaceWebhookEndpointsCreateRequest.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public WebhookEndpointsCreateRequest.ApiVersionStage name(@NotNull java.lang.String name)
A human-readable name for the webhook endpoint.
A human-readable name for the webhook endpoint.
- Specified by:
namein interfaceWebhookEndpointsCreateRequest.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
apiVersion
public WebhookEndpointsCreateRequest._FinalStage apiVersion(@NotNull ApiVersionEnum apiVersion)
- Specified by:
apiVersionin interfaceWebhookEndpointsCreateRequest.ApiVersionStage
-
advancedOptions
public WebhookEndpointsCreateRequest._FinalStage advancedOptions(WebhookAdvancedOptions advancedOptions)
- Specified by:
advancedOptionsin interfaceWebhookEndpointsCreateRequest._FinalStage
-
advancedOptions
public WebhookEndpointsCreateRequest._FinalStage advancedOptions(java.util.Optional<WebhookAdvancedOptions> advancedOptions)
- Specified by:
advancedOptionsin interfaceWebhookEndpointsCreateRequest._FinalStage
-
addAllEnabledEvents
public WebhookEndpointsCreateRequest._FinalStage addAllEnabledEvents(java.util.List<WebhookEndpointEventType> enabledEvents)
The list of global event types to subscribe to. Pass an empty array to create an endpoint with no global events (useful if you only plan to use resource-scoped subscriptions).
- Specified by:
addAllEnabledEventsin interfaceWebhookEndpointsCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addEnabledEvents
public WebhookEndpointsCreateRequest._FinalStage addEnabledEvents(WebhookEndpointEventType enabledEvents)
The list of global event types to subscribe to. Pass an empty array to create an endpoint with no global events (useful if you only plan to use resource-scoped subscriptions).
- Specified by:
addEnabledEventsin interfaceWebhookEndpointsCreateRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
enabledEvents
public WebhookEndpointsCreateRequest._FinalStage enabledEvents(java.util.List<WebhookEndpointEventType> enabledEvents)
The list of global event types to subscribe to. Pass an empty array to create an endpoint with no global events (useful if you only plan to use resource-scoped subscriptions).
- Specified by:
enabledEventsin interfaceWebhookEndpointsCreateRequest._FinalStage
-
status
public WebhookEndpointsCreateRequest._FinalStage status(WebhookEndpointStatus status)
- Specified by:
statusin interfaceWebhookEndpointsCreateRequest._FinalStage
-
status
public WebhookEndpointsCreateRequest._FinalStage status(java.util.Optional<WebhookEndpointStatus> status)
- Specified by:
statusin interfaceWebhookEndpointsCreateRequest._FinalStage
-
build
public WebhookEndpointsCreateRequest build()
- Specified by:
buildin interfaceWebhookEndpointsCreateRequest._FinalStage
-
-