Class Webhook
java.lang.Object
com.google.genai.gaos.models.webhooks.Webhook
Webhook
A Webhook resource.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWebhook(OffsetDateTime createTime, String id, String name, String newSigningSecret, List<SigningSecret> signingSecrets, WebhookState state, List<WebhookSubscribedEvent> subscribedEvents, OffsetDateTime updateTime, String uri) Webhook(List<WebhookSubscribedEvent> subscribedEvents, String uri) -
Method Summary
Modifier and TypeMethodDescriptionstatic Webhook.Builderbuilder()Output only.booleaninthashCode()id()Output only.name()Optional.Output only.Output only.state()Output only.Required.toString()Output only.uri()Required.withCreateTime(OffsetDateTime createTime) Output only.Output only.Optional.withNewSigningSecret(String newSigningSecret) Output only.withSigningSecrets(List<SigningSecret> signingSecrets) Output only.withState(WebhookState state) Output only.withSubscribedEvents(List<WebhookSubscribedEvent> subscribedEvents) Required.withUpdateTime(OffsetDateTime updateTime) Output only.Required.
-
Constructor Details
-
Webhook
public Webhook(@Nullable OffsetDateTime createTime, @Nullable String id, @Nullable String name, @Nullable String newSigningSecret, @Nullable List<SigningSecret> signingSecrets, @Nullable WebhookState state, @Nonnull List<WebhookSubscribedEvent> subscribedEvents, @Nullable OffsetDateTime updateTime, @Nonnull String uri) -
Webhook
-
-
Method Details
-
createTime
Output only. The timestamp when the webhook was created. -
id
Output only. The ID of the webhook. -
name
Optional. The user-provided name of the webhook. -
newSigningSecret
Output only. The new signing secret for the webhook. Only populated on create. -
signingSecrets
Output only. The signing secrets associated with this webhook. -
state
Output only. The state of the webhook. -
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
Output only. The timestamp when the webhook was last updated. -
uri
Required. The URI to which webhook events will be sent. -
builder
-
withCreateTime
Output only. The timestamp when the webhook was created. -
withId
Output only. The ID of the webhook. -
withName
Optional. The user-provided name of the webhook. -
withNewSigningSecret
Output only. The new signing secret for the webhook. Only populated on create. -
withSigningSecrets
Output only. The signing secrets associated with this webhook. -
withState
Output only. The state of the webhook. -
withSubscribedEvents
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
Output only. The timestamp when the webhook was last updated. -
withUri
Required. The URI to which webhook events will be sent. -
equals
-
hashCode
public int hashCode() -
toString
-