Package ai.extend.types
Class WebhookPayloadOptions.Builder
- java.lang.Object
-
- ai.extend.types.WebhookPayloadOptions.Builder
-
- All Implemented Interfaces:
WebhookPayloadOptions._FinalStage,WebhookPayloadOptions.FormatStage
- Enclosing class:
- WebhookPayloadOptions
public static final class WebhookPayloadOptions.Builder extends java.lang.Object implements WebhookPayloadOptions.FormatStage, WebhookPayloadOptions._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookPayloadOptionsbuild()WebhookPayloadOptions._FinalStageformat(WebhookPayloadFormat format)WebhookPayloadOptions.Builderfrom(WebhookPayloadOptions other)WebhookPayloadOptions._FinalStageurlThresholdBytes(java.lang.Integer urlThresholdBytes)Whenformatisurl, payloads larger than this threshold (in bytes) are delivered as a signed download URL instead of inline JSON.WebhookPayloadOptions._FinalStageurlThresholdBytes(java.util.Optional<java.lang.Integer> urlThresholdBytes)Whenformatisurl, payloads larger than this threshold (in bytes) are delivered as a signed download URL instead of inline JSON.
-
-
-
Method Detail
-
from
public WebhookPayloadOptions.Builder from(WebhookPayloadOptions other)
- Specified by:
fromin interfaceWebhookPayloadOptions.FormatStage
-
format
public WebhookPayloadOptions._FinalStage format(@NotNull WebhookPayloadFormat format)
- Specified by:
formatin interfaceWebhookPayloadOptions.FormatStage
-
urlThresholdBytes
public WebhookPayloadOptions._FinalStage urlThresholdBytes(java.lang.Integer urlThresholdBytes)
When
formatisurl, payloads larger than this threshold (in bytes) are delivered as a signed download URL instead of inline JSON. Only applicable whenformatisurl.- Specified by:
urlThresholdBytesin interfaceWebhookPayloadOptions._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
urlThresholdBytes
public WebhookPayloadOptions._FinalStage urlThresholdBytes(java.util.Optional<java.lang.Integer> urlThresholdBytes)
When
formatisurl, payloads larger than this threshold (in bytes) are delivered as a signed download URL instead of inline JSON. Only applicable whenformatisurl.- Specified by:
urlThresholdBytesin interfaceWebhookPayloadOptions._FinalStage
-
build
public WebhookPayloadOptions build()
- Specified by:
buildin interfaceWebhookPayloadOptions._FinalStage
-
-