Package org.a2aproject.sdk.spec
Class CancelTaskParams.Builder
java.lang.Object
org.a2aproject.sdk.spec.CancelTaskParams.Builder
- Enclosing class:
- CancelTaskParams
Builder for constructing instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the TaskIdParams.Sets the id.Sets optional metadata for the request.Sets the tenant.
-
Method Details
-
id
Sets the id.- Parameters:
id- the task identifier (required)- Returns:
- this builder for method chaining
-
tenant
Sets the tenant.- Parameters:
tenant- the tenant identifier- Returns:
- this builder for method chaining
-
metadata
Sets optional metadata for the request.- Parameters:
metadata- arbitrary key-value metadata- Returns:
- this builder
-
build
Builds the TaskIdParams.- Returns:
- a new TaskIdParams instance
- Throws:
IllegalArgumentException- if id is null
-