Class Webhook

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

public class Webhook extends Object
Webhook

A Webhook resource.

  • Constructor Details

  • Method Details

    • createTime

      public Optional<OffsetDateTime> createTime()
      Output only. The timestamp when the webhook was created.
    • id

      public Optional<String> id()
      Output only. The ID of the webhook.
    • name

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

      public Optional<String> newSigningSecret()
      Output only. The new signing secret for the webhook. Only populated on create.
    • signingSecrets

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

      public Optional<WebhookState> state()
      Output only. The state 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
    • updateTime

      public Optional<OffsetDateTime> updateTime()
      Output only. The timestamp when the webhook was last updated.
    • uri

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

      public static Webhook.Builder builder()
    • withCreateTime

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

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

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

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

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

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

      public Webhook 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
    • withUpdateTime

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

      public Webhook 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