Package org.a2aproject.sdk.spec
Class TaskPushNotificationConfig.Builder
java.lang.Object
org.a2aproject.sdk.spec.TaskPushNotificationConfig.Builder
- Enclosing class:
- TaskPushNotificationConfig
Builder for constructing
TaskPushNotificationConfig instances.
Provides a fluent API for building push notification configurations with optional authentication and identification.
-
Method Summary
Modifier and TypeMethodDescriptionauthentication(AuthenticationInfo authentication) Sets complex authentication information.build()Builds theTaskPushNotificationConfig.Sets the configuration identifier.Sets the task identifier.Sets the tenant identifier.Sets the bearer token for simple authentication.Sets the push notification endpoint URL.
-
Method Details
-
id
Sets the configuration identifier.- Parameters:
id- the configuration ID- Returns:
- this builder
-
taskId
Sets the task identifier.- Parameters:
taskId- the task ID- Returns:
- this builder
-
url
Sets the push notification endpoint URL.- Parameters:
url- the HTTP/HTTPS endpoint (required)- Returns:
- this builder
-
token
Sets the bearer token for simple authentication.- Parameters:
token- the bearer token- Returns:
- this builder
-
authentication
Sets complex authentication information.- Parameters:
authentication- the authentication configuration- Returns:
- this builder
-
tenant
Sets the tenant identifier.- Parameters:
tenant- the tenant ID- Returns:
- this builder
-
build
Builds theTaskPushNotificationConfig.- Returns:
- a new push notification configuration
- Throws:
IllegalArgumentException- if id or url is null
-