Class WebhookInput

java.lang.Object
com.google.genai.gaos.models.webhooks.WebhookInput

public class WebhookInput extends Object
WebhookInput

A Webhook resource.

  • Constructor Details

  • Method Details

    • name

      public Optional<String> name()
      Optional. The user-provided name of the webhook.
    • subscribedEvents

      public Optional<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
    • uri

      public Optional<String> uri()
      Required. The URI to which webhook events will be sent.
    • builder

      public static WebhookInput.Builder builder()
    • withName

      public WebhookInput withName(@Nullable String name)
      Optional. The user-provided name of the webhook.
    • withSubscribedEvents

      public WebhookInput withSubscribedEvents(@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
    • withUri

      public WebhookInput withUri(@Nonnull String uri)
      Required. The URI to which webhook events will be sent.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object