Class WebhookEndpoint.Builder
- java.lang.Object
-
- ai.extend.types.WebhookEndpoint.Builder
-
- All Implemented Interfaces:
WebhookEndpoint._FinalStage,WebhookEndpoint.ApiVersionStage,WebhookEndpoint.CreatedAtStage,WebhookEndpoint.IdStage,WebhookEndpoint.NameStage,WebhookEndpoint.StatusStage,WebhookEndpoint.UrlStage
- Enclosing class:
- WebhookEndpoint
public static final class WebhookEndpoint.Builder extends java.lang.Object implements WebhookEndpoint.IdStage, WebhookEndpoint.UrlStage, WebhookEndpoint.NameStage, WebhookEndpoint.StatusStage, WebhookEndpoint.ApiVersionStage, WebhookEndpoint.CreatedAtStage, WebhookEndpoint._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookEndpoint._FinalStageaddAllEnabledEvents(java.util.List<WebhookEndpointEventType> enabledEvents)The list of event types this endpoint is subscribed to at the global level.WebhookEndpoint._FinalStageaddEnabledEvents(WebhookEndpointEventType enabledEvents)The list of event types this endpoint is subscribed to at the global level.WebhookEndpoint._FinalStageadvancedOptions(Nullable<WebhookAdvancedOptions> advancedOptions)Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.WebhookEndpoint._FinalStageadvancedOptions(WebhookAdvancedOptions advancedOptions)Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.WebhookEndpoint._FinalStageadvancedOptions(java.util.Optional<WebhookAdvancedOptions> advancedOptions)Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.WebhookEndpoint.CreatedAtStageapiVersion(java.lang.String apiVersion)WebhookEndpointbuild()WebhookEndpoint._FinalStagecreatedAt(java.time.OffsetDateTime createdAt)The date and time the webhook endpoint was created.WebhookEndpoint._FinalStagecreatedBy(Nullable<CreatedBy> createdBy)WebhookEndpoint._FinalStagecreatedBy(CreatedBy createdBy)WebhookEndpoint._FinalStagecreatedBy(java.util.Optional<CreatedBy> createdBy)WebhookEndpoint._FinalStageenabledEvents(java.util.List<WebhookEndpointEventType> enabledEvents)The list of event types this endpoint is subscribed to at the global level.WebhookEndpoint.Builderfrom(WebhookEndpoint other)WebhookEndpoint.UrlStageid(java.lang.String id)Unique identifier for the webhook endpoint.WebhookEndpoint.StatusStagename(java.lang.String name)A human-readable name for the webhook endpoint.WebhookEndpoint.ApiVersionStagestatus(WebhookEndpointStatus status)WebhookEndpoint.NameStageurl(java.lang.String url)The URL that webhook events are sent to.
-
-
-
Method Detail
-
from
public WebhookEndpoint.Builder from(WebhookEndpoint other)
- Specified by:
fromin interfaceWebhookEndpoint.IdStage
-
id
public WebhookEndpoint.UrlStage id(@NotNull java.lang.String id)
Unique identifier for the webhook endpoint.
Unique identifier for the webhook endpoint.
- Specified by:
idin interfaceWebhookEndpoint.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public WebhookEndpoint.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 interfaceWebhookEndpoint.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public WebhookEndpoint.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 interfaceWebhookEndpoint.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public WebhookEndpoint.ApiVersionStage status(@NotNull WebhookEndpointStatus status)
- Specified by:
statusin interfaceWebhookEndpoint.StatusStage
-
apiVersion
public WebhookEndpoint.CreatedAtStage apiVersion(@NotNull java.lang.String apiVersion)
- Specified by:
apiVersionin interfaceWebhookEndpoint.ApiVersionStage
-
createdAt
public WebhookEndpoint._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 interfaceWebhookEndpoint.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdBy
public WebhookEndpoint._FinalStage createdBy(Nullable<CreatedBy> createdBy)
- Specified by:
createdByin interfaceWebhookEndpoint._FinalStage
-
createdBy
public WebhookEndpoint._FinalStage createdBy(CreatedBy createdBy)
- Specified by:
createdByin interfaceWebhookEndpoint._FinalStage
-
createdBy
public WebhookEndpoint._FinalStage createdBy(java.util.Optional<CreatedBy> createdBy)
- Specified by:
createdByin interfaceWebhookEndpoint._FinalStage
-
advancedOptions
public WebhookEndpoint._FinalStage advancedOptions(Nullable<WebhookAdvancedOptions> advancedOptions)
Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.
- Specified by:
advancedOptionsin interfaceWebhookEndpoint._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
advancedOptions
public WebhookEndpoint._FinalStage advancedOptions(WebhookAdvancedOptions advancedOptions)
Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.
- Specified by:
advancedOptionsin interfaceWebhookEndpoint._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
advancedOptions
public WebhookEndpoint._FinalStage advancedOptions(java.util.Optional<WebhookAdvancedOptions> advancedOptions)
Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.
- Specified by:
advancedOptionsin interfaceWebhookEndpoint._FinalStage
-
addAllEnabledEvents
public WebhookEndpoint._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 interfaceWebhookEndpoint._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addEnabledEvents
public WebhookEndpoint._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 interfaceWebhookEndpoint._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
enabledEvents
public WebhookEndpoint._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 interfaceWebhookEndpoint._FinalStage
-
build
public WebhookEndpoint build()
- Specified by:
buildin interfaceWebhookEndpoint._FinalStage
-
-