Class WebhookConfig.Builder

java.lang.Object
com.google.genai.types.WebhookConfig.Builder
Enclosing class:
WebhookConfig

public abstract static class WebhookConfig.Builder extends Object
Builder for WebhookConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • uris

      public abstract WebhookConfig.Builder uris(List<String> uris)
      Setter for uris.

      uris: The webhook URIs to receive notifications. If set, these webhook URIs will be used instead of the registered webhooks.

    • uris

      @CanIgnoreReturnValue public WebhookConfig.Builder uris(String... uris)
      Setter for uris.

      uris: The webhook URIs to receive notifications. If set, these webhook URIs will be used instead of the registered webhooks.

    • clearUris

      @CanIgnoreReturnValue public WebhookConfig.Builder clearUris()
      Clears the value of uris field.
    • userMetadata

      public abstract WebhookConfig.Builder userMetadata(Map<String,Object> userMetadata)
      Setter for userMetadata.

      userMetadata: User metadata that will be included in each webhook event notification. Use this to attach custom key-value data to correlate webhook events with your internal systems.

    • clearUserMetadata

      @CanIgnoreReturnValue public WebhookConfig.Builder clearUserMetadata()
      Clears the value of userMetadata field.
    • build

      public abstract WebhookConfig build()