Class WebhookEndpointCreate.Builder
- java.lang.Object
-
- ai.extend.types.WebhookEndpointCreate.Builder
-
- All Implemented Interfaces:
WebhookEndpointCreate._FinalStage,WebhookEndpointCreate.ApiVersionStage,WebhookEndpointCreate.CreatedAtStage,WebhookEndpointCreate.IdStage,WebhookEndpointCreate.NameStage,WebhookEndpointCreate.SigningSecretStage,WebhookEndpointCreate.StatusStage,WebhookEndpointCreate.UrlStage
- Enclosing class:
- WebhookEndpointCreate
public static final class WebhookEndpointCreate.Builder extends java.lang.Object implements WebhookEndpointCreate.IdStage, WebhookEndpointCreate.UrlStage, WebhookEndpointCreate.NameStage, WebhookEndpointCreate.StatusStage, WebhookEndpointCreate.ApiVersionStage, WebhookEndpointCreate.SigningSecretStage, WebhookEndpointCreate.CreatedAtStage, WebhookEndpointCreate._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookEndpointCreate._FinalStageaddAllEnabledEvents(java.util.List<WebhookEndpointEventType> enabledEvents)The list of event types this endpoint is subscribed to at the global level.WebhookEndpointCreate._FinalStageaddEnabledEvents(WebhookEndpointEventType enabledEvents)The list of event types this endpoint is subscribed to at the global level.WebhookEndpointCreate._FinalStageadvancedOptions(Nullable<WebhookAdvancedOptions> advancedOptions)Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.WebhookEndpointCreate._FinalStageadvancedOptions(WebhookAdvancedOptions advancedOptions)Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.WebhookEndpointCreate._FinalStageadvancedOptions(java.util.Optional<WebhookAdvancedOptions> advancedOptions)Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.WebhookEndpointCreate.SigningSecretStageapiVersion(ApiVersionEnum apiVersion)WebhookEndpointCreatebuild()WebhookEndpointCreate._FinalStagecreatedAt(java.time.OffsetDateTime createdAt)The date and time the webhook endpoint was created.WebhookEndpointCreate._FinalStageenabledEvents(java.util.List<WebhookEndpointEventType> enabledEvents)The list of event types this endpoint is subscribed to at the global level.WebhookEndpointCreate.Builderfrom(WebhookEndpointCreate other)WebhookEndpointCreate.UrlStageid(java.lang.String id)Unique identifier for the webhook endpoint.WebhookEndpointCreate.StatusStagename(java.lang.String name)A human-readable name for the webhook endpoint.WebhookEndpointCreate.CreatedAtStagesigningSecret(java.lang.String signingSecret)The signing secret used to verify webhook payloads.WebhookEndpointCreate.ApiVersionStagestatus(WebhookEndpointStatus status)WebhookEndpointCreate.NameStageurl(java.lang.String url)The URL that webhook events are sent to.
-
-
-
Method Detail
-
from
public WebhookEndpointCreate.Builder from(WebhookEndpointCreate other)
- Specified by:
fromin interfaceWebhookEndpointCreate.IdStage
-
id
public WebhookEndpointCreate.UrlStage id(@NotNull java.lang.String id)
Unique identifier for the webhook endpoint.
Unique identifier for the webhook endpoint.
- Specified by:
idin interfaceWebhookEndpointCreate.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public WebhookEndpointCreate.NameStage url(@NotNull java.lang.String url)
The URL that webhook events are sent to.
The URL that webhook events are sent to.
- Specified by:
urlin interfaceWebhookEndpointCreate.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public WebhookEndpointCreate.StatusStage 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 interfaceWebhookEndpointCreate.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public WebhookEndpointCreate.ApiVersionStage status(@NotNull WebhookEndpointStatus status)
- Specified by:
statusin interfaceWebhookEndpointCreate.StatusStage
-
apiVersion
public WebhookEndpointCreate.SigningSecretStage apiVersion(@NotNull ApiVersionEnum apiVersion)
- Specified by:
apiVersionin interfaceWebhookEndpointCreate.ApiVersionStage
-
signingSecret
public WebhookEndpointCreate.CreatedAtStage signingSecret(@NotNull java.lang.String signingSecret)
The signing secret used to verify webhook payloads. This is only returned when creating the endpoint and cannot be retrieved again.
Store it securely — you will need it to verify webhook signatures.
The signing secret used to verify webhook payloads. This is only returned when creating the endpoint and cannot be retrieved again.
Store it securely — you will need it to verify webhook signatures.
- Specified by:
signingSecretin interfaceWebhookEndpointCreate.SigningSecretStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public WebhookEndpointCreate._FinalStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
The date and time the webhook endpoint was created.
The date and time the webhook endpoint was created.
- Specified by:
createdAtin interfaceWebhookEndpointCreate.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
advancedOptions
public WebhookEndpointCreate._FinalStage advancedOptions(Nullable<WebhookAdvancedOptions> advancedOptions)
Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.
- Specified by:
advancedOptionsin interfaceWebhookEndpointCreate._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
advancedOptions
public WebhookEndpointCreate._FinalStage advancedOptions(WebhookAdvancedOptions advancedOptions)
Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.
- Specified by:
advancedOptionsin interfaceWebhookEndpointCreate._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
advancedOptions
public WebhookEndpointCreate._FinalStage advancedOptions(java.util.Optional<WebhookAdvancedOptions> advancedOptions)
Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.
- Specified by:
advancedOptionsin interfaceWebhookEndpointCreate._FinalStage
-
addAllEnabledEvents
public WebhookEndpointCreate._FinalStage addAllEnabledEvents(java.util.List<WebhookEndpointEventType> enabledEvents)
The list of event types this endpoint is subscribed to at the global level. These are events that are not scoped to a specific resource.
- Specified by:
addAllEnabledEventsin interfaceWebhookEndpointCreate._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addEnabledEvents
public WebhookEndpointCreate._FinalStage addEnabledEvents(WebhookEndpointEventType enabledEvents)
The list of event types this endpoint is subscribed to at the global level. These are events that are not scoped to a specific resource.
- Specified by:
addEnabledEventsin interfaceWebhookEndpointCreate._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
enabledEvents
public WebhookEndpointCreate._FinalStage enabledEvents(java.util.List<WebhookEndpointEventType> enabledEvents)
The list of event types this endpoint is subscribed to at the global level. These are events that are not scoped to a specific resource.
- Specified by:
enabledEventsin interfaceWebhookEndpointCreate._FinalStage
-
build
public WebhookEndpointCreate build()
- Specified by:
buildin interfaceWebhookEndpointCreate._FinalStage
-
-