Package org.a2aproject.sdk.spec
Class TaskQueryParams.Builder
java.lang.Object
org.a2aproject.sdk.spec.TaskQueryParams.Builder
- Enclosing class:
- TaskQueryParams
Builder for constructing instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the TaskQueryParams.historyLength(Integer historyLength) Sets the historyLength.Sets the id.Sets the tenant.
-
Method Details
-
id
Sets the id.- Parameters:
id- the task identifier (required)- Returns:
- this builder for method chaining
-
historyLength
Sets the historyLength.- Parameters:
historyLength- the maximum number of history items to include- Returns:
- this builder for method chaining
-
tenant
Sets the tenant.- Parameters:
tenant- the tenant identifier- Returns:
- this builder for method chaining
-
build
Builds the TaskQueryParams.- Returns:
- a new TaskQueryParams instance
- Throws:
IllegalArgumentException- if id is null or historyLength is negative
-