Class DeleteTaskPushNotificationConfigRequest
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2ARequest<T>
org.a2aproject.sdk.jsonrpc.common.wrappers.NonStreamingJSONRPCRequest<DeleteTaskPushNotificationConfigParams>
org.a2aproject.sdk.jsonrpc.common.wrappers.DeleteTaskPushNotificationConfigRequest
- All Implemented Interfaces:
A2AMessage
public final class DeleteTaskPushNotificationConfigRequest
extends NonStreamingJSONRPCRequest<DeleteTaskPushNotificationConfigParams>
JSON-RPC request to delete a push notification configuration from a task.
This request removes a specific push notification endpoint configuration from a task, stopping future notifications to that endpoint. The task will continue execution, but no longer send updates to the deleted notification URL.
This class implements the JSON-RPC tasks/pushNotificationConfig/delete method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructingDeleteTaskPushNotificationConfigRequestinstances. -
Field Summary
Fields inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2ARequest
id, jsonrpc, method, paramsFields inherited from interface org.a2aproject.sdk.jsonrpc.common.wrappers.A2AMessage
JSONRPC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDeleteTaskPushNotificationConfigRequest(String jsonrpc, Object id, DeleteTaskPushNotificationConfigParams params) Creates a new DeleteTaskPushNotificationConfigRequest with the specified JSON-RPC parameters.Creates a new DeleteTaskPushNotificationConfigRequest with default JSON-RPC version and method. -
Method Summary
Methods inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2ARequest
getId, getJsonrpc, getMethod, getParams, validateAndSetJsonParameters
-
Constructor Details
-
DeleteTaskPushNotificationConfigRequest
public DeleteTaskPushNotificationConfigRequest(String jsonrpc, Object id, DeleteTaskPushNotificationConfigParams params) Creates a new DeleteTaskPushNotificationConfigRequest with the specified JSON-RPC parameters.- Parameters:
jsonrpc- the JSON-RPC version (defaults to "2.0" if null)id- the request identifier (string, integer, or null)params- the request parameters containing task and config IDs- Throws:
IllegalArgumentException- if jsonrpc version is invalid, method is not "DeleteTaskPushNotificationConfig", or id is not a string/integer/null
-
DeleteTaskPushNotificationConfigRequest
public DeleteTaskPushNotificationConfigRequest(String id, DeleteTaskPushNotificationConfigParams params) Creates a new DeleteTaskPushNotificationConfigRequest with default JSON-RPC version and method.- Parameters:
id- the request identifier (string, integer, or null)params- the request parameters containing task and config IDs- Throws:
IllegalArgumentException- if id is not a string/integer/null
-
-
Method Details
-
builder
Create a new Builder- Returns:
- the builder
-