Class Webhook.Builder

java.lang.Object
com.google.genai.gaos.models.webhooks.Webhook.Builder
Enclosing class:
Webhook

public static final class Webhook.Builder extends Object
  • Method Details

    • createTime

      public Webhook.Builder createTime(@Nullable OffsetDateTime createTime)
      Output only. The timestamp when the webhook was created.
    • id

      public Webhook.Builder id(@Nullable String id)
      Output only. The ID of the webhook.
    • name

      public Webhook.Builder name(@Nullable String name)
      Optional. The user-provided name of the webhook.
    • newSigningSecret

      public Webhook.Builder newSigningSecret(@Nullable String newSigningSecret)
      Output only. The new signing secret for the webhook. Only populated on create.
    • signingSecrets

      public Webhook.Builder signingSecrets(@Nullable List<SigningSecret> signingSecrets)
      Output only. The signing secrets associated with this webhook.
    • state

      public Webhook.Builder state(@Nullable WebhookState state)
      Output only. The state of the webhook.
    • subscribedEvents

      public Webhook.Builder subscribedEvents(@Nonnull List<WebhookSubscribedEvent> subscribedEvents)
      Required. The events that the webhook is subscribed to. Available events: - batch.succeeded - batch.expired - batch.failed - interaction.requires_action - interaction.completed - interaction.failed - video.generated
    • updateTime

      public Webhook.Builder updateTime(@Nullable OffsetDateTime updateTime)
      Output only. The timestamp when the webhook was last updated.
    • uri

      public Webhook.Builder uri(@Nonnull String uri)
      Required. The URI to which webhook events will be sent.
    • build

      public Webhook build()