Package com.openai.models.webhooks
Class WebhookVerificationParams.Builder
-
- All Implemented Interfaces:
public final class WebhookVerificationParams.Builder
-
-
Constructor Summary
Constructors Constructor Description WebhookVerificationParams.Builder()
-
Method Summary
Modifier and Type Method Description final WebhookVerificationParams.Builderpayload(String payload)The webhook payload as a string final WebhookVerificationParams.Builderpayload(ByteArray payload)The webhook payload as a byte array final WebhookVerificationParams.Builderheaders(Headers headers)The webhook headers final WebhookVerificationParams.Buildersecret(String secret)The webhook secret (optional, will use client secret if not provided) final WebhookVerificationParams.Buildersecret(Optional<String> secret)The webhook secret (optional, will use client secret if not provided) final WebhookVerificationParams.Buildertolerance(Duration tolerance)Maximum age of the webhook (default: 5 minutes) final WebhookVerificationParams.Buildertolerance(Integer toleranceSeconds)Maximum age of the webhook in seconds (default: 300 = 5 minutes) final WebhookVerificationParamsbuild()-
-
Method Detail
-
payload
final WebhookVerificationParams.Builder payload(String payload)
The webhook payload as a string
-
payload
final WebhookVerificationParams.Builder payload(ByteArray payload)
The webhook payload as a byte array
-
headers
final WebhookVerificationParams.Builder headers(Headers headers)
The webhook headers
-
secret
final WebhookVerificationParams.Builder secret(String secret)
The webhook secret (optional, will use client secret if not provided)
-
secret
final WebhookVerificationParams.Builder secret(Optional<String> secret)
The webhook secret (optional, will use client secret if not provided)
-
tolerance
final WebhookVerificationParams.Builder tolerance(Duration tolerance)
Maximum age of the webhook (default: 5 minutes)
-
tolerance
final WebhookVerificationParams.Builder tolerance(Integer toleranceSeconds)
Maximum age of the webhook in seconds (default: 300 = 5 minutes)
-
build
final WebhookVerificationParams build()
-
-
-
-